Per-POI travel times for many blocks
POST/v1/blocks/pois
Every nearby POI and its travel time from each of many census blocks, one
row per (origin block, POI, mode). This is the batch form of
GET /v1/blocks/{geoid}/pois. Each row carries its origin geoid. The batch
is not paginated, so each origin returns all matching POIs within
max_minutes.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
Census block GEOIDs (1-250)
Example
{ "max_minutes": 15, "mode": [ "walk" ], "origins": [ "410390020001010", "410390020001011" ], "type": [ 30 ]}Responses
Section titled “Responses”Successful Response
POST /v1/blocks/pois (routers.batch.blocks_pois_batch)
object
One origin that could not be resolved in a batch call. Extra members
carry the origin key: geoid (blocks), origin_lat/origin_lon (points),
or dest_id (catchment). (routers.batch)
object
Error slug: block-not-found, no-block-data, point-not-covered, or poi-not-found
A PoiTime row tagged with its origin block. (routers.batch)
object
Origin block GEOID
Minutes, capped at 30, 1 decimal
Example
{ "errors": [], "results": [ { "address": { "city": "Springfield", "state": "OR", "street": "742 Evergreen Ter", "zip": "97477" }, "dest_id": 4181, "geoid": "410390020001010", "lat": 44.05, "lon": -123.02, "mode": "walk", "name": "Springfield Market", "travel_time": 7 } ], "truncated": [], "truncated_reason": null}Invalid request (e.g. invalid-parameters, invalid-cursor, invalid-bbox, missing-location, missing-area, invalid-geometry, polygon-too-complex, missing-origins, too-many-origins)
400 invalid-parameters, carrying the offending fields. (core.problems, RequestValidationError handler)
object
object
Problem type URI; the final path segment is the stable slug
Missing or invalid API key (missing-key, invalid-key)
RFC 9457 problem detail. Served as application/problem+json. Additional
members appear for some problem types (e.g. errors). (core.problems.problem)
Key disabled (account-disabled)
RFC 9457 problem detail. Served as application/problem+json. Additional
members appear for some problem types (e.g. errors). (core.problems.problem)
Rate limited or token balance exhausted (rate-limited, tokens-exhausted); sets Retry-After
RFC 9457 problem detail. Served as application/problem+json. Additional
members appear for some problem types (e.g. errors). (core.problems.problem)
Backend temporarily unavailable (debit-unavailable, store-unavailable); may set Retry-After
RFC 9457 problem detail. Served as application/problem+json. Additional
members appear for some problem types (e.g. errors). (core.problems.problem)