google polyline: string out of range -


i try use google polyline decode data. data looks like

'yrwfpjpbmbdxb|bxatbxajfhdrfndfhlbnatbtazbvavfrdl@\\mffnho@~ctf|bxln@adp@}cp@mcfaud\{alkmg@@]l{@paognup@bcol@gbf@ec^gbb@cbjd{p\obvyafga?cas@_qk}@q_aycaa@ca]i@m@w@w@q@a@wucyacak@}@o@aa{@}@}@abubg[m@m@oeufcawamb}cedag_fcjqaecm@oake@yu@c@aba@cb[ebea@fceblcyzgq@zzg'

if put string code

polyline.decode('yrwfpjpbmbdxb|bxatbxajfhdrfndfhlbnatbtazbvavfrdl@\\mffnho@~ctf|bxln@adp@}cp@mcfaud\{alkmg@@]l{@paognup@bcol@gbf@ec^gbb@cbjd{p\obvyafga?cas@_qk}@q_aycaa@ca]i@m@w@w@q@a@wucyacak@}@o@aa{@}@}@abubg[m@m@oeufcawamb}cedag_fcjqaecm@oake@yu@c@aba@cb[ebea@fceblcyzgq@zzg'), gives me data.

however, if run program , save string list, code[], , run code

polyline.decode(code[0]), error say:

indexerror: string index out of range

i tried many times , cannot figure problem.can tell me i'm doing wrong? in advance!


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -