Geohash Functions

geohash.covers

Bool geohash.covers(String geohash1, String geohash2)

Checks whether the first geohash covers the second one, where the two geohashes being equal is also considered a positive result.

Parameters:

  • geohash1 - the first geohash (non-nullable).
  • geohash2 - the second geohash (non-nullable).

Returns:

true if the first geohash covers the second one.

geohash.encode

String geohash.encode(Double latitude, Double longitude, Int32 level)

Encodes a geohash from latitude and longitude information.

Parameters:

  • latitude - the latitude (non-nullable).
  • longitude - the longitude (non-nullable).
  • level - the level (non-nullable).

Returns:

the encoded geohash.

geohash.intersects

Bool geohash.intersects(String geohash1, String geohash2)

Checks whether the two geohashes intersect.

Parameters:

  • geohash1 - the first geohash (non-nullable).
  • geohash2 - the second geohash (non-nullable).

Returns:

true if the two geohashes intersect, false otherwise.

geohash.intersectsAny

Bool geohash.intersectsAny(List(String) geohashes1, List(String) geohashes2)

Checks whether any pair of geohashes from the two lists intersect.

Parameters:

  • geohashes1 - the first geohash list (non-nullable, null elements not allowed).
  • geohashes2 - the second geohash list (non-nullable, null elements not allowed).

Returns:

true if any pair of geohashes from the two lists intersect, false otherwise.