batch

Per-POI travel times for many blocks

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.

post/v1/blocks/pois

Request

  • Base URL: https://api.close.city
  • URL: https://api.close.city/v1/blocks/pois
  • Auth: HTTP bearer

Request body

dest_idinteger[] nullable
max_minutesnumber nullable
modestring[] nullable
originsstring[] required

Census block GEOIDs (1-250)

typeinteger[] nullable

Response

Successful Response

truncatedstring[] required
truncated_reasonstring nullable

'insufficient-balance' or 'row-budget'; null if nothing was truncated

Changes

No recorded changes to this operation across all 1 revision of this API.