-
Notifications
You must be signed in to change notification settings - Fork 77
Open
Description
Decoding polylines on flutter web is completely wrong.
Using the provided example from https://pub.dev/packages/flexible_polyline, running on android works just fine and prints out the expected results
List<LatLngZ> decoded = FlexiblePolyline.decode("BFoz5xJ67i1B1B7PzIhaxL7Y");
results in the following on android/ios
LatLngZ [lat=50.10228, lng=8.69821, z=0.0]
LatLngZ [lat=50.10201, lng=8.69567, z=0.0]
LatLngZ [lat=50.10063, lng=8.6915, z=0.0]
LatLngZ [lat=50.09878, lng=8.68752, z=0.0]
But running the exact same code with flutter web gives the following:
LatLngZ [lat=50.10228, lng=8.69821, z=0]
LatLngZ [lat=21524.93849, lng=21483.53215, z=0]
LatLngZ [lat=42999.77359, lng=42958.36446, z=0]
LatLngZ [lat=64474.60822, lng=64433.19696, z=0]
The first address is correct, but subsequent addresses 2-4 are very large
If there are any additional params/options available that fix the decoding scheme based on web vs mobile, that would be an acceptable workaround until a better solution can be found
xantiagoma, oulianov, stx and DevMwarabu
Metadata
Metadata
Assignees
Labels
No labels