Allowed Areas / Geofences

You can request the geofence GPS coordinates of a Client Site through the relation list of allowedAreas.

E.g. (main coordinates hidden in the example by “xx”)

[GET] /clients/687?include=allowedAreas

{
       "company": "AB Florists",
       "customId": "687",
       "firstName": "Main Site contact name : A",
       "lastName": "Main Site contact name : B",
       "jobTitle": "Main Site contact name : DevRel",
       "primaryPhone": "000-000-0000",
       "secondaryPhone": "111-111-1111",
       "type": "CLIENT",
       "region": 2,
       "status": "ACTIVE",
       "address": 1338,
       "email": "devrel.rocks@TrackTik.com",
       "closedDate": null,
       "taxLocation": null,
       "id": 687,
       "avatar": "https://innovation.staffr.net/rest/v1/avatar/clients/687/c5d6ab87281f59db955262be61da6828",
       "allowedAreas": [
           {
               "account": 687,
               "description": "main building",
               "geometryType": "POLYGON",
               "geometryCoordinates": [
                   {
                       "latitude": xx.51828893788081,
                       "longitude": -xx.58238867092868
                   },
                   {
                       "latitude": xx.51807093002924,
                       "longitude": -xx.58186295796176
                   },
                   {
                       "latitude": xx.51756349468992,
                       "longitude": -xx.58227601815005
                   },
                   {
                       "latitude": xx.51782285110173,
                       "longitude": -xx.58288756180545
                   },
                   {
                       "latitude": xx.51831900786303,
                       "longitude": -xx.58246913719913
                   },
                   {
                       "latitude": xx(hidden).51828893788081,
                       "longitude": -xx.58238867092868
                   }
               ],
               "access": "PERMITTED",
               "radius": 0,
               "id": 126
           }
       ]
   }

Was this article helpful?
0 out of 0 found this helpful

Articles in this section

See more