emcconville / google-map-polyline-encoding-tool

A simple class to handle polyline-encoding for Google Maps
Other
154 stars 40 forks source link

feat('reverse-points'): Added support to reverse the order of points … #18

Closed Dillonsmart closed 1 year ago

Dillonsmart commented 1 year ago

…in the given array before encoding.

When transforming geometry projections the Lat and Lng can be in a different order compared to the desired order of this library.

Passing true to the encode method reverses the order of the array.

emcconville commented 1 year ago

Thanks for the pull request, but this doesn't add any value to the library. Sorting & FIFO/LIFO is the responsibility of the user's code.