geohash parameter selects nodes inside that area.
Sizes are at the equator; areas get narrower toward the poles. Codes are case insensitive.
Node locations are approximate. A node located only roughly matches short codes but not long ones, so a 4-character code can return 471 where its 3-character parent finds nodes.
Options
geohashnearalso includes the 8 surrounding areas of the same size:-geohash-dr5r-geohashnear.geohashfallbackreturns the nearest available node instead of 471:-geohash-dr5r-geohashfallback. The search moves outward from the area, then to the whole country. Other parameters still apply. Codes longer than 4 characters are shortened to 4.- Both work with a single code and need no value.
- Up to 5 codes can be listed:
-geohash-dr5r,dp3w. countryis optional and limits the area to that country, which helps near borders:-country-US-geohash-dp.asnandtypecan be added:-geohash-dr5r-asn-7922.subdivision,cityandzipcodecannot be used withgeohash.- Only one parameter may hold a list;
geohashnearcounts as one.
Behavior
- A sticky session stays inside the area. If its node leaves, the session moves to another node in the area; with
sessionmode-norotatethe request returns 475. Withgeohashfallback, it is limited only bycountry. - An invalid code or combination returns 400. 471 means no available node in the area; with
geohashfallback, no matching node in the whole country, or anywhere when no country is given. - The
X-Exit-Geohashheader of the CONNECT response shows the exit node’s area. Withgeohashfallbackit can differ from the requested code, and it is absent when the node’s location is known only to the country.