/latlng/nnearest
locations nearest to coordinate.
GET
geolytix.xyz/api/location/select/latlng/nnearest
This endpoint returns the location info and geometry for the n nearest locations to a coordinate.
Query Parameters
Name
Type
Description
locale
string
The locale (key) for the layer.
layer
string
The layer (key).
table
string
The PostGIS table to be queried. Defaults to layer table or tables array if not specified in request.
geom
string
A geometry field must be provided if the layer has no geometry definition. Will override layer geom definition.
nnearest
string
The n nearest locations to return. Defaults to 3.
token
string
A token is required to access private endpoints.
Last updated