Area reachable within a travel time
get_travel_time_areaThe area you can reach from one place within 5 to 60 minutes (up to three bands) driving, walking or cycling, with its size; and, given records (up to 500 with lat/lng, or 200 addresses), which band each record falls in: "which customers are within 30 minutes' drive of the depot". Our own routing on Great Britain and US roads; elsewhere an open routing service. Set include_geometry to get the GeoJSON polygons (larger answer). The bands show on a map in the chat by itself. Set render to true only when the user wants to keep or share the map: it returns a link, GeoJSON and KML, and update_map can change it later.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | drive | |
| title | No | The kept map's title when render is on. | |
| origin | Yes | An address or {lat, lng}. | |
| render | No | Also keep the map (the bands, the origin and the records): a link, GeoJSON and KML. | |
| source | No | Instead of typing rows: { sheet: "<Google Sheets link>", tab?: "Sites" } (shared with the InstaMaps service account, or viewable by anyone with the link), { file: "<Drive link to a CSV or Excel file>" }, or { run: "<run_id from an earlier answer>" }. Columns are found by their headers (id, name, address or its parts, lat/lng); name them if they aren't obvious (id_column, address_column, lat_column, lng_column; from_column and to_column for road distances). Rows with coordinates are used as they are. | |
| minutes | No | ||
| records | No | {id, address} or {id, lat, lng}. Send your own ids to merge results back. | |
| traffic | No | weekday (default): road times with the area's measured weekday slowdown (DfT delay on local 'A' roads by council and on motorways in Great Britain; the Urban Mobility Report's Travel Time Index by US urban area). free_flow: empty roads. | weekday |
| addresses | No | Or plain addresses/postcodes, numbered from 1. | |
| background | No | With source: run as a background job and answer at once with job_id (automatic past 150 rows). Check with get_job; write_to_sheet with the job_id puts the results in the sheet as they finish. | |
| include_geometry | No |