-
Notifications
You must be signed in to change notification settings - Fork 76
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
C++ version of polyline_decode decodes incorrectly in some cases #36
Comments
I can properly decode For testing I simply added:
|
After slightly modifying your test I was able to create a minimal working example:
after compiling and running:
output is:
OS: MacOS Catalina 10.15.6 (19G73)
|
We've found a scenario in which the C++ flexpolyline.h decodes incorrectly. In comparison, the Javascript version works fine.
(-37.8312911, 144.9978678),
(-37.831321700000004, 144.9978624),
(-37.8313573, 144.9978559)
note: GeoCoordinates is a simple struct that holds only latitude, longitude and altitude (all of type double)
2. Expected result: a vector of GeoCoordinates, each element having longitude around 144.998
3. Actual result: a vector of GeoCoordinates, each element having longitude exactly "-69.7505"
The text was updated successfully, but these errors were encountered: