Geohash icon

Geohash

Encode and decode Geohashes using latlon-geohash

Get Bounds

AI-generated

Summary

Returns the southwestern and northeastern latitude and longitude boundaries of a geohash.

Inputs

  • geohash (required) — A geohash string to calculate the bounds for.

Output shape

a list of items, each containing the bounds object

The bounds object includes the southwest (sw) and northeast (ne) coordinates, where each contains lat and lon values. Invalid geohash strings throw an error.

Examples

Example 1: Convert a geohash into its bounding box coordinates to define the area it covers.

Operation: Get Bounds; Geohash: '9q8y8'

Links

Discussion