Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explanation of warning for non-geo wiz #87

Open
UVLabs opened this issue Mar 17, 2022 · 0 comments
Open

Explanation of warning for non-geo wiz #87

UVLabs opened this issue Mar 17, 2022 · 0 comments

Comments

@UVLabs
Copy link

UVLabs commented Mar 17, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant