Per-category travel times for many blocks
POST/v1/blocks/summary
Fastest travel time from each of many census blocks to each destination
category, by mode. This is the batch form of GET /v1/blocks/{geoid}/summary.
Each result row carries its origin geoid, and per-block population and land
area come back in blocks. The whole batch counts as one request against the
rate limit.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
Census block GEOIDs (1-250)
Example
{ "mode": [ "walk" ], "origins": [ "410390020001010", "410390020001011" ], "type": [ 30 ]}Responses
Section titled “Responses”Successful Response
POST /v1/blocks/summary (routers.batch.blocks_summary_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 CategoryTime row tagged with its origin block. (routers.batch)
object
Origin block GEOID
Travel mode label, e.g. ‘walk’
Minutes, capped at 30, 1 decimal
Origin GEOIDs skipped once the row budget was spent
Example
{ "blocks": [ { "geoid": "410390020001010", "land_area_m2": 45120, "population": 1187 }, { "geoid": "410390020001011", "land_area_m2": 38210, "population": 902 } ], "errors": [], "results": [ { "dest_type_id": 30, "geoid": "410390020001010", "mode": "walk", "travel_time": 6.5 }, { "dest_type_id": 30, "geoid": "410390020001011", "mode": "walk", "travel_time": 9 } ], "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)