Skip to content

Add geo-gateway: pay-per-call Mapbox geospatial proxy#230

Open
sun-jay-ea wants to merge 1 commit intoxpaysh:mainfrom
sun-jay-ea:add-geo-gateway
Open

Add geo-gateway: pay-per-call Mapbox geospatial proxy#230
sun-jay-ea wants to merge 1 commit intoxpaysh:mainfrom
sun-jay-ea:add-geo-gateway

Conversation

@sun-jay-ea
Copy link
Copy Markdown

What

Adds geo-gateway to the API Examples section — a pay-per-call Mapbox geospatial proxy for AI agents.

Endpoints

Endpoint What it proxies Price (USDC)
POST /directions Mapbox Directions (walking/cycling/driving) $0.003
POST /isochrone Mapbox Isochrone (reachable area polygons) $0.003
POST /match Mapbox Map Matching (snap GPS traces) $0.003
POST /optimize Mapbox Optimization (multi-stop TSP) $0.003
POST /geocode Mapbox Geocoding (forward + reverse) $0.002
POST /matrix Mapbox Matrix (distance/time, max 5 coords) $0.0635

Why it matters

The x402 ecosystem has ~17k services but virtually zero geospatial primitives. Agents doing walkability analysis, logistics optimization, or location intelligence currently can't get isochrones, map matching, or distance matrices without signing up for Mapbox/Google with monthly contracts. geo-gateway fills that gap with per-call pricing.

Technical details

  • x402 v2, USDC on Base mainnet
  • Coinbase CDP facilitator with authenticated JWTs
  • Pre-payment validation (bad requests return 400, never charged)
  • OpenAPI discovery at /openapi.json
  • AWS Lambda + API Gateway
  • Source code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants