polyline

Haxe implementation of Google's polyline algorithm


Keywords
cross, google, polyline
License
MIT
Install
haxelib install polyline 1.0.0

Documentation

polyline Build Status

Haxe implementation of Google's polyline algorithm

Ported from https://github.com/mapbox/polyline

Usage

var example = [{
    latitude: 38.5,
    longitude: -120.2
},{
    latitude: 40.7,
    longitude: -120.95
},{
    latitude: 43.252,
    longitude: -126.453
}];

var encoded = Polyline.encode(example);
var decoded = Polyline.decode(encoded);