Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Polyline python fix
wmd`iBmz}~fAfiH~m[`@h\avCx}DebPfyKinRjsIaeQz~GsiR|rJcr@~z@c_@pd@}m@rx@g}H~zQgsHlgVetG`tUaoGr}TigHnxTyjGjnQ}cMphSoyPnoEc}KjmCq{LheB{dYtc@udOc`@kUvKqoNrnFqcOdyEyc@xnFyt@slA}wA}GmoOq}EiqB}y@wnBl_Ami@d]q{AldAmpF|eEagA|jBqbM_jJ}dNniQmi@lnAegGz|Mog@fy@gtLvvV}mAhcDwnKj`Zc~EzoNcvElbNynKxh[imEx}OwxCvsPwxBhaM_pG_~DorNolNsyIivIcsKe|C{fAhiGc~Kc{Ie|@yn@
------------------
[(555.93708, 377.48151), (555.88936, 377.33575), (555.88919, 377.33106), (555.91336, 377.30053), (556.00091, 377.23489), (556.10064, 377.18043), (556.19377, 377.13437), (556.29275, 377.07486), (556.30093, 377.06526), (556.30607, 377.05925), (556.31358, 377.05003), (556.3645, 376.95339), (556.41382, 376.83428), (556.45817, 376.71827), (556.5017, 376.60585), (556.54911, 376.49425), (556.59196, 376.39963), (556.66443, 376.2957), (556.75571, 376.26234), (556.82197, 376.23956), (556.8931, 376.22319), (557.02716, 376.21732), (557.10999, 376.22262), (557.11357, 376.22058), (557.19302, 376.18224), (557.27567, 376.14733), (557.28156, 376.10896), (557.29017, 376.12138), (557.3044, 376.12281), (557.38895, 376.15842), (557.40724, 376.16785), (557.42512, 376.15754), (557.43191, 376.15271), (557.44672, 376.1416), (557.48535, 376.10977), (557.49688, 376.0925), (557.56913, 376.15058), (557.64688, 376.05674), (557.65367, 376.04403), (557.69594, 375.96757), (557.70242, 375.95825), (557.77238, 375.83669), (557.78501, 375.8104), (557.84897, 375.67194), (557.88467, 375.59244), (557.91909, 375.51509), (557.98306, 375.37016), (558.01607, 375.28331), (558.04067, 375.19295), (558.06015, 375.1209), (558.10383, 375.15146), (558.18375, 375.23042), (558.23921, 375.28535), (558.30387, 375.3105), (558.31537, 375.26789), (558.38179, 375.32359), (558.39158, 375.33124)]
codec.py
coordinates.append((lat / 1e5, lng / 1e5))
to
coordinates.append((lat / 1e6, lng / 1e6))
wmd`iBmz}~fAfiH~m[`@h\avCx}DebPfyKinRjsIaeQz~GsiR|rJcr@~z@c_@pd@}m@rx@g}H~zQgsHlgVetG`tUaoGr}TigHnxTyjGjnQ}cMphSoyPnoEc}KjmCq{LheB{dYtc@udOc`@kUvKqoNrnFqcOdyEyc@xnFyt@slA}wA}GmoOq}EiqB}y@wnBl_Ami@d]q{AldAmpF|eEagA|jBqbM_jJ}dNniQmi@lnAegGz|Mog@fy@gtLvvV}mAhcDwnKj`Zc~EzoNcvElbNynKxh[imEx}OwxCvsPwxBhaM_pG_~DorNolNsyIivIcsKe|C{fAhiGc~Kc{Ie|@yn@
------------------
[(55.593708, 37.748151), (55.588936, 37.733575), (55.588919, 37.733106), (55.591336, 37.730053), (55.600091, 37.723489), (55.610064, 37.718043), (55.619377, 37.713437), (55.629275, 37.707486), (55.630093, 37.706526), (55.630607, 37.705925), (55.631358, 37.705003), (55.63645, 37.695339), (55.641382, 37.683428), (55.645817, 37.671827), (55.65017, 37.660585), (55.654911, 37.649425), (55.659196, 37.639963), (55.666443, 37.62957), (55.675571, 37.626234), (55.682197, 37.623956), (55.68931, 37.622319), (55.702716, 37.621732), (55.710999, 37.622262), (55.711357, 37.622058), (55.719302, 37.618224), (55.727567, 37.614733), (55.728156, 37.610896), (55.729017, 37.612138), (55.73044, 37.612281), (55.738895, 37.615842), (55.740724, 37.616785), (55.742512, 37.615754), (55.743191, 37.615271), (55.744672, 37.61416), (55.748535, 37.610977), (55.749688, 37.60925), (55.756913, 37.615058), (55.764688, 37.605674), (55.765367, 37.604403), (55.769594, 37.596757), (55.770242, 37.595825), (55.777238, 37.583669), (55.778501, 37.58104), (55.784897, 37.567194), (55.788467, 37.559244), (55.791909, 37.551509), (55.798306, 37.537016), (55.801607, 37.528331), (55.804067, 37.519295), (55.806015, 37.51209), (55.810383, 37.515146), (55.818375, 37.523042), (55.823921, 37.528535), (55.830387, 37.53105), (55.831537, 37.526789), (55.838179, 37.532359), (55.839158, 37.533124)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.