Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 454 Bytes

README.md

File metadata and controls

17 lines (13 loc) · 454 Bytes

GooglePolyline

Swift implementation of Google's Polyline algorithm

Usage

Encoding

let coordinates: [CLLocationCoordinate2D] = [...]
let polylineString: String = coordinates.googlePolyline

Decoding

let polylineString: String = "..."
let coordinates: [CLLocationCoordinate2D] = CLLocationCoordinate2D.coordinates(fromPolyline: polylineString)