Skip to main content

Find zones near a point

GET /v1/service_zones/near

Zones within radius_m metres of the point, nearest first.

Authentication​

Send a token issued in the Zoopit dashboard as Authorization: Bearer <token>.

Query parameters​

NameTypeRequired
ownerstringyes
latnumberyes
lonnumberyes
radius_mnumberyes
group_idstring

Responses​

200​

resource: array of object

FieldTypeRequired
group_idstringyes
namestringyes
codenull or stringyes
geometryobjectyes
min_lonnumberyes
min_latnumberyes
max_lonnumberyes
max_latnumberyes
prioritynumberyes
disabledbooleanyes
depot_idnull or stringyes
calendararray of objectyes
idstringyes
created_atstringyes
modified_atnull or stringyes
deleted_atnull or stringyes
created_bystringyes
modified_bynull or stringyes
deleted_bynull or stringyes
ownersarray of stringyes
tagsarray of stringyes
attributesobjectyes
distance_mnumberyes

Example​

curl -X GET 'https://routes-api.cloud.zoopit.no/v1/service_zones/near'
-H 'Authorization: Bearer <token>'

Try it in the interactive Routes API reference.

Field descriptions, guides and worked examples are in the full reference, available to customers in the Zoopit dashboard under Accounts → Developer.