isInside method

bool isInside(
  1. String geohash
)

Returns true if the given geohash contains this one within it.

Implementation

bool isInside(String geohash) {
  if (geohash.length > _geohash.length) {
    return false;
  }
  if (_geohash.substring(0, geohash.length) == geohash) {
    return true;
  }
  return false;
}