1

Unit - Geofence

Тема: 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

(14/11/2018 16:35:40 отредактировано rual)

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.