Skip to content

Commit

Permalink
Changes in url
Browse files Browse the repository at this point in the history
  • Loading branch information
DeepakTG7 committed Oct 9, 2023
1 parent d08208a commit a735cd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/encode-decode.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ def encode(coords):
def decode(encoded):
return polyline.decode(encoded, 5)

encoded = encode([(37.7749, -122.4194), (34.0522, -118.2437)]) #Refer to encoded/decoded polylines from https://github.com/mapup/Encode-Decode-Google-Polyline/tree/main/sample-polylines
encoded = encode([(37.7749, -122.4194), (34.0522, -118.2437)]) #You can refer to sample encoded/decoded polylines from https://github.com/mapup/Encode-Decode-Google-Polyline/tree/main/sample-polylines
print("Encoded: ", encoded)

decoded = decode(encoded) #Refer to encoded/decoded polylines from https://github.com/mapup/Encode-Decode-Google-Polyline/tree/main/sample-polylines
decoded = decode(encoded)
print("Decoded: ", decoded)

0 comments on commit a735cd2

Please sign in to comment.