emcconville/google-map-polyline-encoding-tool

Beware of double quoted strings in examples

Opened this issue · 0 comments

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