1

Unit - Geofence

Topic: Unit - Geofence

Is there any wialon remote API available to fetch geofence, last know position(address) for a unit.

Thanks in advance.

Thanks
J Prabhu
2

Unit - Geofence

(edited by rual 14/11/2018 16:35:40)

Re: Unit - Geofence

If you need to get geofences which contain unit and unit's address, then you must to do it manually.

1. Get unit coordinates (last position)

2. Resolve address (via Gurtam Maps or any other gis provider)

3. Call resource/get_zones_by_point with zoneId with all resources, like that:

"zoneId": {
    "13": [],
    "15": []
}

Where 13 and 15 are resource ids. Empty arrays [] mean that you want to check against all zones in those resources.