{"openapi":"3.1.0","info":{"title":"geo-gateway","version":"0.1.0","description":"Pay-per-call Mapbox proxy for AI agents. USDC on Base via x402.","x-guidance":"Each endpoint proxies a Mapbox API. Send {path, params} in the POST body. The path must match the Mapbox API path for that endpoint."},"paths":{"/directions":{"post":{"summary":"Mapbox Directions API — walking, cycling, driving routes","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["path"],"properties":{"path":{"type":"string","description":"Mapbox API path (e.g. /directions/v5/mapbox/walking/lon1,lat1;lon2,lat2)"},"params":{"type":"object","description":"Optional query string parameters","additionalProperties":{"type":"string"}}}}}}},"responses":{"200":{"description":"Mapbox API response (JSON)"},"402":{"description":"Payment required"}},"x-payment-info":{"price":{"fixed":"$0.003"},"protocols":[{"scheme":"exact","network":"eip155:8453","asset":"USDC"}]}}},"/geocode":{"post":{"summary":"Mapbox Geocoding API — forward and reverse geocoding","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["path"],"properties":{"path":{"type":"string","description":"Mapbox API path (e.g. /directions/v5/mapbox/walking/lon1,lat1;lon2,lat2)"},"params":{"type":"object","description":"Optional query string parameters","additionalProperties":{"type":"string"}}}}}}},"responses":{"200":{"description":"Mapbox API response (JSON)"},"402":{"description":"Payment required"}},"x-payment-info":{"price":{"fixed":"$0.002"},"protocols":[{"scheme":"exact","network":"eip155:8453","asset":"USDC"}]}}},"/isochrone":{"post":{"summary":"Mapbox Isochrone API — reachable areas by travel time","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["path"],"properties":{"path":{"type":"string","description":"Mapbox API path (e.g. /directions/v5/mapbox/walking/lon1,lat1;lon2,lat2)"},"params":{"type":"object","description":"Optional query string parameters","additionalProperties":{"type":"string"}}}}}}},"responses":{"200":{"description":"Mapbox API response (JSON)"},"402":{"description":"Payment required"}},"x-payment-info":{"price":{"fixed":"$0.003"},"protocols":[{"scheme":"exact","network":"eip155:8453","asset":"USDC"}]}}},"/match":{"post":{"summary":"Mapbox Map Matching API — snap GPS traces to roads","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["path"],"properties":{"path":{"type":"string","description":"Mapbox API path (e.g. /directions/v5/mapbox/walking/lon1,lat1;lon2,lat2)"},"params":{"type":"object","description":"Optional query string parameters","additionalProperties":{"type":"string"}}}}}}},"responses":{"200":{"description":"Mapbox API response (JSON)"},"402":{"description":"Payment required"}},"x-payment-info":{"price":{"fixed":"$0.003"},"protocols":[{"scheme":"exact","network":"eip155:8453","asset":"USDC"}]}}},"/optimize":{"post":{"summary":"Mapbox Optimization API — multi-stop route optimization","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["path"],"properties":{"path":{"type":"string","description":"Mapbox API path (e.g. /directions/v5/mapbox/walking/lon1,lat1;lon2,lat2)"},"params":{"type":"object","description":"Optional query string parameters","additionalProperties":{"type":"string"}}}}}}},"responses":{"200":{"description":"Mapbox API response (JSON)"},"402":{"description":"Payment required"}},"x-payment-info":{"price":{"fixed":"$0.003"},"protocols":[{"scheme":"exact","network":"eip155:8453","asset":"USDC"}]}}},"/matrix":{"post":{"summary":"Mapbox Matrix API — travel times between points (max 5 coords, 1.25x surcharge)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["path"],"properties":{"path":{"type":"string","description":"Mapbox API path (e.g. /directions/v5/mapbox/walking/lon1,lat1;lon2,lat2)"},"params":{"type":"object","description":"Optional query string parameters","additionalProperties":{"type":"string"}}}}}}},"responses":{"200":{"description":"Mapbox API response (JSON)"},"402":{"description":"Payment required"}},"x-payment-info":{"price":{"fixed":"$0.0635"},"protocols":[{"scheme":"exact","network":"eip155:8453","asset":"USDC"}]}}}}}