Straight-line geometry, not road routing: a walking-radius circle (speed x time) around a point or geocoded place and, with a destination, the straight-line distance, estimated minutes and whether it is within reach. POST /v1/routing with {from or place, minutes, to}. Places are geocoded with OpenStreetMap Nominatim. Pay per request in USDC; no account, no API key.
Endpoint
POST https://test.agent.pocket.network/v1/routing-isochrones/v1/routing
Price per call
$0.005 USD
Networks payable on
Base Sepolia (eip155:84532)
Protocol
rest
Calling it
The first call returns 402 Payment Required with the terms. Sign for those terms and retry the same request with the payment attached.
Example request
A real, working call — the request the service card verifies against.
Make one real paid call from your own wallet — about $0.005 on Base Sepolia (eip155:84532). The wallet signs; nothing here holds a key. You'll see exactly what the service answers.
No browser wallet found. Install MetaMask, Rabby, or Coinbase Wallet to try a call here.
Supported methods
Methods the registry lists for this service. The portal forwards any call as sent; the supplier decides what it answers, and a delivered answer is settled.
Methods Routing Isochrones accepts, and whether each reads or writes.
Method
Effect
GET /v1/health
read
GET /v1/version
read
POST /v1/routing
read
Schemas
Published by the service itself. The example above is generated from these.
Request schema
{
"type": "object",
"description": "The request body for POST /v1/routing.",
"properties": {
"place": {
"type": "string",
"description": "Place name to geocode (alternative to from)."
},
"from": {
"description": "Start point as [lat, lon], {lat, lon} or \"lat,lon\"."
},
"to": {
"description": "Optional destination, same formats as from."
},
"minutes": {
"type": "number",
"description": "Travel time in minutes, default 15."
},
"speed_kmh": {
"type": "number",
"description": "Speed in km/h, default 4.5 (walking)."
}
}
}
Response schema
{
"type": "object",
"description": "For POST /v1/routing, a JSON object with origin, minutes, speed_kmh, radius_m, a 24-point polygon, method and, with a destination, to, straight_line_m, within_reach and estimated_minutes. The exact shape is the service's own and is not pinned here; errors return a JSON object with an `error` field."
}