Contact us Login LIVE DEMO FREE TRIAL

zone/

CRUD actions for zones. Note that zone points are handled separately because they are represented by big arrays of data.

zone is JSON object with one of types: sausage, circle or polygon.

circle:

{
    "id": 1,                    // (int) zone id
    "type": "circle",
    "label": "Zone name",       // (string) zone label
    "address": "Karlsplatz, 2", // (string) zone address
    "color": "27A9E3",          // (string) zone color in 3-byte RGB hex format
    "radius": 150,              // (int) circle radius in meters
    "center": {                 // (location object) location of circle center
        "lat": 48.200940,
        "lng": 16.369856
    },
    "tags": [127, 15]           // ([int]) array of tag ids
}

polygon:

{
    "id": 1,                    // (int) zone id
    "type": "polygon",
    "label": "Zone name",       // (string) zone label
    "address": "Karlsplatz, 2", // (string) zone address
    "color": "27A9E3",          // (string) zone color in 3-byte RGB hex format
    "tags": []                  // ([int]) array of tag ids
}

sausage:

represents all points within certain distance to the specified polyline

{
    "id": 1,                    // (int) zone id
    "type": "sausage",
    "label": "Zone name",       // (string) zone label
    "address": "Karlsplatz, 2", // (string) zone address
    "color": "27A9E3",          // (string) zone color in 3-byte RGB hex format
    "radius": 150,              // (int) polyline radius in meters
    "tags": [289]               // ([int]) array of tag ids
} 

If you have more questions please contact our support team

Contacts

USA: +1 858 815 9045

Mexico: +52 334 1642158

UK: +44 808 1641499

Germany: +49 1573 5988250

Russia: +7 495 317 1622

Log in

Loading...

We use сookies to improve our website, products and related services, analyze site traffic, and serve targeted advertisements. If you continue to use our services, you consent to our use of сookies. Read more