All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
decode_geohash | GET /api/v1/geohash/{ghash} | Decode geohash into coordinates. |
encode_latlng | GET /api/v1/geohash | Encode coordinates into geohash |
get_neighbors | GET /api/v1/geohash/{ghash}/neighbors | Neighboring regions |
models::DecodeGeohashResponse decode_geohash(ghash) Decode geohash into coordinates.
Decode geohash by path param, returns coordinates with precision estimates.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
ghash | String | Geohash encoded region | [required] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
models::EncodeLatLngResponse encode_latlng(lat, lng, depth) Encode coordinates into geohash
Encode coordinates by query params, returns geohash.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
lat | f64 | Latitude | [required] | |
lng | f64 | Longitude | [required] | |
depth | i32 | Determines geohash length | [required] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
models::GeohashNeighborsResponse get_neighbors(ghash) Neighboring regions
Returns geohash neighbors in all cardinal directions.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
ghash | String | Geohash encoded region | [required] |
models::GeohashNeighborsResponse
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]