Topic: API for Geofence not working
Hello,
I'm in a need of support as Im trying to validate if a coordinate is inside a geofence as your API promises will look up, when I make the call, it always returned empty.
According to the API, if not geofence id is provided then it will look it up inside all geofences. Can you pointing me to what Im doing wrong?
params = {
"spec": {
"lon": 14.0884059,
"lat": -90.8330623,
"radius": 50.00,
"zoneId":{}
}
}
try:
units = wialon_api.resource_get_zones_by_point(**params)
#units = wialon_api.core_get_account_data(**params)
#print(json.dumps(units, default=jdefault))
print str(units)
# print units
except WialonError as e:
print e
wialon_api.core_logout()
The response Im getting is just an empty list even when I know for sure the point falls inside an geofence