Dammyololade / flutter_polyline_points

A flutter plugin that's decodes encoded google poly line string into list of geo-coordinates suitable for showing route/polyline on maps
MIT License
109 stars 132 forks source link

Weird decoding of polyline #42

Closed neospeed83 closed 1 year ago

neospeed83 commented 3 years ago

Hi I am using your library for converting a polyline. I am using the polyline.decode function as explained in your example. I am not sure whether I am doing it wrong somewhere or there is an error in decode logic because the line shows up on my app with weird shapes but when I enter the same encoded string in google's tool I see the correct points being shown. Here is my code for your reference. I am just converting encoded string to polylines and passing it as a set of polylines to GoogleMaps widget. Thanks!

neospeed83 commented 3 years ago

carbon

neospeed83 commented 3 years ago

convert is just a simple function as follows carbon (1)