Geofence problem

Giovanni G.2 years ago

Hello,
i have a problem, when i create a geofence via api, using data in wkt format, the location is not correct,
I also tried to create the data from https://geojson.io/ but the result does not reflect my expectations.

Thanks for the support,
Giovanni

geojson.io:
correct

traccar:
incorrect

my wkt data to traccar
Italy

JCardus2 years ago

Traccar uses latitude / longitude, you are creating with reverse coordinates (longitude / latitude)

Giovanni G.2 years ago

Thanks for the support
Giovanni

Tyson2 years ago

Did you figure it out? If not, have a look at my solution in this thread:

https://www.traccar.org/forums/topic/multiline-and-polygon-features-use-lat-lon-but-single-line-uses-lon-lat/