Contact us LoginLIVE DEMOFREE 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 225 46 88

Mexico: +52 558 526 11 25

UK: +44 203 807 64 62

Russia: +7 495 128 35 56

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

Log in