arsalanqayum332 пишет:Is there a Wialon API that might help us place our geofence location based on full address or partial address?
Best Regards
Arsalan
ElectroFlip
Hi Arsalan,
yes, you can use request to search address by phrase, then you use request to search created geofences in this place (by proper coordinates)
For example, after following request
https://search-maps.wialon.com/hst-api.wialon.com/gis_searchintelli
params
phrase: Miami, Floria, 33125
flags: 350552064
count: 10
uid: 930848
sid: 02d1eb4e6f457385d583bc6707df145a
The system returns several addresses with their coordinates
For example,
{
"city":"Miami",
"country":"USA",
"formatted_path":"USA, FL 33125, Miami",
"house":"",
"map":"usa_corelogic_fl_custom.sas,usa_corelogic_fl.sas",
"probability":0.531216604788,
"region":"FL 33125",
"street":"",
"x":-80.2323989868,
"y":25.7734699249
}
As you get proper coordinates of the place you can request Geofences: presence in geofences just to pass latitude and longitude, searching radius, and the list of zone IDs (or pass it empty to analyze all geofences). So the system will return info if the point is inside geofences, or the distance to the nearest geofence (and it's id).
Or you can use request Coordinates: Simple search if you already know what to searhc (for example, name of exact city, street and etc).
Please look both examples here.
Diana Cheley
Wialon Hosting Expert
Gurtam