1

Get the Geofence Name where unit is

Тема: Get the Geofence Name where unit is

Hello, im trying to extract some data using the API like the latitude, longitude, unit name, etc. but im having trouble in getting the GeoFence in the sense that i want the Geofence name where the unit is at the moment, how can i achive this?

2

Get the Geofence Name where unit is

Re: Get the Geofence Name where unit is

jornadadgps22 hello, you can try to use get_zones_by_point request. Request current coordinates of the required units and generate batch request with get_zones_by_point requests array. Insert coordinates and resources IDs (with geofences arrays). If any of the coordinate is close to the available geofence, you will get its ID.
Here you can find request description -- https://sdk.wialon.com/wiki/en/sidebar/ … s_by_point
If this not what you are looking for, please, let me know or write to support@gurtam.com

Anton Zinovyev
Technical Care Engineer (L2)
Wialon
3

Get the Geofence Name where unit is

Re: Get the Geofence Name where unit is

zant пишет:

hello, you can try to use get_zones_by_point request. Request current coordinates of the required units and generate batch request with get_zones_by_point requests array. Insert coordinates and resources IDs (with geofences arrays). If any of the coordinate is close to the available geofence, you will get its ID.
Here you can find request description -- https://sdk.wialon.com/wiki/en/sidebar/ … s_by_point
If this not what you are looking for, please, let me know or write to support@gurtam.com

Hello, excuse me how do i get my geofences ID's?

4

Get the Geofence Name where unit is

Re: Get the Geofence Name where unit is

jornadadgps22 hello, in order to get ID of any item created in Wialon you can use search_items request.
Since geofences are part of resource, you need to search by avl_resource.
Here you can find an example -- https://sdk.wialon.com/wiki/en/sidebar/ … y_property

Anton Zinovyev
Technical Care Engineer (L2)
Wialon
5

Get the Geofence Name where unit is

Re: Get the Geofence Name where unit is

zant пишет:

jornadadgps22 hello, in order to get ID of any item created in Wialon you can use search_items request.
Since geofences are part of resource, you need to search by avl_resource.
Here you can find an example -- https://sdk.wialon.com/wiki/en/sidebar/ … y_property

Thank you, excuse me to not make another forum question, how do i get the motion state of a unit through the API??, im thinking its the "motion_state_sensor_id" is this correct? and what does the numbers mean??
Thank you any help is appreciated.