You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Warning: The calculation gives wrong results if the polygons has points on both sides of the 180/-180 degrees meridian.
Maybe you can give a visual example of when these results would be wrong? I'm looking to use this library for shipping calculations where "shipping zones" will be created and the shipping cost will be determined by which polygon the customer's current location falls within. So needless to say wrong results can result in incontinences for the store trying to explain that it was a mistake to customers.
Can you please explain the line:
Warning: The calculation gives wrong results if the polygons has points on both sides of the 180/-180 degrees meridian.
Maybe you can give a visual example of when these results would be wrong? I'm looking to use this library for shipping calculations where "shipping zones" will be created and the shipping cost will be determined by which polygon the customer's current location falls within. So needless to say wrong results can result in incontinences for the store trying to explain that it was a mistake to customers.
Currently I'm making use of the Google Maps API Geometry library for this: https://developers.google.com/maps/documentation/javascript/examples/poly-containsLocation but I'd like to use PHP instead if i can find a library which is suitable
The text was updated successfully, but these errors were encountered: