{"name":"polyline-api","version":"1.0.0","description":"Google Encoded Polyline codec + GeoJSON/GPX bridge + Douglas–Peucker simplify + geodesic length. Precision 5 (Google) and 6 (OSRM/Valhalla). Deterministic, no DB, no external calls.","usage":"POST coordinates as [[lat,lon],…] (or order=\"lonlat\" for GeoJSON axis order). precision defaults to 5.","endpoints":{"POST /encode":"Coordinates [[lat,lon],…] → encoded polyline","POST /decode":"Encoded polyline → coordinates","POST /to-geojson":"Polyline/coords → GeoJSON LineString (Feature or geometry)","POST /from-geojson":"GeoJSON LineString → encoded polyline","POST /to-gpx":"Polyline/coords → GPX 1.1 track XML","POST /simplify":"Douglas–Peucker simplify (tolerance in metres)","POST /length":"Geodesic (haversine) length of the path"},"example":"POST /encode {\"coordinates\":[[38.5,-120.2],[40.7,-120.95],[43.252,-126.453]]}  → \"_p~iF~ps|U_ulLnnqC_mqNvxq`@\""}