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
Post a Comment