Common - Encode

Encode Lat/Lng to GeoHash

POST /api/common

Returns the GeoHash for the lat/lng provided. If precision is auto, the result will be max 12 char length. The max precision of a GeoHash is based on the decimals of the initial Lat/Lng, for more precision ensure the Lat/Lng is the most accurate as possible.

Body

Param
Value/Type
Description

function

'encode'

Static

latitude

float

precision

int

0 = Auto

Response

{
  "geo_hash": "gbuw6fyprdsg"
}

Last updated