Coordinate inside Geofence Check

Essam Salah7 years ago

Hi,

If I have a point with coordinates (lat, long), what APIs I can use to ask the server which geofence contains this particular point?

Thanks,
Essam

Anton Tananaev7 years ago

There is no such API in Traccar.

Essam Salah7 years ago

any other options?

we need to use the server to keep a list of service-coverage zones, once an order is received by our own system, we need to find the best zone (geofence) that cover the order's address ... we do appreciate your support on this please.

one idea we thought about, is to create a temp device using the order-coordinates, and then find a way to see if the device is inside a geofence or not, what do you think?

Anton Tananaev7 years ago

That's possible. I believe device API returns a list of geofences that device is currently in.

We can also implement a custom version of Traccar server for you. Contact support email if you are interested in this option.

Juan Luis7 years ago

Hello,

Im also interested to validate if (lat,long) is inside geofence, any function already written that do this job?