Closed raphaelmor closed 10 years ago
I have taken some images with an example: This is the simulator:
This is the polyline:
Doing some more tests with also a City Run this afternoon :)
I managed to reproduce the issue, and found a fix (https://github.com/raphaelmor/Polyline/pull/4). When two coordinates are separated by 0.00016, the encoder behaved badly. I also fixed some rounding, so now the results are identical to Google Map iOS SDK. (but not exactly to the online tool, see README for more details).
Please let me know if it fixes your issue.
Thanks for your explanation :) It is working perfect now:
Thanks a lot!
No problem ! I'm happy you find it useful !
from @Erulezz
{zbFtdzgVnCbsALfALfALfANhANhANfANfANhANhANdANfANhANfALbALfANhANfALhALfABjAFhABjA@jA?jACjAEjAIjAKjAMhAQhASfAWfAYfAYfAYfAYfAYfAWdAWfAYdAWfAUhAQhAOfAMhAKhAIjAEhACjAAjA@jABjADhAFjAHhAJhALhAJhALfALjALhALjALhAJhAJhAHdAFfABfA@dA?dACfAEfAGdAIdAMdAOdAQdAUdAWbAYbA[A]~@?@|@c@z@e@x@g@x@i@t@k@v@k@v@k@v@i@t@i@t@g@t@g@v@g@v@e@x@c@z@a@z@c@z@c@|@c@z@a@|@a@|@c@~@a@|@a@|@?@z@c@|@a@|@a@z@a@|@?@|@a@~@]z@]~@]~@?@A[~@]|@?@~@?@|@a@|@c@x@e@v@g@t@g@n@i@p@i@n@i@p@g@l@i@p@i@n@g@l@i@n@e@p@e@r@c@t@a@t@?@x@?@x@[|@[~@Y|@[A[A[bA[bA[bA]bA[A]bA[bA[dA[bA[A[A]A]|@?@|@c@z@e@x@g@v@i@r@m@p@o@n@m@j@q@h@q@f@q@d@q@d@s@d@q@f@s@f@s@f@q@f@o@h@o@l@m@l@k@p@i@p@g@t@c@r@a@v@c@x@?@z@]z@]|@[~@W~@UAUAQbASdAQbAObAQdAQdAQbAOdASdAUbAWAY~@]~@]|@?@|@?@z@a@|@g@x@g@t@g@t@i@r@k@r@k@n@o@l@q@h@q@h@s@d@u@b@y@b@w@b@w@@w@@y@^y@b@w@@y@@w@b@w@f@s@f@q@j@q@n@o@p@k@t@i@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