Hi everyone, I need your help to resolve a little issue related to Encoded Polylines. I'm using the Java API from http://facstaff.unca.edu/mcmcclur/GoogleMaps/EncodePolyline/ , works well, but in some cases when the encoded points contain back slash the rute is painted wrong. This problem is documented, so javascript needs double back slash and this is covered in the implementation in the Java API. However when the encoded points contain \\ with some characters after, the rute is painted wrong. Maybe I have to use some type of replacing with javascript, before passing the encoded points?
In the API: number of levels 18 zoomfactor 2 smallpoint 0.000001 Encoded points: gju {c~pb...@b@b...@b@@b...@bbd@dbdbhdvnjdjfjffjlhjhjhlrdljphtdrlpf...@dnfrlzbldrjnh^jzdldn^jafthpdpnb@d...@fndpfrhndrn \ \dndph...@fpdpflfpfrph@h...@hthtnj@p...@dnftjvdrpr@`...@xadthtfrftrv@h...@zfal \...@rh@j...@pp@xtal...@zl@t...@zl@x...@z~@v...@pr@t...@nb@p...@tb@x...@tf@\ \...@`@z...@xl@x...@td@z...@\\n@\ \...@h@p...@d@l...@j@j...@p@n...@b@r...@`@l...@vl@`...@z@p...@va`@na^...@jbphbxfbj`bfdbifbmpbw~bujbujbspbynbydc [...@tcua|l]...@xck@pFSzFuAdPs@| g...@`hm@d...@pgm@d...@vgm@j...@pgw@fIgArIiAxIiCbO Encoded levels: p...@aaba?b@AAA@@@DCA?FAACBCH@@?ab?c...@?acbb@?B@@bbaa?bbbb...@ba@b...@bb? AEA@@b...@a@bbcabc...@cabbd?bcaah?c@?...@baf?cafad@AHC? fcdblb...@eababaeefeebaba?b@a...@ep Track points: 25.673481 -100.288318 25.673462 -100.288323 25.673445 -100.288332 25.673428 -100.28835 25.673406 -100.288356 25.673394 -100.288374 25.673372 -100.288388 25.673358 -100.288401 25.673326 -100.288412 25.673295 -100.288431 25.673266 -100.288458 25.673215 -100.288482 25.673159 -100.288519 25.673092 -100.288562 25.673039 -100.2886 25.672976 -100.288635 25.672918 -100.288675 25.672874 -100.288737 25.672807 -100.288785 25.672749 -100.288836 25.672686 -100.288887 25.672618 -100.288983 25.672582 -100.289053 25.672521 -100.28915 25.67247 -100.289252 25.672444 -100.289359 25.672376 -100.289447 25.672338 -100.289552 25.672296 -100.289651 25.672255 -100.289745 25.672226 -100.289825 25.672185 -100.289925 25.672154 -100.289989 25.672118 -100.290067 25.672093 -100.290139 25.672064 -100.290233 25.672009 -100.290316 25.671977 -100.290405 25.671951 -100.290477 25.671917 -100.290555 25.67189 -100.290619 25.671864 -100.290689 25.67183 -100.290767 25.671796 -100.29085 25.671753 -100.290955 25.671707 -100.291062 25.671675 -100.291142 25.671639 -100.291252 25.671583 -100.291349 25.671557 -100.291438 25.671518 -100.291526 25.671477 -100.291617 25.671441 -100.291706 25.671395 -100.29181 25.671361 -100.291885 25.671329 -100.291969 25.671291 -100.292057 25.671257 -100.292154 25.671206 -100.292237 25.671172 -100.292331 25.671134 -100.292411 25.671097 -100.292489 25.671068 -100.292567 25.671039 -100.292655 25.670984 -100.292754 25.670945 -100.292862 25.670909 -100.292958 25.670863 -100.293041 25.670831 -100.293135 25.67079 -100.293202 25.670757 -100.293299 25.670713 -100.293393 25.670665 -100.293508 25.670624 -100.293607 25.670573 -100.293704 25.670524 -100.293819 25.670483 -100.293916 25.67043 -100.294029 25.670387 -100.294133 25.670309 -100.294353 25.670261 -100.294447 25.670213 -100.294544 25.670184 -100.294627 25.670142 -100.294734 25.670089 -100.294852 25.670058 -100.294959 25.670014 -100.29508 25.669968 -100.295211 25.669932 -100.295305 25.669889 -100.295426 25.669843 -100.295547 25.669799 -100.295665 25.669763 -100.295775 25.669715 -100.295882 25.669676 -100.295981 25.669637 -100.296097 25.669591 -100.29622 25.669531 -100.296378 25.66948 -100.296561 25.66941 -100.296748 25.669345 -100.296923 25.669279 -100.297073 25.669204 -100.297269 25.669105 -100.297475 25.669043 -100.297679 25.668951 -100.297928 25.66882 -100.298355 25.668757 -100.298494 25.668658 -100.298698 25.668516 -100.298926 25.668409 -100.29913 25.668269 -100.299358 25.668134 -100.299624 25.667996 -100.299948 25.667872 -100.300232 25.667783 -100.300493 25.667679 -100.300683 25.667599 -100.300863 25.667505 -100.301045 25.667391 -100.30123 25.667263 -100.301431 25.66715 -100.301633 25.667 -100.301912 25.666835 -100.302212 25.6667 -100.302443 25.666579 -100.302692 25.666461 -100.302882 25.66632 -100.303097 25.666178 -100.303336 25.666021 -100.30362 25.665813 -100.30387 25.665622 -100.304095 25.665407 -100.304312 25.66515 -100.304559 25.664979 -100.304811 25.664807 -100.30505 25.664684 -100.305278 25.66451 -100.305578 25.664268 -100.306015 25.664094 -100.306412 25.663932 -100.306908 25.663758 -100.307448 25.663663 -100.307979 25.66353 -100.308494 25.663472 -100.308987 25.663434 -100.309497 25.663482 -100.310017 25.663559 -100.310583 25.663673 -100.311221 25.663789 -100.311763 25.663893 -100.312302 25.663997 -100.312871 25.66412 -100.313432 25.664258 -100.314105 25.664391 -100.3148 25.664553 -100.315548 25.664693 -100.316267 25.664838 -100.317015 25.664986 -100.317774 25.665131 -100.318488 25.665411 -100.319257 25.665634 -100.32047 25.66573 -100.321725 25.665938 -100.323047 25.666163 -100.324474 25.666422 -100.325909 25.666659 -100.327358 25.666881 -100.328661 25.667128 -100.330037 25.66735 -100.331346 25.667592 -100.332749 25.667827 -100.334082 25.668076 -100.335458 25.668358 -100.337099 25.668716 -100.338797 25.669086 -100.34053 25.66977 -100.34311 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to Google-Maps-API@googlegroups.com To unsubscribe from this group, send email to google-maps-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---