getGeoFenceListForType v0.0.6

genericGeoFence list of locations based on resource type Raw data in format:

[{
    id: name,
    coordinates : [{ lat: 51.04, long:3.7}](circle), polygon [{ lat: 51.04, long:3.7},{ lat: 52.04, long:3.7}] or polygon with multiple locations
    radius: in metres, in case of circle
}]

for radius

[ { “id”:“Depo1”, “radius”: 10000,    “coordinates”: [{“lat” : 51.07, “long” : 3.51} ]  }  ]
for polygon
[ {  “id”:“Depo1”, “coordinates”: [{“lat” : 50.07, “long” : 3}, {“lat” : 50.07, “long” : 4}, {“lat” : 52.07, “long” : 3.5}] }]
or
[ {  “id”: “Depo1”, “coordinates”: [{“lat”: 51.07,“long”: 3.51},{“lat”: 52.07,“long”: 4.51 }] } ]

Required properties:

  • resourceTypeId
  • customer

External Settings:

  • API_KEY
  • API_PASS
  • options.requiredProperties.domain

States:

  • Found
  • Not Found

Raw data:

  • locations (object)