à portée

v2.0.2
ca.aportee/aportee Checked 4 days ago Published 8 days ago

Walking, 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.

ParameterTypeDescription
api_keystringKey from check_sign_in, if this client sends none.
includearrayOne point only. walk_counts: places within walk_budget on foot, routed cities only.
langstringen or fr.
latnumberLatitude, decimal degrees (Canada 41.6 to 83.2).
lonnumberLongitude, decimal degrees (Canada -141.1 to -52.6).
modesarrayDefault walk.
periodstringTransit modes; default weekday_peak, others need a key.
pointsarray1–100 points in place of lat, lon (key); a label comes back with its row.
statisticstringTransit modes: p50 typical (default), p90 worst case (key).
typesarrayDefault every type.
walk_budgetintegerwalk_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.

ParameterTypeDescription
lat *numberLatitude, decimal degrees (Canada 41.6 to 83.2).
lon *numberLongitude, decimal degrees (Canada -141.1 to -52.6).
api_keystringKey from check_sign_in, if this client sends none.
langstringen or fr.
picturebooleanAlso the compass as a PNG.
typesarrayDefault 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.

ParameterTypeDescription
lat *numberLatitude, decimal degrees (Canada 41.6 to 83.2).
lon *numberLongitude, decimal degrees (Canada -141.1 to -52.6).
types *array1–5 types. As travel_times' types.
api_keystringKey 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.

ParameterTypeDescription
arrive *stringHH:MM, at most 300 min after depart.
depart *stringHH:MM, 24-hour.
from *objectStart.
api_keystringKey from check_sign_in, if this client sends none.
daystringMon–Fri is weekday; no holidays, period or statistic.
langstringen or fr.
max_transfersintegerTransit: most changes each way; default 4.
modestringDefault transit; no bike_transit.
stay_minutesintegerWith stop_types: least minutes there.
stopobjectA place to stop at, and minutes there.
stop_typesarrayIn place of stop: types to stop at one of. As travel_times' types.
toobjectEnd; 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.

ParameterTypeDescription
lat *numberLatitude, decimal degrees (Canada 41.6 to 83.2).
lon *numberLongitude, decimal degrees (Canada -141.1 to -52.6).
api_keystringKey from check_sign_in, if this client sends none.
langstringen or fr.
minutesinteger5–120; default 30.
modesarrayDefault transit.
timeobjectTransit: leave from or arrive at the point then; default leave 08:00.
typesarrayDefault 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.

ParameterTypeDescription
arrive *stringHH:MM, at most 300 min after depart.
depart *stringHH:MM, 24-hour.
people *array2–4 people, each from and back to their own point.
api_keystringKey from check_sign_in, if this client sends none.
daystringMon–Fri is weekday; no holidays, period or statistic.
langstringen or fr.
together_minutesnumberLeast time together; default 30.
typesarrayDefault 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.

ParameterTypeDescription
name *stringA town, such as Toronto; with lat and lon, part of a place's name.
api_keystringKey from check_sign_in, if this client sends none.
latnumberLatitude, decimal degrees (Canada 41.6 to 83.2).
lonnumberLongitude, decimal degrees (Canada -141.1 to -52.6).
provincestringTo choose between namesakes.
walk_budgetintegerWith 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.

ParameterTypeDescription
api_keystringKey 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.

ParameterTypeDescription
namestringYour 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.

ParameterTypeDescription
device_code *stringFrom start_sign_in.