Skip to content

cluffa/GooglePolyline.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GooglePolyline.jl

A Julia implementation for encoding and decoding Google's Polyline Algorithm Format.

Usage

using GooglePolyline

# Encode coordinates
points = [
    (38.5, -120.2),
    (40.7, -120.95),
    (43.252, -126.453)
]
encoded = encode_polyline(points)
# => "_p~iF~ps|U_ulLnnqC_mqNvxq`@"

# Decode polyline string
decoded = decode_polyline(encoded)
# => [(38.5, -120.2), (40.7, -120.95), (43.252, -126.453)]

Reference

For more information about the algorithm, see Google's Polyline Algorithm Format.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages