/go-polyline-to-geojson

CLI tool to decode Google's encoded polyline format and output a GeoJSON LineString.

Primary LanguageGoMIT LicenseMIT

Google Encoded Polyline to GeoJSON

Decodes Google's encoded polyline format and outputs a GeoJSON LineString. CLI tool. Accepts string polyline as an argument or it can be piped in. Uses go.geojson to convert the lat/lng list to GeoJSON.

Usage

./polyline-to-geojson '}vzuEvnxqQspYthE'

Output for that example will be this GeoJSON.