Reference datasets
à portée and its reference API serve three datasets:
- à portée – slope-aware walking times to everyday amenities.
- Can-ALE – an active-living-environment index for dissemination areas.
- Spatial Access Measures – Statistics Canada measures for several travel modes.
The first is the core map data. The other two are reference datasets, served alongside it with their own source years, units, geography, attribution and reuse terms.
Discover the datasets
Section titled “Discover the datasets”curl "https://aportee.ca/v1/reference"The datasets object describes the reference datasets: field names, units, source and download
links, versions and modes. You can ask for it without a key. Its response is sent with
Cache-Control: public, max-age=86400, so you can cache it for 24 hours.
Query a reference record
Section titled “Query a reference record”The reference endpoint accepts either a census ID or a WGS84 point:
GET /v1/reference/{dataset}| Parameter | Meaning |
|---|---|
dataset (path) |
canale or sam. |
id |
An 8-digit DAUID for Can-ALE or 11-digit DBUID for Spatial Access Measures, as a string. |
lat, lon |
WGS84 point; both are required for a point query. |
mode |
Spatial Access Measures only; defaults to walking. |
key |
Optional API key; also accepted in X-Api-Key. |
# Exact census-ID lookupcurl "https://aportee.ca/v1/reference/canale?id=10010165"curl "https://aportee.ca/v1/reference/sam?id=35250772001&mode=public_transit_peak"
# Look up the polygon containing a pointcurl "https://aportee.ca/v1/reference/canale?lat=43.25085&lon=-79.81809"curl "https://aportee.ca/v1/reference/sam?lat=43.25085&lon=-79.81809"An ID query returns the source record. A point query returns the source record of the area that contains the point, with the measures as the source publishes them. The area outlines are simplified and quantized: near a boundary, or where the outlines don’t reach, use an exact census ID.
Values and missing data
Section titled “Values and missing data”Every source field appears in values with value, reason, and unit:
{ "ALE_index": { "value": -0.419145984, "reason": "ok", "unit": "index" }, "ALE_transit_index": { "value": null, "reason": "missing", "unit": "index" }}Missing source values (.., NA, or blank) become null with reason: "missing"; treat them
as unknown. Numeric zero stays zero, with reason: "ok". A record whose values are all missing
returns 200.
The response also contains dataset, id, mode (Spatial Access Measures only), point
(point queries only) and meta. meta gives the version, reference year, geography, geography
vintage, ID field, source links, methodology, attribution, reuse terms, source SHA-256 and lookup
method.
Limits and errors
Section titled “Limits and errors”Reference lookups are free for everyone and don’t count against the API’s daily quota. They have
their own fair-use limit of 10,000 lookups a day per IP or key. Responses have quota headers and
Cache-Control: private, no-store. The reference endpoints answer one point or ID at a time; for
bulk analysis, use the source downloads.
| Status | Meaning |
|---|---|
200 |
Source record returned, including explicit null fields. |
400 |
Missing, conflicting, or malformed selectors; unsupported mode. |
404 |
Unknown dataset, no containing polygon, or no source record for this mode. |
422 |
Non-finite coordinates or coordinates outside the Web Mercator map. |
429 |
Fair-use limit reached; the body’s detail says when it resets. |
503 |
Dataset or geometry is not installed, storage failed, or an artifact failed its integrity check. |
A 503 means the dataset is unavailable; treat the location’s values as unknown. Keep each
dataset’s attribution and follow its source’s reuse terms. The travel-time API’s ODbL attribution
doesn’t apply to the reference datasets.