All AI Data API - Google encoded polyline algorithm: encode and decode route geometry
https://allai-api.allaihq.workers.dev/v1/tools/polyline_codecOverview
Encodes a list of latitude/longitude pairs into the Google encoded polyline format (precision 5 for Google Maps and OSRM default, precision 6 for Mapbox, Valhalla and OSRM polyline6), or decodes an encoded string back to coordinates, with point count and approximate path length in km. Up to 5,000 points. $0.005 per successful call (USDC on Base). 3 free trial calls a day. Operated by All AI LLC.