Polyline 是斯威夫特编码和解码器,使用 Swift 编写。
Encoding
let polyline = Polyline(locations: locations) let encodedPolyline : String = polyline.encodedPolyline
Decoding
let polyline = Polyline(polyline: "_p~iF~ps|U_ulLnnqC_mqNvxq`@") let decodedLocations : Array<CLLocation>? = polyline.locations