Hi Anton, hope your doing good,
I'm trying to create a Geofence, my payload is the following:
{
"name": "GeofenceTest",
"area": "POLYGON((11.64777329308693 51.76988887808583, 9.51642563683693 50.86353398740294, 8.637519386836928 51.62007233347378, 9.802070168086928 52.5115499225217, 11.64777329308693 51.76988887808583))"
}
Payload picture (200): PayloadPicture200
But when I check the polygon created on Traccar is not the same that I drawed.
I used the following websites to check the polygon created, just copy and paste the "POLYGON" below into the following websites :
POLYGON((11.64777329308693 51.76988887808583, 9.51642563683693 50.86353398740294, 8.637519386836928 51.62007233347378, 9.802070168086928 52.5115499225217, 11.64777329308693 51.76988887808583))
https://www.geometrymapper.com/
https://wktmap.com/
And does not match the Polygon in Traccar Server: https://drive.google.com/file/d/1KvSqBsKl4UqzoONcgMcdekWzVoupGq6q/view?usp=sharing
When I edit the Polygon, It has the same Payload as the initial: https://drive.google.com/file/d/1zW98m58iDtslbtvEwMJIjI8ZmiLb4MqG/view?usp=sharing
Kind Regards!.
Try swapping latitude and longitude.
Hi Anton,
That seems to be the issue. Thank you! : https://drive.google.com/file/d/18j_h321IC17msYcd3zEhZT2TIKpx7QGT/view?usp=sharing
Before:
POLYGON((11.64777329308693 51.76988887808583, 9.51642563683693 50.86353398740294, 8.637519386836928 51.62007233347378, 9.802070168086928 52.5115499225217, 11.64777329308693 51.76988887808583))
After:
POLYGON((51.76988887808583 11.64777329308693,50.86353398740294 9.51642563683693,51.62007233347378 8.637519386836928,52.5115499225217 9.802070168086928,51.76988887808583 11.64777329308693))
Geofence not matching.