emcconville / google-map-polyline-encoding-tool

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

Beware of double quoted strings in examples #16

Open marcomarsala opened 1 year ago

marcomarsala commented 1 year ago

Hi, in your examples you're using double quoted strings, but so, some chars in encoded string (that may be composed of any ASCII char) have different meaning and will lead to wrong decoding, for example the following string (attaching a txt file due to formatting issues in GitHub): test.txt is decoded with single quoted string syntax but is decoded differently with double quoted string syntax. Also, the last point is missing in both cases, as you can check with https://developers.google.com/maps/documentation/utilities/polylineutility?hl=en