à portée
v2.0.2Walking, cycling and transit times to everyday places from any point in Canada.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
travel_times Walking, cycling and transit times
Counts 1 request per point, whatever the modes; a batch needs a key. Minutes to the nearest place of each amenity type by each mode asked, with basis (block or hexagon) and links.map. Every mode is measured from the H3 hexagon at the point, or from the census block where the hexagon has no time, so the modes compare from one starting point. points answers a batch in rows, failed points in errors. Next: nearby_places for names, get_catalog for types and coverage.
| Parameter | Type | Description |
|---|---|---|
api_key | string | Key from check_sign_in, if this client sends none. |
include | array | One point only. walk_counts: places within walk_budget on foot, routed cities only. |
lang | string | en or fr. |
lat | number | Latitude, decimal degrees (Canada 41.6 to 83.2). |
lon | number | Longitude, decimal degrees (Canada -141.1 to -52.6). |
modes | array | Default walk. |
period | string | Transit modes; default weekday_peak, others need a key. |
points | array | 1–100 points in place of lat, lon (key); a label comes back with its row. |
statistic | string | Transit modes: p50 typical (default), p90 worst case (key). |
types | array | Default every type. |
walk_budget | integer | walk_counts' walk, 5–55 min (default 15); also the map link's budget. It does not filter the times. |
nearby_places Nearest places by direction
Counts 1 request. By default for each of the eight everyday trips: the nearest place on foot with walking minutes, compass direction and whether within the trip's limit, then up to two more within 30 minutes. Walking only, from the point's H3 cell (basis); meta.reasons explains each reason code in an answer. links.map opens the map's compass; picture adds it as an image (1 more request). Next: walking_routes for a path (key), travel_times for other modes.
| Parameter | Type | Description |
|---|---|---|
lat * | number | Latitude, decimal degrees (Canada 41.6 to 83.2). |
lon * | number | Longitude, decimal degrees (Canada -141.1 to -52.6). |
api_key | string | Key from check_sign_in, if this client sends none. |
lang | string | en or fr. |
picture | boolean | Also the compass as a PNG. |
types | array | Default the eight everyday trips. |
walking_routes Walked paths to the nearest places
Needs a key; counts 1 request per type. The walked path to the nearest place of 1–5 types, routed live in the routed cities: a GeoJSON line per type with minutes, metres and seconds at each vertex; types without one are in missing with a reason. Only when the path itself is needed. Next: travel_times.
| Parameter | Type | Description |
|---|---|---|
lat * | number | Latitude, decimal degrees (Canada 41.6 to 83.2). |
lon * | number | Longitude, decimal degrees (Canada -141.1 to -52.6). |
types * | array | 1–5 types. As travel_times' types. |
api_key | string | Key from check_sign_in, if this client sends none. |
check_trip Does a trip fit a time window
Reach: needs a member's key; counts 1 of 50 Reach answers a day. Whether a trip fits between depart and arrive: spare_minutes or short_minutes; by transit, on how many of 7 departures (3 min apart, depart ± 9 min) it fits, and the worst. stop: when to be there; stop_types: the roomiest places to stop at. Next: reach_area or find_meeting_area.
| Parameter | Type | Description |
|---|---|---|
arrive * | string | HH:MM, at most 300 min after depart. |
depart * | string | HH:MM, 24-hour. |
from * | object | Start. |
api_key | string | Key from check_sign_in, if this client sends none. |
day | string | Mon–Fri is weekday; no holidays, period or statistic. |
lang | string | en or fr. |
max_transfers | integer | Transit: most changes each way; default 4. |
mode | string | Default transit; no bike_transit. |
stay_minutes | integer | With stop_types: least minutes there. |
stop | object | A place to stop at, and minutes there. |
stop_types | array | In place of stop: types to stop at one of. As travel_times' types. |
to | object | End; omit for a round trip. |
reach_area Area within reach of a point
Reach: needs a member's key; counts 1 of 50 Reach answers a day. The area within minutes of a point by each mode: km², how many places of each type it holds, and the nearest few by name; by transit, typical (most of 7 departures) and worst case. Next: check_trip to test one trip.
| Parameter | Type | Description |
|---|---|---|
lat * | number | Latitude, decimal degrees (Canada 41.6 to 83.2). |
lon * | number | Longitude, decimal degrees (Canada -141.1 to -52.6). |
api_key | string | Key from check_sign_in, if this client sends none. |
lang | string | en or fr. |
minutes | integer | 5–120; default 30. |
modes | array | Default transit. |
time | object | Transit: leave from or arrive at the point then; default leave 08:00. |
types | array | Default the eight everyday types. As travel_times' types. |
find_meeting_area Where 2 to 4 people can meet
Reach: needs a member's key; counts 1 of 50 Reach answers a day. Where everyone, each by their own mode between depart and arrive, could be together at least together_minutes: whether they can, the longest time together, km², and the best places of each type with their shared window. Everyone must be in one routing region. Next: check_trip for one person.
| Parameter | Type | Description |
|---|---|---|
arrive * | string | HH:MM, at most 300 min after depart. |
depart * | string | HH:MM, 24-hour. |
people * | array | 2–4 people, each from and back to their own point. |
api_key | string | Key from check_sign_in, if this client sends none. |
day | string | Mon–Fri is weekday; no holidays, period or statistic. |
lang | string | en or fr. |
together_minutes | number | Least time together; default 30. |
types | array | Default the eight everyday types. As travel_times' types. |
find_place Find Canadian towns
Counts 1 request. Up to five towns by name, each with its centre lat and lon, prov and population. Neighbourhoods and suburbs (Kanata, Orléans in Ottawa) are not towns here, and a similar name may be a town elsewhere, so check prov. With lat, lon and a key: places of that name within walk_budget on foot of the point (routed cities). Next: travel_times with a town's point to map it.
| Parameter | Type | Description |
|---|---|---|
name * | string | A town, such as Toronto; with lat and lon, part of a place's name. |
api_key | string | Key from check_sign_in, if this client sends none. |
lat | number | Latitude, decimal degrees (Canada 41.6 to 83.2). |
lon | number | Longitude, decimal degrees (Canada -141.1 to -52.6). |
province | string | To choose between namesakes. |
walk_budget | integer | With lat and lon: 5–55 min; default 15. |
get_catalog What à portée offers
Free, not counted. Types with English and French labels, modes and where each works, periods, statistics, reason codes, what needs a key, coverage (with Reach's), the method and the data version; also the aportee:// resources. Next: travel_times.
account_status Check API access and get a key
Free, not counted. This connection's tier, daily limit and requests left, key_unlocks, free_without_key, and reach (allowed, remaining, or why not). Next: start_sign_in when a key is needed.
| Parameter | Type | Description |
|---|---|---|
api_key | string | Key from check_sign_in, if this client sends none. |
start_sign_in Start signing in for a key
Free, not counted. A sign-in the person approves in their browser: show them verification_url_complete and user_code (valid expires_in seconds). The key is a free member's key: a higher daily limit and every keyed feature (account_status lists them), Reach included. Next: check_sign_in with device_code every interval seconds.
| Parameter | Type | Description |
|---|---|---|
name | string | Your name on the approval page. |
check_sign_in Collect the key
Free, not counted. status: pending (ask again after interval), slow_down, denied, expired, or approved with api_key, shown once (then already_issued). Next: repeat the call that needed a key, with api_key as its api_key argument.
| Parameter | Type | Description |
|---|---|---|
device_code * | string | From start_sign_in. |