Тема: Unit - Geofence
Is there any wialon remote API available to fetch geofence, last know position(address) for a unit.
Thanks in advance.
J Prabhu
Вы не вошли. Пожалуйста, войдите или зарегистрируйтесь.
Is there any wialon remote API available to fetch geofence, last know position(address) for a unit.
Thanks in advance.
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.