← Back to directory

All AI Data API - Google encoded polyline algorithm: encode and decode route geometry

https://allai-api.allaihq.workers.dev/v1/tools/polyline_codec

Overview

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.

Protocol x402 (POST)
Price $0.0050
Payment Asset USDC
Payment Network base
Category data
Provider All AI LLC (All AI Data API)
Source self-registered
Indexed 2026-12-03 19:35:58

Health

Status healthy
Latency (p50) —
Uptime (30d) —
Reliability Score —
Last Checked Never
Last Healthy Never
Consecutive Failures 0

x402 Payment Validation

Payment Requirements —
Asset Verified —
Facilitator —