Returns the organization’s locations within radius km of (lat, lon), sorted by ascending great-circle distance. Authenticated via a publishable API key (cpk_*) in the X-API-Key header — the same key embedded in the public store-locator widget. Coordinates are WGS 84 / EPSG:4326 (the standard used by browsers’ navigator.geolocation and Google Maps); PostGIS computes distance on the geography type (ST_Distance over a spheroid), so values are correct globally and not just for short distances. Use radius to bound the spatial window and limit to cap the result count after distance sort.
Documentation Index
Fetch the complete documentation index at: https://docs.closient.com/llms.txt
Use this file to discover all available pages before exploring further.
Latitude of the search centre in decimal degrees, WGS 84 / EPSG:4326. Typically obtained from the browser's navigator.geolocation API or a geocoded user query.
-90 <= x <= 90Longitude of the search centre in decimal degrees, WGS 84 / EPSG:4326.
-180 <= x <= 180Search radius in kilometres. Locations farther than this from (lat, lon) are excluded. Defaults to 50 (a typical metro area); pass a larger value (e.g. 5000) to span a continent.
Maximum number of locations to return (1-100). Results are pre-sorted by distance ascending, so this acts as a 'top N nearest' truncation.
1 <= x <= 100OK
Locations within radius of (lat, lon), sorted ascending by great-circle distance. Empty list when no locations match. PostGIS geography distance is converted to kilometres and rounded to two decimals.
The organization the publishable API key belongs to. Lets the widget render branding without a second request.
{ "name": "Acme Retail Corp." }