/latlng/contains

locations which contain a coordinate.

GET geolytix.xyz/api/location/select/latlng/contains

This endpoint returns the info of locations which contain the input latitude and longitude.

Query Parameters

NameTypeDescription

locale

string

The locale (key) for the layer.

layer

string

The layer (key).

table

string

The PostGIS table to be queried. Will be taken from layer table or table 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.

token

string

A token is required to access private endpoints.

[
  {
    "pop_11": 304,
    "geomj": "{\"type\":\"MultiPolygon\",\"coordinates\":[...]}"
  },
  {...}
]

Last updated