# à portée documentation
# What is à portée?
> Walking, cycling and transit times to everyday places from every block in Canada.
Source: https://aportee.ca/docs
**à portée** (French for *within reach*) shows how long it takes to reach everyday places from
every block in Canada, on foot, by bike or by transit. Pick the places you go to, such as
a grocery store, a school or a park, and the map colours each block by the time it takes to get
there.
## Measured along real streets
à portée routes every trip along the streets and paths
in OpenStreetMap, with R5, an open-source routing engine. The routing also accounts for hills and
for time spent waiting for transit.
For the full details, check out the [Methodology](/docs/methodology/) page.
## Everyday places
à portée covers a wide range of everyday destinations, from food and health care to schools,
parks and community services:
For details on what counts for each point of interest, check the
[Amenities](/docs/methodology/amenities/) page.
## Fresh data
The places come from OpenStreetMap and Overture Maps, checked against Statistics Canada's
databases of health and educational facilities. We rebuild the maps and routes every month;
we last updated the data on October 21, 2026.
## Data on demand
You can download the amenity database as [open data](/docs/data/open-data/), or [ask
us](/docs/services/) for bulk extracts, earlier versions or custom analysis. Developers
can get walking times for any point in Canada through our REST API, a command-line client or an MCP
server for AI agents. Keys are free for personal use, research and teaching. Get started over in
the [Developer Docs](/dev/).
## Next steps
- **[The map](/)**: search for a place and start exploring.
- **[Reading the map](/docs/map/reading-the-map/)**: a guide to the à portée interface.
- **[Map views](/docs/map/map-views/)** and **[presets and starter packs](/docs/map/starter-packs/)**:
other ways to colour the map, and ready-made sets of amenities.
- **[Methodology](/docs/methodology/)**: how travel times and amenity counts are measured.
- **[Services](/docs/services/)**: data extracts and custom analysis.
---
# Reading the map
> What the block colours, amenity dots, amenity picker, travel modes and map styles show.
Source: https://aportee.ca/docs/map/reading-the-map
## Block colours
The map colours each census block by how long it takes to reach the nearest place of the kind you
selected, in the travel mode you chose.
With several kinds of place selected, a block shows the **longest** of their times: green only when
every one is close. With grocery stores and schools selected, a block 4 minutes from a grocery store
and 22 minutes from a school is coloured for 22 minutes.
In towns and rural areas a block can cover several square kilometres, so the colour is drawn on
hexagons about 130 m across inside it, each with its own time.
A blank block means no time could be calculated: either nothing of that kind is within 60 minutes, or
the block could not be routed. The map shows both the same way, so treat a blank block as unknown
([more in Known limits](/docs/methodology/#known-limits)).
## Amenity dots
Dots mark the places the times are measured to, each grocery store, pharmacy, school, park and so
on, coloured like its amenity's row in the panel. Click a dot for its name and kind.
A dot that looks close can still be a long trip, and the block's colour shows you the time of the
real route. Places like these can take minutes longer than they look: a park across a highway with
no crossing, a store whose only entrance faces the other street, or a school on the far side of a
rail line.
## A place's compass
Click the map to pick a place. Drag its pin and the compass follows. Click elsewhere on the map, or
press Esc, to clear the place; with plus, Undo brings it back.
The place's card opens on the **compass**: the nearest grocery store, pharmacy, convenience store,
bank, park, café, library and clinic, each in its direction from the pin and as far out as its
minutes, in the travel mode you've chosen. Minutes are marked by rings at 5 and 15, and anything 30
minutes or more away sits at the rim. Each kind also shows its next two places as faded dots.
- **Walks.** On foot, hover a place on the compass to see its walk on the map, and click it to keep
the walk: its minutes sit on the line, its turns beside the dial, and the rest of the map fades
back. Click the pin at the centre to keep every walk, or double-click it to fit them all on
screen.
- **Turning and moving the map.** Drag the north mark round the dial to turn the map, and
double-click it to reset north. Scroll over the dial to zoom the map, or drag inside the
inner ring to move it.
- **Details.** Each row lists a kind of place with its nearest place and minutes. Open a row for
the next two places, or click the flag at its end to report a problem.
## Choosing amenities
The **amenity picker** in the panel lists every [kind of place](/docs/methodology/amenities/) on the
map. Add one to colour the map by it, add several to see where they're all close, and remove one
to drop it.
## Searching and cities
The search field finds towns, addresses and places. The free map shows shortcuts to cities beside
the field; choosing one moves the map there. With plus, the **Cities** button at the end of the field
opens those shortcuts. The clock button opens your **recent searches**, where you can reopen a
place, save it to Places, or remove it.
## Travel modes
The map opens in walking mode. The **Walking**, **Cycling** and **Transit** switch beside the panel
(at the top of it on a phone) sets one mode for every amenity you've selected. Transit times use the
weekday morning peak:
the typical (median) trip over 24 departures between 7 and 9 am, within 60 minutes.
Transit times appear wherever an operator publishes a timetable we can use, so a gap in transit
times can mean a missing timetable ([transit coverage](/docs/methodology/#transit-coverage)).
When transit is on the map, the legend's **Sources** link shows you the operators and terms behind
the times on screen.
The map is for comparing places. When you're heading out, check a route planner for the live trip.
## Map styles and Streets
In à portée plus, the map gains a **Map style** pane. It sets the colour scale (Red–Yellow–Green, Viridis, Cividis or
à portée), the base map (Liberty, Positron, Dark or none), and turns satellite imagery and 3D
terrain on or off.
The pane's **Shading** row sets what the colours are drawn on. **Hybrid**, the default, draws the
small census blocks and hexagons inside the large ones. **Hexagons** draws hexagons everywhere, and
**Blocks** draws every block; zoomed far out, where there are no block times, it draws hexagons.
**Smooth hexagon colours**, under **More settings**, blends the hexagons' colours so the five-minute bands soften.
The same row switches to **Streets**, which colours each street by the
hexagon it passes through. Streets are cut at hexagon edges, and each piece takes that hexagon's
times. Streets in a hexagon with no result stay uncoloured. The current release has street colours
for walking only, so Streets is available while every amenity is on walking.
---
# Map views
> The other ways the map can be coloured, and how each is calculated.
Source: https://aportee.ca/docs/map/map-views
Here's each way you can colour the map, what each view measures and how we calculate it. Once you're
signed in, you choose a view from the card at the top of the sidebar. Minutes, Can-ALE and StatCan SAM are
part of [plus](/#plans), free with sign-in; those marked pro need the pro plan.
## Minutes
The default view: each census block (or hexagon, where blocks are large) is coloured by the
travel time to the nearest of the selected kinds of place, as described in
[Reading the map](/docs/map/reading-the-map/). With several selected, it shows the longest of
those times.
Signed in, each amenity row has its own travel mode and an optional **time limit** (plus).
A block is then coloured only where every row is within its limit.
## No car
No car asks whether someone who no longer drives can still reach their everyday errands. It
starts with a grocery store, a pharmacy and a clinic, each within a 15-minute walk. That is a
starting point: add or remove kinds of place, or change any row's mode or limit, to match the
person you have in mind.
The map colours each block at the chosen walking pace:
- **Green:** every row is within its limit at that pace.
- **Orange:** every row is within its limit only at the typical pace.
- **Grey:** at least one row is beyond its limit even at the typical pace.
### Walking pace
The **Walking pace** control has three settings:
- **Typical:** 1 metre a second (3.6 km/h), the pace every other time on the map uses.
- **Slower:** 0.9 metres a second. US traffic signals are timed for slower pedestrians at
0.91 metres a second, and Swiss adults aged 80 and over preferred 0.94
([Eggenberger et al., 2017](/docs/data/references/#walking-speed-and-slope)).
- **Much slower:** 0.8 metres a second, the average normal pace of older women
([Asher et al., 2012](/docs/data/references/#walking-speed-and-slope)).
At a slower pace every walk takes proportionally longer: a 10-minute walk takes 12.5 minutes at 0.8.
Hills are already part of each walk's time, so they slow down by the same proportion. The slower
pace applies differently by mode: walking rows are adjusted, a transit row is adjusted as a whole
(to approximate its walks to and from stops), and cycling rows stay as they are.
## Ratio
Ratio compares two kinds of place, for example cafés and bars. For each block, we compare the
nearest café with the nearest bar on foot and colour the block by how much closer the first is than
the second: teal where the first is closer, brown where the second is, and neutral where they are
within 2 minutes of each other. Either counts as much closer once the gap reaches 5 minutes. Where
only one can be reached, the block takes a grey tinted toward that one; where neither can, the
block is left uncoloured.
The places of each kind are drawn in their side's colour, teal for the first and brown for the
second, so you can see which places pull a block's colour their way. To set two pairs against each
other, open **Compare with** while Ratio is on: Ratio is already picked under **Map view**, and you
choose the second pair there.
## Reach
Reach shows where you can get to within a time limit, and when. It is routed like the rest of the
map, on foot, by bike or by transit, for the time and day you set with **Leave at** or **Arrive
by**. Choose From here, Meet or Trip at the top of **Places** in the sidebar. Under it, **Reach**
names what the map draws beside a small 3D view you can turn; the magnifier opens the full 3D view
and its timeline.
{/* Screenshot needed: Reach for one place in Hamilton, the 3D view beside the map, light and dark, 1600 x 800. */}
- **From here.** Places lists the place you picked on the map and up to three places of your own.
Turn on a place's eye switch and the map draws the streets you can reach from it within your
time limit. Several places can show at once.
- **Trip.** A trip goes from the first place shown in Places to the second, within your time limit.
The map draws every street you could pass through and still arrive in time, coloured by the
minutes to spare there.
Add a stop, such as a grocery store, and how long you'll stay. When no trip fits, a note gives the
fastest trip's minutes and offers to allow that much time.
- **Meet.** Add the places people start from, each with its own travel mode. Meet shows where they
could all be together, within a time limit or at any time, and for how long.
- **The 3D view.** Time runs upward, so a trip stands as a shape between A and B and From here as a
cone over its place. Drag to turn it, and play the timeline to see which streets are open at each
minute. It turns with the map unless you unlink them.
By transit, Reach looks at seven departures, every 3 minutes from 9 minutes before your time to 9
minutes after (with **Arrive by**, seven arrival times). A bus missed by a minute can change the
answer. For **From here**, the map draws the area reached on most of them, **Typical**, as the main
map's transit rows say it. That area's hatched edge is the part not reached on every departure, and
the rest is the **Worst case**. A trip by transit says on how many of the seven departures it fits,
and by how much at worst.
When you share the map, the link includes your places, travel modes and minutes.
## Links to Your places
Your places, the view that showed where up to three chosen places were all within reach, is now
part of Places. A link made with Your places opens on Minutes, with its places in Places for that
visit. A saved view with a pin can be added to Places from its row under Saved views.
## Can-ALE
Can-ALE rates each dissemination area from 1 to 5 by how well its built form supports walking, from
dwelling density, intersection density and points of interest within 1 km of the area's
population-weighted centre. It is the Canadian Active Living Environments database, shown here in
its 2021 edition ([Herrmann et al., 2019](/docs/data/references/#map-views); [Fuller et al.,
2026](/docs/data/references/#map-views)). It describes the shape of a neighbourhood, so it has its
own colours and legend. See [Can-ALE](/docs/data/can-ale/) for the data.
## StatCan SAM
Statistics Canada's Spatial Access Measures, from 2024 data, rate how well each census block reaches
eight kinds of destination by walking, cycling and transit ([Statistics Canada,
2025](/docs/data/references/#map-views)). Choose a destination, then a mode; a mode SAM doesn't
measure for that destination is greyed out. Each destination offers SAM's own options:
- **Cycling:** routes for cautious cyclists, confident cyclists, or any rider.
- **Transit:** peak or off-peak.
- **Groceries:** the closest, third-closest or fifth-closest store.
Grocery stores are travel times on the same colours as Minutes, so you can compare the two views
directly, though SAM's list of grocery stores differs from à portée's. The other destinations are
access scores from 0 to 1, with their own legend. See [Spatial Access
Measures](/docs/data/spatial-access-measures/) for the data.
## Landscape and Skyline
Landscape and Skyline draw the map in 3D.
- **Landscape** raises each block by its minutes to the selected kinds of place, so poorly served
areas become ridges. Its colour shows either the minutes or which selected place is the farthest;
in the second, blocks are grey where every selected place is within 15 minutes.
- **Skyline** raises each block by how many of the selected kinds of place are within reach
(each within its row's limit, or 15 minutes without one), so well-served centres become towers.
Ready-made sets of amenities, and your own saved sets, are on
[Presets and starter packs](/docs/map/starter-packs/).
---
# Presets and starter packs
> Ready-made sets of amenities for common ways of living, and saving your own as presets.
Source: https://aportee.ca/docs/map/starter-packs
A starter pack opens the map on a way of living: a set of amenities, each with a travel mode and a
time limit, so you see where all of them are within reach. Daily needs are on foot; rarer or sparser
trips use transit or a bike. Two packs follow an idea of a neighbourhood , grouping several households:
Carlos Moreno's 15-minute city and his 30-minute territory. A preset is a set you save yourself.
## Starter packs
Once a pack is open you can add or remove amenities. You can also change any amenity's mode
or limit with plus. You can share the map you have adjusted: its link includes your full selection.
Each pack has a short link (`aportee.ca/family`, and `aportee.ca/fr/family` in French). Adding
`?pack=family` to any map link, such as a city page, opens that place on the pack; amenities or
modes already in the link take precedence over the pack's.
We chose the packs and their limits as a starting point, so each map still reads as "what is
close to home". Until you change a pack, a note above the amenities says why we chose its places
and limits. Adjust them to fit your own household.
## Presets
The **Presets** button opens a panel beside the sidebar with the starter packs and your own
presets: named sets of amenities, each with its travel mode and limit (and, for transit, its period
and statistic), and the map view the preset was saved on. Choosing one replaces the amenity rows, and **Undo** on that preset restores the
previous rows. You can keep up to 20 presets. The button is the bookmark at the end of the **Add an
amenity** row.
---
# plus and pro
> What the free map, plus and pro each include.
Source: https://aportee.ca/docs/map/plus-and-pro
export const features = buildFeatures();
The map at [aportee.ca](https://aportee.ca) is free. It gives walking and cycling times to every
amenity across Canada, and transit times at the weekday morning peak. Sign up with your email for
plus, which is also free and adds the features below and product updates.
The paid pro plan adds four map views and print-ready city sheets, full API access and
generous request limits. [See pro](/pro) or [sign up for plus](/#plans).
## At a glance
| Free map | plus | pro |
| Every amenity, Canada-wide | ✓ | ✓ | ✓ |
| A place's compass and walks | ✓ | ✓ | ✓ |
| Travel mode | One for all amenities | One per amenity | One per amenity |
| Bike + transit | — | ✓ | ✓ |
| Time limit per amenity | — | ✓ | ✓ |
| Transit periods | Weekday peak | Any period; typical or worst case | Any period; typical or worst case |
| Comparisons | — | Views, modes, places | Views, modes, places |
{features.reach && (
<>
| Reach: streets within your time limit, on the map and in 3D | — | ✓ | ✓ |
| Reach: a trip from A to B with stops | — | ✓ | ✓ |
| Reach: where to meet | — | ✓ | ✓ |
>
)}
| Map views | Minutes | Minutes, Can-ALE, StatCan SAM | Every view |
| Saved views and presets | — | ✓ | ✓ |
{features.reports && (
| Printable reports | — | 10 a month | 10 a month |
)}
| Map styles | Standard | Colour scales, base maps, satellite, 3D terrain | Colour scales, base maps, satellite, 3D terrain |
| Dark map | — | ✓ | ✓ |
| Export the map as an image | — | ✓ | ✓ |
{features.api && (
| API | Light use | Higher limits | Even higher limits |
)}
| City sheets | — | — | ✓ |
| Price | Free | Free with an email address | CAD $20 a month |
## Free map
Every amenity in Canada, with one travel mode for the whole map. Transit uses the weekday morning
peak. The map opens in light colours and shows travel times in minutes. Click any place for its
[compass](/docs/map/reading-the-map/#a-places-compass): the nearest everyday places and the walk to
each. The
API is open for light use. No account is needed.
## plus (plus)
à portée plus is free with an email address: sign in with an email link, no password or card. It adds:
- A mode and time limit for each amenity. Walk, cycle or take transit to one amenity while another
uses a different mode, including bike + transit, and set a time limit for each amenity.
- Transit at other times. Weekday night, Saturday midday or Sunday midday, and the choice between
Typical (median) and Worst case (90th percentile) waits.
- Comparisons. Compare the map with another view or the same amenities in other
modes, swiped or side by side. To compare a mode, shift-click it. You can also show modes as a
difference map.
{features.reach && (
- Reach. See the streets within your time limit of a place, on the map and in
3D. Plan a trip from A to B with stops and the time to spare. Find where people starting from
different places could meet. More on Reach.
)}
- Saved views and presets. Save a set of amenities as a preset, or a whole map as a view to come
back to or share.
- Map styles. Four colour scales, four base map choices, satellite imagery and 3D terrain.
- Dark map. The map and its panels turn dark, easier on the eyes at night. Switch it on with the moon button at the top of the sidebar.
- Export the map as an image. Download it with a title, a legend and each amenity's travel
settings.
- Can-ALE and StatCan SAM. The two Statistics Canada map views.
{features.reports && (
- Printable reports. Ten location reports a month.
)}
{features.api && (
- API access. Higher limits.
)}
## pro (pro)
à portée pro is CAD $20 a month, month to month. Cancel any time. It includes everything in
plus, and adds:
- No car. Whether someone who no longer drives can reach everyday errands, at a chosen
walking pace.
- Ratio. Compare two kinds of place: which is closer, and by how much.
- Landscape and Skyline. The map in 3D, showing access as ridges or towers.
- City sheets. A print-ready map of a municipality, with one panel per amenity.
{features.api && (
- API access. Even higher limits.
)}
à portée pro is for individuals. Paid or public-sector use, bulk and historical data, and custom analysis need
a licence or agreement: [get in touch](/contact).
## Your account
plus and pro use the same account. Sign in with an email link; no password is needed. pro billing,
receipts and cancellation are handled by Stripe. You can delete your account at any time.
---
# Methodology
> How à portée calculates walking, cycling and transit times from census blocks to everyday destinations, the settings and sources of the current release, and where the results fall short.
Source: https://aportee.ca/docs/methodology
We calculate walking, cycling and transit times to the nearest of each of
35 kinds of place: where trips start, where they end, how each mode is routed, and why
some blocks have no time. Further down are the exact sources and settings of the current release,
its known limits and how to cite it. If you're new to the map, start with [Reading the
map](/docs/map/reading-the-map/); for what we count as a grocery store, a clinic or a park, see
[Amenities](/docs/methodology/amenities/).
## Calculating travel times
Travel times are calculated from two kinds of starting point: 2021 census dissemination
blocks, and a finer grid of hexagons.
A dissemination block is Statistics Canada's smallest standard census area. Each block is
routed from one representative point. In a city a block is usually one street block, so
that point is close to every home in it. In rural areas a block can cover several
square kilometres, so a home at the far edge can be many minutes from the block's point. That is
why the map uses hexagons for large blocks.
The hexagons come from [H3](https://h3geo.org), a global grid, at resolution 10: each cell
is about 130 m across and is routed from its centre. Hexagons are routed wherever people
live, and in small unpopulated blocks (1 km² or less) that contain a destination, such as
a campus or a shopping area.
For each starting point and category, the result is the shortest trip to any destination
in that category, up to 60 minutes: on foot along the pedestrian network, by bicycle along
the cycling network, or by public transit from a stop reached on foot or by bicycle.
## Blocks and hexagons on the map
The map shows census blocks where they are small – 0.1 km² or less, about 300 m by 300 m –
and hexagons everywhere else. Hexagons draw once the map is zoomed in to a neighbourhood;
further out it shows blocks alone, which read better at that scale. In cities most of the
map is blocks; in towns and rural areas it is mostly hexagons. Large unpopulated blocks
have no hexagons and are left blank.
The gap between a block's time and its hexagons' can be wide. A
5.7 km² block on Highway 5 West in rural Hamilton
has 113 residents. From its representative point, the walk
to the nearest grocery store is 19 minutes. Its
residents are counted in the 64 hexagons that hold its
120 mapped homes, and from there the median resident's walk
is 49 minutes.
The [Streets view](/docs/map/reading-the-map/#map-styles-and-streets) colours each street by the
hexagon it passes through. Streets are cut at hexagon edges, and each piece takes that hexagon's
times. Streets in a hexagon with no result stay uncoloured.
When several categories are selected, the map shows the longest of their nearest times.
This is the travel time needed to reach each selected category on its own. A single trip that
visits all of them takes at least as long.
## Sources
| Source | Used for | Licence |
| --- | --- | --- |
| Statistics Canada, 2021 Census | Block boundaries, representative points, population | Statistics Canada Open Licence |
| Statistics Canada, National Address Register | The homes that large blocks are routed from | Statistics Canada Open Licence |
| OpenStreetMap | Streets and paths; destinations | ODbL 1.0 |
| Overture Maps Foundation, Places | Destinations | Set per contributor: CDLA-Permissive-2.0, Apache 2.0 or CC0 1.0 |
| Natural Resources Canada, MRDEM-30 | Elevation | Open Government Licence – Canada |
| Statistics Canada, Open Database of Healthcare Facilities | Checking, and adding to, hospitals, clinics, nursing homes and pharmacies | Open Government Licence – Canada |
| Statistics Canada, Open Database of Educational Facilities | Confirming schools from ambiguous Overture categories and setting their levels | Open Government Licence – Canada |
| Transit operators, GTFS timetables | Transit and bike + transit times | Each operator's terms ([Transit timetables](/docs/data/sources/#transit-timetables)) |
The version of each source in the current release is under [Release details](#release-details), and
the credit it asks for is on [Sources and licences](/docs/data/sources/).
## Combining OpenStreetMap and Overture
Many places appear in both OpenStreetMap and Overture. We combine them with our own adaptation of
[OpenPOIs](https://github.com/henryspatialanalysis/openpois), Nat Henry's open-source toolkit for
matching place records across datasets. It pairs records by name, category and distance (up to 200
m) and matches each record with at most one from the other source.
A second pass then removes duplicates that remain. Two records are treated as the same place
only when:
- they have the same name and category, are within 30 m of each other, and no other
similar place is nearby; or
- they have the same category, are within 100 m, have similar names, and share both a
phone number and an address.
Two Overture records must also share a phone number or address. Schools are left out of the
second pass. Pairs that don't meet these tests stay as separate destinations.
A duplicate that slips through doesn't change walking times: the nearest grocery store is
the same distance away whether it is listed once or twice. It does add one to the
destination counts.
We then sort each place into one of the map's [kinds of amenity](/docs/methodology/amenities/).
## Walking network
[R5](https://github.com/conveyal/r5), open-source routing software, builds a pedestrian network
from the streets and paths in OpenStreetMap, through [r5py](https://r5py.readthedocs.io), its Python
interface. The network for each census division is routed separately,
clipped to the bounding box of its blocks plus about 7.6 km. That box takes the streets of every
province or territory it touches, so a walk that crosses a census division or provincial boundary
is found.
A block's destinations are the places within about 7.6 km of the bounding box of its census
subdivision's blocks, from any province or territory. That covers a 60-minute walk and the distance
between each end of the trip and its street; such a walk can reach about 4.3 km downhill. If a
census subdivision has no destination of any kind in that area, none of its blocks has a walking
time.
Hexagons, and every cycling time, are routed in larger regions of H3 cells. Each region's network
and destinations extend about 16 km past its edge, across provincial and territorial boundaries.
That covers a 60-minute walk and a 60-minute ride, which can reach up to 14.4 km.
Starting points and destinations are connected ("snapped") to the nearest walkable street
or path. A point that can't be connected gets no result, unless it's a block's: the
trip then starts from the nearest point on the block's boundary that can be, within 2 km of the
block's point.
Parks and playgrounds are often mapped as areas with a single label point that can be far
from any entrance. A census block gets zero walking time for that category (and for the park
size classes) when it overlaps or touches a mapped park, dog park or playground area. The rule
applies to blocks only: hexagons, and every cycling time, are routed to the park's access points, so
a hexagon inside a large park shows the walk to its nearest access point.
Trips from blocks outside a park end at one of its access points. Access points are the park's
mapped entrances and gates, and the places where streets and paths cross its edge. A park with
neither is reached at its edge where a path or street runs close to it, or failing that at its label
point. A park under 0.5 ha has one access point; larger parks have up to 12, spread around the edge.
## Walking speed and hills
On flat ground the model walks at 3.6 km/h, R5's default: 60 m a minute, so 15 minutes
covers about 900 m of street.
We keep this value so that every walking time on the map uses the same pace everywhere in Canada,
including walks to and from transit stops. That pace is slower than the 5 km/h often quoted for an
adult walking briskly, so the map's times can look long. The map colours a block grey when the walk
from it to a selected place takes over 30 minutes. At 3.6 km/h, a 2 km walk along the streets takes
about 33 minutes, so the block it starts from turns grey; at 5 km/h the same walk takes 24 minutes.
If you walk faster than 3.6 km/h, you cover more ground in 33 minutes than the map shows. If you
walk more slowly, open the No car view and set its [walking pace](/docs/map/map-views/#walking-pace).
Speed changes with slope according to
[Tobler's hiking function](https://en.wikipedia.org/wiki/Tobler%27s_hiking_function),
using elevation from MRDEM-30, Natural Resources Canada's 30 m national elevation model.
Gentle descents are slightly faster than flat ground; climbs and steep descents are
slower. A walk to a destination can therefore take a different time from the return trip.
We measure the trip to the destination. The elevation model gives one height for each cell of
about 30 to 55 m across, so a stretch of street shorter than a cell takes its slope from the
centres of the cells at its two ends. No street counts as steeper than 40%, slightly steeper than
the steepest streets on record (35 to 37%). In the current data, adding hills makes walks from the
map's hexagons in Hamilton 0.2 minutes longer
on average, and changes 100% of them by 4 minutes or less. The
largest changes are on routes up and down the escarpment.
Everyone is modelled at the same speed. The model does not adjust for age, mobility,
strollers, weather or winter conditions.
## Cycling
Cycling times use the same destinations and elevation model as walking. On flat ground the
model cycles at 12 km/h: 200 m a minute, so 15 minutes covers about 3 km of street.
We build the cycling network with the same elevation model and R5's Tobler slope setting as
walking, so slope changes cycling time by the same proportion as walking time: at most 1.2 times
faster on a gentle descent, and slower on climbs and steep descents. This is an approximation:
Tobler's function describes walking; cycling uses a different function. We measured climbs of 100 to 200 m up Hamilton's
escarpment and North Vancouver's Lonsdale Avenue. On them, the ride takes longer than on flat ground
by 5% to 22%.
The same rule also slows steep descents, making the ride back down 4% to 14% longer where a real
rider would usually go faster, so cycling times on steep downhill routes are conservative.
Cycling is routed from the hexagons only. At 12 km/h a hexagon takes about 20 seconds to
cross, so a block takes the cycling time of the hexagon containing its representative point. Where that
hexagon has no result, the block takes the median of the routed hexagons within two rings
around it; with none, the block has no result.
A cycling time is at most the walking time to the same kind of place.
Routes keep to streets and paths with a
[level of traffic stress](https://docs.conveyal.com/learn-more/traffic-stress) of 3 or
less on the four-level scale. Level 4 covers streets that most riders find stressful, such
as busy multi-lane roads without a bike lane. R5 estimates each street's level from its
OpenStreetMap tags. Where a route has to use a level 4 street, the rider walks the bicycle
along it at walking speed.
The model does not account for parking or locking a bicycle, bike-share availability,
cycling infrastructure quality beyond the traffic-stress level, or the delay at traffic
signals.
## Transit
Transit times are calculated from the timetables that transit operators publish in the
GTFS format, so you'll only find transit times where an operator publishes one
([transit coverage](#transit-coverage)). We credit every operator whose timetable we use
([sources and licences](/docs/data/sources/#transit-timetables)).
Each release routes one service day of each type: a Wednesday, a Saturday and a Sunday.
Results are published for four departure periods:
| Period | Service day | Departures |
| --- | --- | --- |
| Weekday peak | Wednesday | 07:00–09:00 |
| Weekday night | Wednesday | 22:00–01:00 |
| Saturday midday | Saturday | 12:00–14:00 |
| Sunday midday | Sunday | 12:00–14:00 |
The weekday night period includes trips that the timetable lists after midnight on the
Wednesday's service; early trips on the following day are not included.
Within each period, 24 departure times are sampled, one from each equal slice of the
window: one every 5 minutes on average in a two-hour period. Every starting point uses the
same departure times. For each departure, the trip is the fastest combination of:
1. up to 30 minutes on foot (walk + transit) or by bicycle (bike + transit) to a stop;
2. waiting, riding and transferring, with up to 8 vehicles in one trip;
3. a walk from the last stop to the destination.
The whole trip, including the first wait, is limited to 60 minutes. In bike + transit, the
bicycle is left at the first stop and is not carried on board.
Where walking or cycling directly is faster than any transit trip for a departure, that
departure takes the direct time. A starting point with no stop within 30 minutes takes its
walking or cycling time for every departure.
The 24 departures give a spread of trip times. The map shows
either the median (**Typical**) or the 90th percentile (**Worst case**), the time that only
one departure in ten exceeds. Both are interpolated linearly between the sorted departures (the usual
spreadsheet method), and the median is shown only when at least 13 of the 24
departures reach the destination within the hour. The median reflects a trip at an ordinary moment; the 90th
percentile reflects a trip that has just missed an infrequent service.
Each stop is routed once for every minute of the period, and starting points join the
results of the stops they can reach. A trip joined this way boards at the first whole
minute after the rider reaches the stop, so it can be up to a minute slower than a search
from the starting point itself, and is never faster.
## Transit coverage
Walking and cycling times are calculated everywhere; transit times only where an operator publishes
a timetable we can use. An area is left without transit times when:
- **No published feed.** We start the list of feeds from Statistics Canada's inventory of public
transit feeds. An operator that publishes no timetable, or one the inventory doesn't know, is
missing; its area has walking and cycling times only. Nunavut has no feed at all.
- **No service on the sampled days.** A timetable that had expired, or that runs only in another
season, is loaded but adds no trips.
- **A feed that couldn't be used**, such as a failed download or an on-demand service whose feed
isn't a timetable.
In the current data, 65% of Canadians live within a 10-minute walk of a stop with a departure in
any of the four periods: 23.9 million of the 37.0 million counted in 2021. By province
and territory the share runs from 76% in British Columbia to 23% in Newfoundland and Labrador, and 0%
in Nunavut. The walk to the stop is routed with the same network and settings as the walking times.
## Thresholds and shares
Walking and cycling times are whole minutes, rounded down: a walk of 15 minutes 59 seconds reads
15. So "within 15 minutes" means a routed trip of less than 16 minutes. Transit times are kept to
the nearest tenth of a minute and compared without rounding.
A share is a proportion of the 2021 residents of the inhabited census blocks in an area: for
example, the residents of a city within a 15-minute walk of a grocery store. A block of 0.1 km² or
less counts all its residents at the block's own time. A larger block counts them in the hexagons
the map draws at the hexagon; the point is only the input. Its population is shared out between the hexagons that contain
its buildings, in proportion to each hexagon's buildings, and each share takes its hexagon's
times. The buildings are OpenStreetMap's, from the same download as the streets, without
the kinds that are not homes, such as garages, barns, shops and churches. A large block with no
mapped building is shared out between hexagons spread evenly across it, one for about every
0.7 km², or between all the hexagons centred inside a smaller block. Residents with no time
stay in the total and never count as within.
The map's default **Hybrid** shading draws the same hexagons, so the shares and the map agree.
**Blocks** shading still colours each large block by the time from its representative point.
To check a share yourself, download the current data's [block
archive](https://r2.aportee.ca/v/20261021-r37/canada.pmtiles) (SHA-256
`5b507177f01ed84e178d6a75ba6619b001a9160ce9281fc721330fc3eadf8ac4`), read each block's `grocery`
value at the archive's highest zoom, and join the blocks' 2021 Census populations ([Statistics
Canada notice](/docs/data/sources/#statistics-canada-notice)). Large blocks need the published
fragments, with checksums in their [manifest](https://r2.aportee.ca/v/20261021-r37-fragments/MANIFEST.json):
- [fragments.parquet](https://r2.aportee.ca/v/20261021-r37-fragments/fragments.parquet): one row per large block
and hexagon, with the block (`block_id`), the H3 cell (`cell`), the block's residents counted
there (`population`), whether they were placed by buildings or by area (`source`) and the
buildings counted (`dwellings`).
- [cells-walk.parquet](https://r2.aportee.ca/v/20261021-r37-fragments/cells-walk.parquet),
[cells-bike.parquet](https://r2.aportee.ca/v/20261021-r37-fragments/cells-bike.parquet) and
[cells-transit.parquet](https://r2.aportee.ca/v/20261021-r37-fragments/cells-transit.parquet): each of those
hexagons' minutes to every kind of place on foot, by bike and by transit at the weekday morning
peak; 999 means nothing within the hour.
- [block-fragments.json](https://r2.aportee.ca/v/20261021-r37-fragments/block-fragments.json): the counts, and
the checksum of every input.
In Mississauga (census subdivision 3521005), add up the population of the blocks with a `grocery`
value of 15 or less, leaving out the blocks listed in `fragments.parquet`. For those, add the
`population` of each row whose cell has a `grocery` value of 15 or less in `cells-walk.parquet`.
Divide by the population of all the city's inhabited blocks: that gives
68.6%.
## Release details
Each release is dated. We record its source snapshots, classification rules, software versions and
a checksum for every output file, so you can trace any result back to its inputs. Blocks, hexagons,
street colours and amenity dots on the site always come from the same release.
The current data is from October 21, 2026. We sampled the operators' transit timetables on
14, 17 and 18 October 2026. To verify a download, compare it with the [checksums of the published
files](https://r2.aportee.ca/v/20261021-r37/manifest.json); the transit timetables used are
listed in the [source notices](https://r2.aportee.ca/v/20261021-r37-transit/SOURCE-NOTICES.txt).
| Item | Value |
| --- | --- |
| Starting points | 2021 census dissemination blocks (384,284 inhabited blocks, totalling 36,991,971 residents) and H3 resolution-10 hexagons |
| Kinds of place | 34 routed: the 35 kinds on the map, plus three park sizes and two school levels |
| Routing engine | R5 7.5.1 through r5py 1.1.6 |
| Time limit | 60 minutes for every mode; walking and cycling times rounded down to whole minutes, transit times rounded to the nearest tenth of a minute |
| Walking speed | 3.6 km/h on flat ground, adjusted for slope with Tobler's hiking function |
| Cycling speed | 12 km/h on flat ground, with R5's Tobler slope setting; streets up to traffic stress level 3 |
| Street network | Provincial and territorial extracts, clipped to each census division's blocks plus about 7.6 km, and, for hexagons and cycling, to each region of H3 cells plus about 16 km |
| Destinations | Within about 7.6 km of each census subdivision's blocks, or about 16 km of each region of H3 cells, from any province or territory |
| Transit days | Wednesday 14, Saturday 17 and Sunday 18 October 2026 |
| Source | Version |
| --- | --- |
| Statistics Canada, 2021 Census blocks and population | 2021 Census |
| OpenStreetMap streets, paths and places | Geofabrik provincial and territorial extracts of 22 October 2026 |
| Overture Maps Places | 2026-10-21.0 |
| Statistics Canada, Open Database of Healthcare Facilities | v2.0 (24 September 2026) |
| Statistics Canada, Open Database of Educational Facilities | v3.0.1 |
| Natural Resources Canada, MRDEM-30 elevation | 30 m model |
| Transit timetables (GTFS) | 129 feeds from 86 operators |
## Known limits
- **Travel times are modelled.** Comparisons between areas describe this model
and its data.
- **Blank blocks** mix "nothing within an hour" with "not computed": the data doesn't tell the
two apart. A block or hexagon is not computed when its point can't be connected to the street
network. It is also not computed in a few far-northern areas, where no network could be built. In
the current data, 52,464 of the 384,284 inhabited blocks have no walking time from their
representative point to any kind of place; 1.52 million people (4.1%) live in them.
1.40 million people
(3.8%) have no walking time to any kind of place
when counted where they live, with large blocks shared out between their hexagons.
- **Transit at provincial and territorial boundaries.** Walking and cycling cross these boundaries.
Transit crosses them where a region's timetables serve both sides, as in Ottawa and Gatineau. Elsewhere,
transit trips use the streets of the province or territory their timetables serve, so a place
across the boundary may not be reached.
- **Closing bank branches.** Laurentian Bank's branches close from 6 November 2026, but the map still
counts them as banks.
- **One point per block or hexagon.** Hexagons keep this error small on the map and in the shares,
which count a large block's residents in the hexagons where its buildings are. A building
mapped in OpenStreetMap is counted as one home, however many dwellings it contains, so in a large
block with both houses and apartment buildings the houses weigh more than they should.
- **Campuses.** Universities, colleges and other large sites are reached at one point inside the
site, so the time to a campus can be longer than the walk to its nearest entrance. Parks are
reached at their entrances and edges.
- **Transit** follows published timetables for one sampled day of each type. Delays,
cancellations, crowding, and seasonal, holiday and school-term changes are not modelled, and an
operator without a published timetable is missing ([Transit coverage](#transit-coverage)).
- **Everyone walks and cycles at the same speed.** Age, mobility, strollers, weather and winter
are not modelled.
- **Mapping completeness.** A place missing from both OpenStreetMap and Overture is missing here.
- **Census vintage.** Block boundaries and population come from the 2021 Census; streets and
places are more recent.
- **Not modelled:** opening hours, temporary closures, unrecorded access restrictions,
construction, sidewalk condition, crossings, snow clearing and step-free access.
## Citation
See [Citing à portée](/docs/data/citing/) for the citation and the credits to keep with results.
The papers and datasets we rely on are listed in [References](/docs/data/references/).
---
# Amenities
> The kinds of everyday place à portée measures travel times to, and what we count as each kind.
Source: https://aportee.ca/docs/methodology/amenities
The map covers 35 kinds of place. The inclusion criteria for each amenity are
below.
## Amenity definitions
- **Grocery store:** supermarkets and general grocery stores. Convenience stores, specialty food
shops (such as M&M Food Market and Bulk Barn) and discount stores (such as Giant Tiger) are not
counted.
- **Pharmacy:** a pharmacy service, including one inside a grocery store.
- **Bakery**, **playground**, **childcare** and **bicycle shop:** places that OpenStreetMap or
Overture lists as these. Dog bakeries, tutoring centres, day camps and adult day programs are
not counted.
- **Café:** coffee shops, tea rooms and juice bars. Vape, tobacco and hookah shops are not
counted, even when OpenStreetMap or Overture lists them as cafés.
- **Restaurant:** sit-down, casual and fast-food restaurants.
- **Bar or pub:** public bars and pubs. A brewery or winery is not counted on that basis
alone.
- **School:** schools from kindergarten to grade 12. Tutoring businesses and single campus
buildings are not counted unless the Open Database of Educational Facilities links them
to a school. A school that teaches only preschool children is counted as childcare.
- **Elementary school:** a school teaching primary grades (grades 1–6).
- **Secondary school:** a school teaching upper-secondary grades (grades 10–12).
A school's levels are taken from the Open Database of Educational Facilities, then from
OpenStreetMap's level and grade tags, its category, or its name. A school whose levels
are unknown counts only as a school.
- **Post-secondary:** colleges, CEGEPs, universities and trade schools that teach only
post-secondary levels. These are not counted as schools.
- **Library:** libraries without private access, including branches inside other
buildings.
- **Park:** parks, dog parks, public gardens and nature reserves. Private grounds are
excluded. Parks that touch or overlap are treated as one park, and are also counted by
size:
- **Pocket park:** under 0.5 ha.
- **Neighbourhood park:** 2 ha or more.
- **Large park:** 20 ha or more.
A large park is also a neighbourhood park. A park mapped only as a point has no known
size and counts only as a park.
- **Dog park:** an off-leash dog park. It also counts as a park.
- **Community centre:** a physical community or cultural centre. An organization's office
is not enough.
- **Hospital:** acute-care hospitals. Rehabilitation and continuing-care centres, CLSCs and
CHSLDs are not counted.
- **Clinic:** general, walk-in, urgent-care and paediatric clinics. Specialist-only
practices are not counted.
- **Nursing home:** nursing homes, assisted living, care homes, residential hospices and
retirement homes for seniors. A home whose name says apartments, tower, condo or supportive
housing is not counted unless the name also says care, nursing, lodge or manor.
- **Bookstore:** new, used, academic and comic-book shops.
- **Hardware store:** hardware, home-improvement and DIY shops.
- **Convenience store:** convenience stores and dépanneurs, including stores named for a
convenience or fuel brand. These are not counted as grocery stores.
- **Post office:** a Canada Post outlet or post office counter. Post boxes and parcel
lockers are not counted.
- **Bank:** a bank or credit union branch. ATMs, financial advisers, lenders and insurers
are not counted.
- **Dentist:** a general or paediatric dental practice. Specialist practices are not
counted.
- **Laundromat:** a self-service laundry. Dry cleaners, and laundries for the guests or
residents of a hotel, campground or building, are not counted.
- **Place of worship:** a church, mosque, temple, synagogue, gurdwara or other place of
worship. A religious organization's office is not enough.
- **Swimming pool:** a public pool or aquatic centre. Pools at hotels and members' clubs are not
counted, and neither are unnamed pools in OpenStreetMap, which are almost all private.
- **Ice rink:** a public indoor or outdoor ice rink or arena. Curling clubs are not
counted.
- **Sports field:** a playing field, court or running track. Golf courses, bowling
greens, shooting ranges, equestrian grounds and private grounds are not counted.
- **Gym:** a gym or fitness centre open to the public with a membership or day pass, including
CrossFit gyms and the fitness rooms of recreation centres. We leave out yoga, pilates, cycling,
climbing, boxing and martial-arts studios. We also leave out gyms only for the guests, residents
or students of a hotel, building or school. Fitness equipment stores are not gyms.
- **Cinema:** a cinema open to the public. We leave out drive-ins, film studios and production
companies.
- **Liquor store:** a store selling beer, wine or spirits to take home, including SAQ, LCBO,
BC Liquor and NSLC stores, private liquor stores, The Beer Store, wine shops and agency outlets.
An outlet inside a grocery or convenience store counts as both. We leave out bars, breweries and
wineries without a store, wholesalers, bottle depots and brew-your-own shops.
- **Dollar store:** a Dollarama, Dollar Tree, Great Canadian Dollar Store or Your Dollar Store With
More, or another discount store named as a dollar store. We leave out other discount stores and
corner stores that also sell dollar goods. A dollar store never counts as a grocery or
convenience store.
- **Recreation centre:** a public recreation centre with at least two kinds of facility, such as a
pool and a gym, or a community centre, pool, rink or gym named as a recreation centre, leisure
centre, sportsplex or multiplex. It also counts as its community centre, pool, rink or gym. We
leave out single-sport arenas, clubs, school and campus centres, and parks and recreation
offices.
- **Fire hall:** a fire station, including volunteer fire halls. We leave out training centres,
museums, firefighters' associations and fire-protection businesses.
A place can count in more than one kind when each is supported separately, such as a grocery
store with a pharmacy counter or a restaurant that is also a café.
## Classification
The places come from OpenStreetMap and Overture Maps, combined so a place listed in both counts once
([how we match them](/docs/methodology/#combining-openstreetmap-and-overture)). OpenStreetMap
describes places with tags and Overture with a category hierarchy; our rules translate both into the
kinds above. A specific tag or category counts as evidence and a broad one does not: a place filed
under Overture's general "hospital" category is not counted as a hospital or clinic unless another
source or a manual review supports it.
We leave out places marked private or closed, including places whose name says they are closed,
and places whose sources contradict each other. We date each manual correction and tie it to the
source entry for that place; if that entry changes, we review the correction again.
Before each monthly update, we compare the list with the previous one by kind, source and region. We
check hospitals, clinics, nursing homes and pharmacies against Statistics Canada's Open Database of
Healthcare Facilities, which also adds facilities the other sources lack, and schools against its
Open Database of Educational Facilities.
## Something missing or wrong?
Email [feedback@aportee.ca](mailto:feedback@aportee.ca) with the place, the kind of amenity and what
looks wrong. On the map, click a dot and choose **Report an issue**. If the place comes from
OpenStreetMap, correct it there; the change appears in a later monthly update and helps other OpenStreetMap
users.
---
# Sources and licences
> The open datasets and services behind à portée, their licences, and the credits they require.
Source: https://aportee.ca/docs/data/sources
We build à portée from open data. Here's every source, what we use it for, its licence and the
credit it asks for. To see how we combine them, read the [Methodology](/docs/methodology/);
the version of each source we use now is under [Release
details](/docs/methodology/#release-details).
| Source | Used for | Licence |
| --- | --- | --- |
| Statistics Canada, 2021 Census | Census blocks and population | Statistics Canada Open Licence |
| Statistics Canada, National Address Register | The homes that large census blocks are routed from | Statistics Canada Open Licence; Open Government Licence – Yukon for some Yukon addresses |
| OpenStreetMap | Streets and paths; places | ODbL 1.0, © OpenStreetMap contributors |
| Overture Maps Foundation, Places | Places | Per contributor: CDLA-Permissive-2.0, Apache 2.0 or CC0 1.0 ([Overture attribution](https://docs.overturemaps.org/attribution/#places)) |
| Statistics Canada, Open Database of Healthcare Facilities | Checking and adding health places | Open Government Licence – Canada |
| Statistics Canada, Open Database of Educational Facilities | Checking schools and their levels | Open Government Licence – Canada |
| Statistics Canada, Spatial Access Measures | The StatCan SAM view | Statistics Canada Open Licence |
| Canadian Active Living Environments (Can-ALE 2.0) | The Can-ALE view | Cite the [Can-ALE](/docs/data/can-ale/) authors; no licence was published |
| Natural Resources Canada, MRDEM-30 | Elevation for slopes | Open Government Licence – Canada |
| Transit operators' GTFS timetables | Transit and bike + transit times | Each operator's licence ([below](#transit-timetables)) |
## Statistics Canada notice
Adapted from Statistics Canada:
- [Dissemination Block Boundary Files, Census year 2021](https://www150.statcan.gc.ca/n1/en/catalogue/92-163-X2021001)
(catalogue no. 92-163-X, issue 2021001, released 17 November 2021; boundaries as of 1 January
2021), with the blocks' 2021 Census population counts;
- [The National Address Register](https://www150.statcan.gc.ca/n1/en/catalogue/46260002)
(catalogue no. 46-26-0002, released 26 June 2026), used to find the homes in each inhabited
census block larger than 0.1 km², so that the block is routed from one of them;
- [The Open Database of Healthcare Facilities](https://www150.statcan.gc.ca/n1/en/catalogue/13260001),
version 2.0 (catalogue no. 13-26-0001, released 24 September 2026), used to add and check health
destinations;
- [The Open Database of Educational Facilities](https://www150.statcan.gc.ca/n1/pub/37-26-0001/2022001/md-eng.htm),
version 3.0.1 (catalogue no. 37-26-0001, released 13 December 2024), used to confirm schools from
ambiguous categories and to set their levels (data gathered July to November 2024);
- [Spatial Access Measures, 2024](https://www150.statcan.gc.ca/n1/en/catalogue/27260001)
(catalogue no. 27-26-0001, released 21 July 2025), for the Spatial Access Measures map view and
reference data.
This does not constitute an endorsement by Statistics Canada of this product. The healthcare and
educational facilities databases are released under the Open Government Licence – Canada. The
National Address Register includes information licensed under the Open Government Licence – Yukon.
## Transit timetables
The map uses 129 feeds from 86 operators; we last
checked them for updates on 1 November 2026. We use each feed under its operator's terms. Many
require a credit. Where an operator publishes no licence, we say so in the table.
The complete notices, with feed URLs, checksums and the reason for every excluded feed, are in the
[source notices](https://r2.aportee.ca/v/20261021-r37-transit/SOURCE-NOTICES.txt).
## The map display
- **Base map:** [OpenFreeMap](https://openfreemap.org) vector tiles, built from OpenStreetMap
data with the OpenMapTiles schema.
- **Satellite view:** Esri World Imagery (Esri, Vantor, Earthstar Geographics and the GIS User
Community), served through ArcGIS Location Platform.
- **3D terrain:** [Mapterhorn](https://mapterhorn.com/attribution), built from national elevation
models.
## Search
Town and city names in search come from Statistics Canada's census subdivisions. Street addresses
are found with [Stadia Maps](https://stadiamaps.com/attribution/), built on the Pelias geocoder from
OpenStreetMap (ODbL), OpenAddresses (various open licences), GeoNames (CC BY 4.0), Who's On First
and Foursquare OS Places (Apache 2.0).
## à portée's own data
We release the amenity database under the ODbL, and you can download it from [Open
data](/docs/data/open-data/). If you reuse the data, credit OpenStreetMap contributors and
Statistics Canada, keep the ODbL notice and follow Overture's attribution terms. Where transit times
are shown, keep the operator credits in the map's source notices.
---
# Can-ALE
> The Canadian Active Living Environments index behind the Can-ALE map view, what it measures and its limits.
Source: https://aportee.ca/docs/data/can-ale
Can-ALE 2.0, the Canadian Active Living Environments database, rates how well the built form of
each dissemination area supports walking. It appears on the map as the
[Can-ALE view](/docs/map/map-views/#can-ale) for à portée plus members (plus). It comes from researchers outside à portée, and it
is not one of our travel times.
## The dataset
| Property | Value |
| --- | --- |
| Reference year | 2021 |
| Area | Dissemination area, 2021 Census |
| Version | 2021-v2 |
## Access measure
The index combines dwelling density, intersection density and points of interest within 1 km of
each dissemination area's population-weighted centre. A second index adds transit stops. Each comes
as a score, which can be negative, and as a class from 1 (lowest) to 5 (highest); the map shows the
class.
## Limits
- A score describes the area around a dissemination area's centre; an address or block is smaller than the unit.
- Can-ALE describes the shape of a neighbourhood. It gives no walking times.
- The authors caution against comparing scores across census years.
- A missing transit score is not a score of zero.
## Source and citation
The data and code are in the [Can-ALE repository](https://github.com/walkabillylab/Can-ALE).
Cite its authors for Can-ALE values:
> Fuller, D., Ghasedi, M., Achot, G. and Ross, N. A. (2026). Canadian Active Living Environments
> 2.0: Development of an open-source pipeline for the replication and extension of the Canadian
> Active Living Environments measure. *Health Reports*. Statistics Canada.
> [doi:10.25318/82-003-x202600600001-eng](https://doi.org/10.25318/82-003-x202600600001-eng).
and the data's user manual:
> Ghasedi, M., Fuller, D., Achot, G. and Ross, N. A. (2025). *Canadian Active Living Environments
> Database (Can-ALE 2.0) User Manual & Technical Document*. University of Saskatchewan and
> Queen's University.
---
# Spatial Access Measures
> Statistics Canada's Spatial Access Measures behind the StatCan SAM map view, what they measure and their limits.
Source: https://aportee.ca/docs/data/spatial-access-measures
Statistics Canada's Spatial Access Measures (SAM) rate how well each census block reaches eight
kinds of destination by walking, cycling and transit. With à portée plus (plus), you can
show them on the map as the [StatCan SAM view](/docs/map/map-views/#statcan-sam). They come from Statistics
Canada, from published sources.
## The dataset
| Property | Value |
| --- | --- |
| Reference year | 2024 |
| Area | Dissemination block, 2021 Census |
| Version | 2024 release, with Statistics Canada's November 2025 correction for confident cyclists |
## Destinations and modes
| Destination on the map | Measure |
| --- | --- |
| Grocery (closest, third or fifth closest) | Minutes |
| Childcare | Access score, 0–1 |
| School | Access score, 0–1 |
| College or university | Access score, 0–1 |
| Health care | Access score, 0–1 |
| Jobs | Access score, 0–1 |
| Sports and recreation | Access score, 0–1 |
| Arts and culture | Access score, 0–1 |
Each destination has six modes: walking; cycling on routes for confident cyclists, cautious
cyclists, or all ages and abilities ("any rider" on the map); and transit at peak or off-peak.
- **Minutes** use the same colours as the Minutes view, so the two maps compare directly. Past 30
minutes is grey. SAM times walking and cycling up to 30 minutes and transit up to 40; a block SAM
does not time has no colour.
- **Access scores** are not travel times. A score of 1 is the best-served block in Canada for that
destination and mode. The map colours scores on a scale of their own, from lower to higher
access, in fixed bands (under 0.001, 0.005, 0.02, 0.05, 0.15, and 0.15 or more).
On the map, cycling starts on routes for cautious cyclists and transit on peak; the other choices
are under the row. A mode SAM has no measure for is greyed out.
## Limits
- A missing value is not zero, and not proof that a block has no access.
- Coverage differs from mode to mode.
- The data is from 2024, on the 2021 census blocks.
- SAM's list of grocery stores is not à portée's, so its minutes can differ from ours.
## Source and licence
The measures are defined in the record layout of the [official
download](https://www150.statcan.gc.ca/n1/pub/27-26-0001/2023001/zip/sam-msa2024-eng.zip),
catalogue no. [27-26-0001](https://www150.statcan.gc.ca/n1/en/catalogue/27260001). They are
distributed under the [Statistics Canada Open
Licence](https://www.statcan.gc.ca/en/reference/licence); cite Statistics Canada for
SAM values. The method is under
[References](/docs/data/references/#map-views).
---
# References
> The research papers, datasets and software that à portée's travel times and map views rely on.
Source: https://aportee.ca/docs/data/references
The papers, datasets and software behind à portée's travel times and map views. The data sources
and their licences are on [Sources and licences](/docs/data/sources/).
## Walking speed and slope
- Tobler, W. (1993). *Three presentations on geographical analysis and modeling*. Technical
Report 93-1, National Center for Geographic Information and Analysis. The hiking function used
for slope in walking and cycling times
([Methodology](/docs/methodology/#walking-speed-and-hills)).
- Eggenberger, P., Tomovic, S., Münzer, T. and de Bruin, E. D. (2017). Older adults must hurry at
pedestrian lights! A cross-sectional analysis of preferred and fast walking speed under single-
and dual-task conditions. *PLOS ONE* 12(7).
[doi:10.1371/journal.pone.0182180](https://doi.org/10.1371/journal.pone.0182180). Used for the
slower walking pace in [No car](/docs/map/map-views/#no-car).
- Asher, L., Aresu, M., Falaschetti, E. and Mindell, J. (2012). Most older pedestrians are unable to
cross the road in time: a cross-sectional study. *Age and Ageing* 41(5), 690–694.
[doi:10.1093/ageing/afs076](https://doi.org/10.1093/ageing/afs076). Used for the much slower
walking pace in [No car](/docs/map/map-views/#no-car).
## Cycling
- Mekuria, M. C., Furth, P. G. and Nixon, H. (2012). *Low-Stress Bicycling and Network
Connectivity*. Mineta Transportation Institute Report 11-19. The level of traffic stress that
cycling routes keep to ([Methodology](/docs/methodology/#cycling)).
## Map views
- Herrmann, T., Gleckner, W., Wasfi, R. A., Thierry, B., Kestens, Y. and Ross, N. A. (2019). A
pan-Canadian measure of active living environments using open data. *Health Reports* 30(5),
16–25. Statistics Canada.
[doi:10.25318/82-003-x201900500002-eng](https://doi.org/10.25318/82-003-x201900500002-eng).
The original Can-ALE measure.
- Fuller, D., Ghasedi, M., Achot, G. and Ross, N. A. (2026). Canadian Active Living
Environments 2.0: Development of an open-source pipeline for the replication and extension of
the Canadian Active Living Environments measure. *Health Reports*. Statistics Canada
([doi:10.25318/82-003-x202600600001-eng](https://doi.org/10.25318/82-003-x202600600001-eng)),
with its [data and code](https://github.com/walkabillylab/Can-ALE). The 2021 Can-ALE shown in
the [Can-ALE view](/docs/map/map-views/#can-ale).
- Ghasedi, M., Fuller, D., Achot, G. and Ross, N. A. (2025). *Canadian Active Living Environments
Database (Can-ALE 2.0) User Manual & Technical Document*. University of Saskatchewan and
Queen's University. The manual is in the [Can-ALE repository](https://github.com/walkabillylab/Can-ALE).
- Statistics Canada (2025). *Spatial Access Measures, 2024*. Catalogue no.
[27-26-0001](https://www150.statcan.gc.ca/n1/en/catalogue/27260001). The
[StatCan SAM view](/docs/map/map-views/#statcan-sam).
- Alasia, A., Newstead, N., Kuchar, J. and Radulescu, M. (2021). *Measuring proximity to services
and amenities: an experimental set of indicators for neighbourhoods and localities*. Reports on
Special Business Projects,
[18-001-X2020001](https://www150.statcan.gc.ca/n1/pub/18-001-x/18-001-x2020001-eng.htm).
Statistics Canada. The method behind the proximity and access measures that the StatCan SAM view
builds on.
## Software
- [R5](https://github.com/conveyal/r5), Conveyal's routing engine, through
[r5py](https://r5py.readthedocs.io). Walking, cycling and transit routing.
- [H3](https://h3geo.org), a global hexagonal grid. The hexagons used where blocks are large.
- [OpenPOIs](https://github.com/henryspatialanalysis/openpois), Nat Henry's open-source toolkit for
combining OpenStreetMap and Overture places, which we use to match places.
---
# Citing à portée
> How to cite à portée's data and site, and the credits to keep with results you publish.
Source: https://aportee.ca/docs/data/citing
When you publish results from à portée, in a paper, a report, an article or an application,
name the site, the data version and the date you used it, and keep the credits of the sources
the data is built from.
## Citing the data
Give the data version, because results change from one version to the next. The current
version's date is on the [About page](/docs/about/). Every API access result
includes the version identifier as `meta.data_version`.
> à portée (2026). *Walking times to everyday amenities in Canada*, data version
> 21 October 2026. Ammil Industries Ltd. https://aportee.ca (accessed 13 October 2026).
In BibTeX:
```bibtex
@misc{aportee2026,
author = {{à portée}},
title = {Walking times to everyday amenities in Canada},
year = {2026},
publisher = {Ammil Industries Ltd.},
howpublished = {\url{https://aportee.ca}},
note = {Data version . Accessed }
}
```
Replace the data version and the access date with your own. The sources and settings for the
version you used are under [Release details](/docs/methodology/#release-details), and its limits
are under [Known limits](/docs/methodology/#known-limits).
## Citing the site or a map view
Cite the map or a city page by its URL. When you share a map
link, it keeps the view, the amenities and the travel modes, so it opens the same view later:
> à portée. *Walking access in Hamilton* (map). https://aportee.ca/hamilton (accessed
> 13 October 2026).
To get this reference for the view on screen, choose Copy citation or Copy BibTeX under **Cite** in
the map's Share panel. The reference includes the view's link, its data version and the day you
copied it. It names the area the map shows; tick "Include the pinned place" to cite the pinned
place itself.
## Credits to keep with results
Credit the sources with any result you show: data from OpenStreetMap contributors, the Overture Maps
Foundation and Statistics Canada, available under the Open Database License. For transit and bike + transit
times, also add the transit operators' credits, listed in the source notices for your data version.
Every source and its licence is on [Sources and licences](/docs/data/sources/).
The API returns a short form of the credit with every access result, in `meta.attribution`:
```json
"meta": {
"attribution": "© OpenStreetMap contributors · Adapted from Statistics Canada · Overture Maps Foundation · ODbL (derived)"
}
```
[Can-ALE](/docs/data/can-ale/) and the [Spatial Access
Measures](/docs/data/spatial-access-measures/) have their own authors: cite them
for those values. An API lookup in either returns the dataset's citation and reuse
terms in `meta.attribution` and `meta.license`.
Using à portée in a product you sell, in paid client work or in public-sector work needs an
agreement; see the [terms of use](/docs/terms/).
---
# Open data
> Download à portée's conflated amenity database for Canada under the Open Database License, with its sources, licences and credits.
Source: https://aportee.ca/docs/data/open-data
export const version = '2026-11-05-v1';
export const base = `https://r2.aportee.ca/data/${version}`;
You can download, free of charge, the places à portée measures travel times to. The download has
975,402 rows across Canada in 34 kinds: 628,408 places and
346,994 access points, such as park entrances, that trips are routed to. A place in two kinds is
listed once per kind. The places are combined from
OpenStreetMap and Overture Maps and checked against Statistics Canada's facility databases. The data
is released under the [Open Database License 1.0](https://opendatacommons.org/licenses/odbl/1-0/) (ODbL).
## Download
The data was published on 5 November 2026.
Every file is public and supports byte-range requests.
- README: sources, versions, method, counts, columns and licences.
- conflated-parquet/:
one Parquet file per amenity type, hive-partitioned as `amenity_type=/part-0.parquet`
(for example pharmacies). Every other file in this version has its checksum listed in
SHA256SUMS.
- conflated-pmtiles/conflated.pmtiles:
the destination points as vector tiles (PMTiles), as drawn on the map.
- ODbL 1.0,
CDLA-Permissive-2.0,
Apache-2.0 and
the Foursquare notice: the licence texts that go
with the data.
Each version of the data gets its own dated folder, and we keep the older ones.
## Licence
Use it, change it and build maps, reports and products from it, including commercially. The ODbL
asks:
- **Credit** the sources below wherever you show or publish the data or a map or report made
from it, with a link where you can.
- **Share alike**: if you publish a database made from this one, offer it under the ODbL too.
Maps, charts and reports are not databases and have no share-alike condition.
- **Keep it open**: do not add restrictions that stop others from using the data under the
ODbL.
Each row's `license` column names the licence of its contents. This page is a summary and the
[licence text](https://opendatacommons.org/licenses/odbl/1-0/) governs.
## Credits to use
Short form, for a map or a credits line:
> © OpenStreetMap contributors · Overture Maps Foundation · StatCan · ODbL (derived)
Full form, for a page, a report or a README:
> Amenity data: © OpenStreetMap contributors (Open Database License 1.0) and © Overture Maps
> Foundation (CDLA-Permissive-2.0), matched and classified by à portée (Ammil Industries
> Ltd.) with tools adapted from OpenPOIs, available under the Open Database License 1.0. Contains information from
> Statistics Canada's Open Database of Healthcare Facilities and Open Database of Educational
> Facilities, licensed under the Open Government Licence – Canada.
Where you use the places that Overture records list Foursquare as a source (the
`overture_datasets` column), add:
> Foursquare Open Source Places © Foursquare Labs, Inc., licensed under the Apache License 2.0.
---
# Custom data and analysis
> Work on request: custom amenity lists, what-if analysis, bulk and historical data, and commercial licences.
Source: https://aportee.ca/docs/services
Do you have requirements that aren't currently met by à portée? [Get in touch](/contact) to discuss
your unique needs. If you'd rather do it yourself, the [open data](/docs/data/open-data/) is
self-serve, and so is the [API](/dev/api/quickstart/).
---
# About
> What à portée measures, how to read it, its data sources, and the services we offer.
Source: https://aportee.ca/docs/about
---
# Changelog
> What's new on aportee.ca and its map in each release, newest first, with earlier updates since June 2026.
Source: https://aportee.ca/docs/changelog
What's new on the site and the map in each release, newest first. The notes on each update to the
data are on the [methodology](/docs/methodology) page.
## 1.2, 27 November 2026
### Visualize access to everyday places
Click a location on the map to see how easy it is to reach everyday places from there: which way
they are, how many minutes away, and the route there. With à portée plus, Reach turns that into
planning: how far you can get in the time you have, whether a trip with stops fits, and where to
meet.
#### The compass: a quick read of a location
- **Spot the difference between locations.** Click from one location to the next and see which
has the shorter trips to the places you need.
- **On wheels, rails or by foot.** Switch between cycling, transit and walking, and the compass
redraws for the mode.
- **Full routing on click.** On foot, click a place to show its route on the map, turn by turn,
with the minutes it adds up to.
- **Twists and turns.** Each petal follows the walk there: the more it wiggles, the more turns the
walk takes.
- **More than the closest.** The next two places of each kind show too. A single grocery store 6
minutes away is not the same as three within 10.
Try it here: drag the map or click another location.
#### Reach: plan around the time you have (plus)
- **A map view of its own.** Choose Reach from the map views: your places, trips and meetings draw
on the plain map, with the time prism beside them in the sidebar.
- **Places as directions take them.** Search for A and B, pick one of your saved places, or click
the map to drop the next one.
- **How far can I get in 20 minutes?** From here shows every street you can reach on foot, by bike
or by transit, and the nearest place of each kind inside the area.
- **Will transit get me there?** Full transit routing that follows the timetables. Reach checks the
departures around the time you leave and shows the area you reach on a typical departure, and the
part you reach whichever bus you catch.
- **Can I stop on the way home?** Plan a trip with stops, such as a grocery store, and see whether
you can get everything done on the way, and how long you can spend at each stop.
- **Where can we meet?** Find the spot for a meeting of the minds: up to four people, each from
their own place and by their own mode, within a time you set.
- **See the slack in a trip.** The time prism is a new way to look at the time you have to spare:
a trip stands up from the map in 3D, with time running upward, and where it is wide you have time
to stop. Turn it and play it in [Time window](/labs/time-window).
[Try Reach](/reach) on three example trips in Toronto and Hamilton.
#### October data refresh
- **New starter packs** for exploring the 15-minute city and the 30-minute territory across Canada:
[15-minute city](/15-minute-city) and [30-minute territory](/30-minute-territory).
- **Better at spotting closed stores.** Places are checked against Foursquare's listings and the
reports people send from the map, for a truer picture of a neighbourhood.
- **The sources.** 628,408 places from OpenStreetMap (22 October 2026) and
Overture Maps (21 October 2026), and transit timetables from 129
feeds by 86 operators, refreshed on 1 November.
#### For developers
- **API and MCP access to the data behind à portée.** Travel times on foot, by bike and by transit,
with the map's options: the mode, the time of day, the minutes, and the distance along each walk.
To start, read the API quickstart or the MCP server page in the [developer docs](/dev/).
- **The compass and walking routes** for any point, in the API and the MCP server.
- **Map and compass views in AI assistants** that display MCP Apps, beside the server's answers.
- **A link to an address.** [Add the address to a map link](/dev/tools/map-links) and the map opens on
that address.
#### Improvements and fixes
- A link from the map's share button opens with the compass.
- Removed the delay in updating the map while you drag the minutes slider.
- Fixed a flash of white when the map loads in the dark theme.
- The legend widens to fit Reach's key.
- Places with no travel time are left uncoloured.
## 1.1, 25 October 2026
### Walking, cycling and transit figures for 1,000 communities
In 1.1, each of 1,000 Canadian communities has a page with its own figures for walking, cycling and
transit, and a live map of the community you can open in à portée.
#### New
**City pages**
- **On foot, by bike and by transit.** For each community, the share of residents within 10, 15,
20 and 30 minutes of a grocery store, a pharmacy, a park and an elementary school, and the typical
trip. Where the community has transit timetables, transit is for the weekday morning peak.
- **Rank and comparison.** Each community's rank among the 1,000 and within its province, beside the
provincial and national figures and communities of a similar size.
- **Questions and answers**, such as "Is Halifax walkable?", answered from the community's own
figures.
- **Counted where people live.** We count the residents of each census block larger than 0.1 km²
in the map's hexagons where its homes are.
- **Locator maps** show the community among its neighbours and in Canada.
- **A live map** of the community opens in à portée with one click, light or dark to match the
page.
- **Links** to the community on Wikipedia, Wikivoyage, OpenStreetMap, its official site and
Statistics Canada's census profile.
**à portée pro**
- **Subscribe with your email.** On the [pro page](/pro), enter your email: the link we send signs
you in and brings you back to pay, CAD $20 a month.
**à portée plus**
- **Hexagons, census blocks or both.** In Map style, choose to draw the map as hexagons about 130
metres across, as census blocks, or as small blocks with hexagons inside the large ones.
- **Smooth colours.** Colour the hexagons minute by minute, from 0 to 30 minutes, with a switch
under More settings.
- **The dark map**, with dark panels to match, for evenings.
- **Export the map as an image**, from the Export pane.
- **Compare a saved place** with the map you're looking at, from the place's menu.
**Docs**
- **Data accuracy.** On [Accuracy and corrections](/docs/accuracy), read what the
times leave out and the errors the data can contain, see the corrections we've made, and report a
problem. You can reach it from a short note beside the figures on the city pages and in the map's
About panel.
- **Walking speed.** A 2 km walk along the streets takes about 33 minutes at 3.6 km/h, the pace
the map assumes. More in the [methodology](/docs/methodology#walking-speed-and-hills).
**Interface improvements**
- We've improved the saved places pane: each place shows the kinds of place it keeps as coloured
dots.
- The Save button in the saved places pane saves the map as it is, in one click.
- A thin bar along the top of the map shows that a new travel mode or view is still loading.
- Interface tweaks to the free map for a smoother experience on phones and desktop.
#### Fixed
- The map centres your place in the part of the screen you can see, beside the sidebar.
- In the side-by-side comparison, each map has its own legend and shows your pin at the same
moment, to make comparisons easier.
- Layout fixes for tablets: the legend and side panes fit on screen, and the travel-mode switch
stays put while the page loads.
- In each place's row, the minutes sit beside the time slider and leave the whole slider in view.
- Accessibility improvements on the home page.
- The map tile on the home page sits in an even white frame.
## 1.0, 24 October 2026
### Everyday places across Canada, on foot, by bike and by transit
aportee.ca is open to everyone. Pick the places you go to, and the map colours the inhabited
census blocks of Canada by how long it takes to reach them along real streets and
paths. Walking, cycling and transit are all on the free map, with no account.
#### New
**The map**
- **Walking, cycling and transit.** Choose one travel mode for the whole map. Transit times are for
the weekday morning peak, from 128 timetables published by 85 operators.
- **29 kinds of place**, plus park sizes and school levels. The newest are
post-secondary schools, convenience stores, post offices, banks, dentists, laundromats, dog parks,
places of worship, pools, ice rinks and sports fields. See [Amenities](/docs/methodology/amenities).
- **Detail in rural areas.** The map shows travel times hexagon by hexagon, about 130 metres
across.
- **Streets.** Colour each street by its walking time.
- **Search** finds places on the map as well as towns and addresses, starting near where you are
looking, and remembers your recent searches.
- **Light and dark themes**, following your device.
**à portée plus, free with an email address**
- **A travel mode and a time limit for each place**, bike + transit included: walk to the grocery
store and cycle to the library on the same map.
- **Transit at other times**: weekday night, and Saturday and Sunday midday, with a typical or a
worst-case wait.
- **Compare** two travel modes, two sets of places, two map views or two places, swiped, side by
side or as a difference.
- **Two more map views**: how well a neighbourhood supports walking (Can-ALE), and Statistics
Canada's measures of access (StatCan SAM).
- **Pin any spot** for a card of its trips to everything you picked.
- **Starter packs** open the map on a set of places for a way of living, such as a young family.
- **Presets** keep your own mix of places, modes and limits.
- **Saved views** keep a whole map, to come back to or share as a link.
- **Map styles**: four colour scales, four base maps, satellite imagery and 3D terrain.
**à portée pro, CAD $20 a month**
- **No car, Ratio, Landscape and Skyline**: four more map views.
- **City sheets**: a print-ready picture of a municipality, with one panel per kind of place.
- Subscribe on the [pro page](/pro) and cancel any time.
**Data you can use**
- **Data published 8 October 2026**: OpenStreetMap street extracts of 25 August 2026, Overture
Maps places of 23 September 2026 and Statistics Canada's health and education databases.
- **Open data.** Download the 626,638 places the map measures to, free under the Open Database
License. See [Open data](/docs/data/open-data).
- **City pages.** Each city has a page with its share of residents within a 15-minute walk of a grocery store,
pharmacy, park and elementary school, set against its province.
**Around the site**
- **A home page.** Visit [aportee.ca](https://aportee.ca) to read about the map's measures, the
people who use it and the plans.
- **A guide** to reading the map and to how the times are computed, in English and French, with
pictures of every map view.
- **Phones and tablets:** larger controls to tap, a sheet you pull up from the foot of the screen
on phones, and the place card beside the sidebar on tablets.
#### Fixed
- Places are counted the way you would expect: a bakery-café appears as a bakery and as a café,
colleges and universities are a kind of place of their own, and a park listed twice shows once.
- The map opens straight on your city.
## Previous updates
- **October 2026.** 29 kinds of place, the plus and pro plans, Compare, the open data and,
on 24 October, version 1.0.
- **September 2026.** More places on the map. The first cycling and transit times.
- **August 2026.** In rural areas, travel times hexagon by hexagon, about 130 metres across.
- **July 2026.** The walking map went up at aportee.ca, in English and French, with 18 kinds of
place, address search, a dot for each place and a page for every municipality. Walking times
began to count hills.
- **June 2026.** The first map: walking times from each census block in Hamilton to grocery
stores and six other kinds of place, then across Canada.
---
# Accuracy and corrections
> What à portée's travel times are, what they leave out, the errors they can contain, and how to report one and see it corrected.
Source: https://aportee.ca/docs/accuracy
à portée's travel times are our best estimates. We route each trip along streets, paths and transit
timetables from open data, and check the results before every data update, but a model of a whole
country gets some places wrong.
## Time definitions
A time on the map or in a post is the routed time from a
block's or hexagon's representative point to the nearest place of a kind:
- **On foot** at 3.6 km/h on flat ground, slower uphill, along streets and paths.
- **By bike** at 12 km/h on flat ground, on streets up to a moderate level of traffic stress.
- **By transit** from the timetables operators publish, for a sampled Wednesday, Saturday and
Sunday, with the walk to and from the stops.
Walking and cycling times are rounded down to the whole minute, so "within 15 minutes" means a trip
of less than 16 minutes. The times describe an area; the unit is wider than one home or trip. A large rural block is measured from one point,
so some of its homes can be many minutes nearer or farther. We list these speeds, sampling and rounding rules in the
[Methodology](/docs/methodology/).
## Exclusions
A time is how long the trip takes on the model's streets and paths, at the speeds it assumes. The
model leaves out:
- weather and the season;
- your own pace and mobility, and what you carry, such as a stroller or groceries;
- safety: traffic, lighting, crossings and how a street feels to walk or cycle;
- opening hours, temporary closures, and whether a place serves you;
- transit delays, cancellations, detours and holiday timetables;
- step-free access and entrances.
The full list is in [Known limits](/docs/methodology/#known-limits).
## Errors the data can contain
- **A place that's missing, closed, in the wrong spot or of the wrong kind.** Places come from
OpenStreetMap and Overture Maps, with health care and schools checked against Statistics Canada's
databases. A place missing from both is missing here, and a closed one stays until a source drops it.
- **A street, path or timetable that's out of date.** A new path or a changed bus route reaches the map
only with a later data update.
- **A transit trip across a provincial or territorial boundary.** Walking and cycling cross these
boundaries. Transit crosses them only where a region's timetables serve both sides, as in Ottawa and
Gatineau ([Known limits](/docs/methodology/#known-limits)).
- **A block with no time.** Some blocks can't be connected to the street network, and transit times
exist only where an operator publishes a timetable we can use.
## The data and its dates
The current data was published October 21, 2026. We list each source's version and date in [Release
details](/docs/methodology/#release-details): the OpenStreetMap extract, the Overture data,
Statistics Canada's databases and the transit timetables. Each source's licence and the
credit it asks for are on [Sources and licences](/docs/data/sources/).
## Report an error
- **On the map,** click the place's dot, choose **Report an issue** and say what's wrong. The report includes the
map position, so we can find the spot.
- **Anywhere else,** use the [contact form](/contact?topic=problem) with "Something looks wrong"
chosen. Say where (an address or a link to the map), what looks wrong and what you expected.
Give your email address if you'd like a reply. If a place comes from OpenStreetMap, you can also
[fix it there](https://www.openstreetmap.org/fixthemap): the change reaches à portée with a later data
update and helps everyone who uses OpenStreetMap.
## Reports
1. We check the report against the sources and the map.
2. When the published data is wrong, we fix the cause in the next data update: a source, a
classification rule or the routing.
3. If you gave an email address, we tell you what we found.
## No warranty, and not advice
à portée is offered as is. We can't promise that the times, places or anything else on the site are
correct, complete or up to date, so before you rely on a time, check the trip yourself. The times are
not professional advice: if you're deciding about health, safety, housing or money, ask the people
responsible, such as the transit operator, the clinic or the city. The [Terms of use](/docs/terms/) apply to all use
of the site.
---
# Privacy
> What à portée collects when you use the site and an account, why, who receives it and how long it is kept.
Source: https://aportee.ca/docs/privacy
à portée is a product of Ammil Industries Ltd., a British Columbia company. We collect only what the
map, the API and an à portée account need, use it to run the service, and share
it only as described below.
The person responsible for privacy at à portée is Christian Miles. Questions, and requests to
see, correct or delete information about you, go to
[christian@aportee.ca](mailto:christian@aportee.ca).
## Summary
- You can use the map without an account. Signing in is free and asks only for an email address.
- The site sets cookies only when you sign in, to keep you signed in.
- Visits are counted with an analytics service that does not use cookies. It records the
pages you view and the part of the map you look at.
- Text typed into the search box is sent from your browser to a third-party geocoder (Stadia Maps) to find addresses, so that service sees your IP address.
- Feedback you send is stored together with the map position it was sent from.
- à portée emails you about the product only if you ask it to, and you can stop at any time.
- à portée does not sell personal information.
## Accounts
A free account gives you [plus](/#plans): more map views, more travel options and saved maps. To
create one, or to sign in, you give your email address and à portée emails you a sign-in link.
**What an account stores:** your email address, the organisation you name if you give one, the
language you signed up in, the page you signed up from, when the account was created and when
you last signed in, and whether you asked for product updates (with the date and the version of
the wording you agreed to).
**Saved views.** When you save a view of the map, your account keeps its link (the place and
zoom, the amenities and travel choices, the map style and, if one is placed, the pin and its
label), its name, the data release, a small picture of the map and when you saved, changed and
last opened it. If you share a view, anyone with its link can open that map, without the pin
unless you choose to include it, and without your email address or your other views; turning
sharing off stops the link working. Deleting a view, or your account, removes it.
**Shared map links.** When you copy a travel-time link while signed in, its code lets the
person who opens it see the same map for 90 days. The code holds only which map files it opens
and when it expires.
**API keys.** If you create an API key on your account page, à portée stores only a scrambled
form of it and its first few characters, so you can tell your keys apart. Revoking a key, or
deleting your account, removes it. When an agent asks for a key for you to approve, à portée
keeps a scrambled form of its code and of its IP address, the name it gave, its approximate
location (city, region and country) and your answer, until a day after the code expires.
**Sign-in links** are sent through Cloudflare's email service from `aportee.ca`. Each link
works once and expires after 15 minutes. à portée stores only a scrambled form of the link's
code, never the code itself.
**Cookies.** Signing in sets cookies that keep you signed in for up to 90 days and open the map
in its signed-in layout, and one that lasts two minutes so the sign-in can be counted in the visit
statistics. None of them identifies you to anyone else, and they are removed when you sign out or
delete your account.
**Stopping bots.** The sign-in form uses [Cloudflare Turnstile](https://www.cloudflare.com/products/turnstile/)
to prevent misuse, and the number of sign-in links requested is limited for a day.
**Product updates** are emailed only if you tick the box when you sign up or turn them on from
your account page. You can turn them off on your account page or with the link in any update.
Sign-in links are sent whether or not you ask for updates.
**Deleting your account.** Your account page has a "Delete my account" button. It removes your
account, your sessions and any sign-in links still outstanding, straight away.
Accounts and feedback are stored by Cloudflare in North America, and may be stored outside
Canada.
**Paying for à portée pro.** à portée pro is paid for through [Stripe](https://stripe.com), which Ammil Industries
Ltd. uses to take card payments. The card number goes to Stripe on Stripe's own checkout page and
never reaches à portée. Stripe keeps your name, email address, billing address and payment
history to bill you and to send receipts, under
[Stripe's privacy policy](https://stripe.com/privacy). à portée keeps only what it needs to know
whether you are on à portée pro: the Stripe customer and subscription numbers, the subscription's status
and when the paid month ends. Deleting your account cancels the subscription and removes these;
Stripe keeps its payment records as the law requires.
## Visits and map use
Page views and some actions on the map, such as choosing an amenity or sharing a
link, are counted with [Seline](https://seline.com), an analytics service that
does not use cookies. The counts include the page address, the position and zoom of the map,
and the amenities selected. They show which places and destinations people look at.
## Search
As you type in the search box, the text is matched against a list of Canadian cities and
towns built into the page. Once you have typed three or more characters, the text is also
sent from your browser to [Stadia Maps](https://stadiamaps.com), an address search
service. Stadia Maps receives the search text, the
map's centre point and your IP address, as any web service does. The same applies when you click
the map and à portée asks Stadia Maps for the address at that spot. à portée does not keep the
results of address searches or of these lookups.
## Your location
When you open the map without a place in the link, it asks à portée's server which
Canadian city to start on. The server reads the approximate location that Cloudflare
derives from your IP address for every request (country and a coarse latitude and
longitude), picks the nearest city from the map's built-in list, and answers with that
city only, or with nothing when your connection is from outside Canada. We keep your IP address
and the coordinates only in the short-lived request logs described under
[Service providers](#service-providers).
**Explore near me** asks your browser for your location and moves the map there. The location
stays in your browser; the new map position is then included in the visit counts described
above.
## Walking routes
Showing walking routes from a point sends the coordinates of that point to à portée's routing
service. It answers and keeps no
record of them beyond the short-lived request logs described under
[Service providers](#service-providers).
For signed-in members, Reach sends the places and times you choose to à portée's own routing
service, which also keeps no record of them beyond those logs.
## Feedback
When you send feedback, à portée stores:
- what you wrote, and your email address if you give one;
- the page address, the map position and zoom, and the selected amenities;
- the language and the data version;
- details of the place or block the feedback is about;
- the country your connection comes from, and your browser's user agent.
The team is notified so that someone can respond, and the feedback is kept so the team can act
on it and follow up. Email [christian@aportee.ca](mailto:christian@aportee.ca) to have it deleted.
## Notifications to the team
So that someone can respond, à portée posts a message to the team's private Slack workspace when:
- someone asks for a sign-in link for an address that has no account yet, or the link's email
fails: the email address, the page it was asked from, the language, how many links that address
asked for in the last 15 minutes, any email error, and the time;
- someone creates an account: their email address, the organisation if they give one, the page they
signed up from, the language and the time;
- someone subscribes to à portée pro: their email address, the language, the Stripe subscription
number and the start time;
- someone sends feedback or a message from the contact form: the message, the email address if they
give one, the place it's about (its name, kind and address) if any, the country the connection
comes from, the language, the data version, the page it was sent from with a link to that map
position, and the time.
When a member asks for the research API allowance, the message includes their email address, the
institution and the project they describe, and the time. The request is kept only in Slack.
Only the team sees these messages. Slack stores and processes them for us, as our service provider,
under [Slack's privacy policy](https://slack.com/trust/privacy/privacy-policy).
## The API
Requests to the [API](/dev/api/authentication/) are counted by IP address, or by API key when one
is used, to enforce daily limits. Each count is deleted a day after it starts.
## Service providers
à portée uses these services to run the site. Each receives only what it needs for its job,
including your IP address, as with any web request.
- [Cloudflare](https://www.cloudflare.com): hosting, accounts and feedback storage, sign-in
emails and Turnstile. Cloudflare handles every request, and à portée keeps short-lived request
logs to find and fix errors.
- [DigitalOcean](https://www.digitalocean.com): map images, the areas Reach draws
and walking routes.
- [Stadia Maps](https://stadiamaps.com): address search.
- [Seline](https://seline.com): visit counts.
- [Slack](https://slack.com): notifying the team of sign-in links for new addresses, new accounts,
à portée pro subscriptions,
feedback and research API requests ([Notifications to the
team](#notifications-to-the-team)).
Some map layers are loaded by your browser straight from their providers, which see the area of
the map requested: [OpenFreeMap](https://openfreemap.org) for the base map,
[Esri](https://www.esri.com) for satellite imagery and [Mapterhorn](https://mapterhorn.com) for 3D
terrain (each only when that layer is on), and [Google Fonts](https://fonts.google.com) for the
typefaces on the atlas pages.
## Stored in your browser
Besides the sign-in cookies above, the site stores a few settings in your browser's local
storage: whether you have closed the introduction, and the light or dark theme chosen in the
documentation or the signed-in map, and whether this browser has opened the signed-in map
before. None of them is sent anywhere. A shared map link's code is
kept in the tab's session storage, and is sent only with the map files it opens.
## Your rights
You can ask to see the personal information à portée holds about you, to correct it, or to
delete it, by writing to [christian@aportee.ca](mailto:christian@aportee.ca). If you are not
satisfied with the answer, you can complain to the
[Office of the Privacy Commissioner of Canada](https://www.priv.gc.ca) or, in Quebec, to the
[Commission d'accès à l'information](https://www.cai.gouv.qc.ca).
## Sharing
à portée does not sell or rent personal information. It may publish statistics about how the
map is used, such as how often each kind of destination is selected, in a form that does not
identify anyone. This page will be updated before any change to how information is collected
or shared takes effect.
_Last updated 26 October 2026._
---
# Terms of use
> Free for personal use, research and teaching, journalism and charities; commercial and public-sector use of the service needs an agreement.
Source: https://aportee.ca/docs/terms
à portée is a product of Ammil Industries Ltd., a British Columbia company.
## Free to use
The map, its embeds and saved views, and
the API are free for personal use, students, research and teaching, journalism, and
registered charities and community organisations, within the API's rate
limits. Credit the data as listed in [Sources and licences](/docs/data/sources/).
## Commercial and public-sector use needs an agreement
Using à portée in a product or service you sell, in paid work for clients (consulting reports,
real-estate listings, site selection, advertising), or in the work of a government, public
agency or health authority, or a consultant working for one, needs a conversation and a contract
first. Public bodies get a public-sector rate. That covers the map, its embeds and map
images, the API and MCP server, and
anything built from them. Write to [services@aportee.ca](mailto:services@aportee.ca): we offer commercial
licences, higher limits, bulk and historical data, and custom analysis.
## Open and closed data
à portée releases its dataset of everyday places, matched across OpenStreetMap, Overture and public
sources, as [open data](/docs/data/open-data/) under the Open Database License (ODbL). Its sources
are credited in [Sources and licences](/docs/data/sources/).
Everything built on top of it to provide the service is proprietary to Ammil Industries:
the walking, cycling and transit times, the maps, saved
views, the API and MCP server, and the software behind them. Where they show OpenStreetMap-derived results, they credit
OpenStreetMap contributors as the ODbL requires.
## The à portée pro subscription
à portée pro is sold by Ammil Industries Ltd. for CAD $20 a month, month to month, with no minimum
term.
- **Billing.** You pay by card through Stripe when you subscribe, and again on the same day each
month. Stripe emails a receipt in Ammil Industries Ltd.'s name for each payment.
- **Cancelling.** Cancel at any time from the [à portée pro page](/pro) ("Manage subscription"). à portée pro
stays on until the end of the month you have paid for, and you are not charged again.
- **Refunds.** A month already paid for is not refunded, in whole or in part, unless the law
requires it. If something went wrong with a charge, write to
[services@aportee.ca](mailto:services@aportee.ca).
- **Failed payments.** If a payment fails, Stripe tries the card again over the following days and
à portée pro stays on meanwhile. If the payment still cannot be collected, the subscription ends and so
does à portée pro.
- **Promotion codes.** A code can make some months free. While the total is zero no card is asked
for; when the free months end, the subscription renews at CAD $20 a month if a card is on file.
Without one, the renewal cannot be paid and à portée pro ends as for a failed payment.
- **Deleting your account** cancels the subscription straight away, without a refund for the rest
of the month.
à portée pro is for individuals who want to support the site. Organisations, paid or public-sector
work and larger use need a licence or agreement, as described above: write to [services@aportee.ca](mailto:services@aportee.ca).
## No warranty
Times are modelled from open data and can be wrong; see the
[methodology](/docs/methodology/). Do not rely on them where a mistake could cause harm.
---
# Developers
> Build à portée's maps and travel times into your own site, app, AI assistant or analysis.
Source: https://aportee.ca/dev
à portée gives walking, cycling and transit times from any point in Canada to 35
types of everyday places, such as groceries, pharmacies and schools. Put them in your page as a
map, call them over HTTP, hand them to an AI assistant, or query the datasets behind them. Calls
without a key get 100 requests a day; a free key raises that to 1,000.
Try it without a key:
```bash
curl -G https://aportee.ca/v1/access \
-d lat=43.65204 -d lon=-79.38410 -d types=grocery,pharmacy
```
Part of the response:
```json
{
"minutes": {
"grocery": { "value": 6, "reason": "ok" },
"pharmacy": { "value": 5, "reason": "ok" }
}
}
```
The map draws these minutes in colour. To learn how to read it, start with the [docs](/docs/).
## Start here
- [Embed a map](/dev/tools/embed/): Set up an interactive map and copy the iframe for your page, or link to the map at an address.
- [Call the REST API](/dev/api/quickstart/): Look up minutes for a point, then get a free key for batches, images and routes.
- [Connect an AI assistant](/dev/mcp/): Add the MCP server to Claude, VS Code or another client: travel times, nearby places and map views in the chat.
- [CLI and Python](/dev/tools/cli/): Single lookups, batches and GeoJSON from a terminal, or plain data and DataFrames in Python.
- [API reference](/dev/api/overview/): Every endpoint, its parameters and responses, the error codes and a console to try them.
- [Datasets](/dev/data/aportee/): à portée's walking times, Can-ALE and Statistics Canada's Spatial Access Measures, per census area.
- [Authentication and limits](/dev/api/authentication/): keys and daily limits.
- [Glossary](/dev/data/glossary/): the API's field names.
---
# Walking-access API quickstart
> Look up walking times for a point with the à portée API, then add a key for batch lookups.
Source: https://aportee.ca/dev/api/quickstart
Steps 1 to 4 need no account. Anonymous calls are limited to 100 requests a day per IP
address. The examples use `curl`; any HTTP client works.
## 1. Find the point
The API takes coordinates (WGS84 decimal degrees, `lat` and `lon`). For a street address, take
its coordinates from a source that lists each address as a point, such as a municipal address
dataset, or from a geocoder you are allowed to use. For a city or town, call `/v1/search` for its
centre point:
```bash
curl "https://aportee.ca/v1/search?name=Toronto"
```
```json
{
"places": [{ "name": "Toronto", "prov": "ON", "lat": 43.7141, "lon": -79.3911, "pop": 2794356 }]
}
```
For a home, use its own point. The steps below use one on Queen Street West in Toronto
(43.65204, −79.38410).
## 2. Read walking times
Pass the coordinates to `/v1/access`. `types` picks amenity types and `include` picks
the parts of the response.
```bash
curl "https://aportee.ca/v1/access?lat=43.65204&lon=-79.38410&types=grocery,pharmacy,library&include=minutes,place,narrative"
```
```json
{
"block_id": "35204616019",
"point": { "lat": 43.65204, "lon": -79.3841 },
"meta": {
"vintage": 2021,
"methodology": "R5 walk, Tobler slope-adjusted",
"attribution": "© OpenStreetMap contributors · Adapted from Statistics Canada · Overture Maps Foundation · ODbL (derived)",
"limit_minutes": 60,
"data_version": "20261021-r37"
},
"basis": { "kind": "hexagon", "block_id": "35204616019", "block_area_km2": 0.127 },
"minutes": {
"grocery": { "value": 6, "reason": "ok" },
"pharmacy": { "value": 5, "reason": "ok" },
"library": { "value": 3, "reason": "ok" }
},
"place": { "name": "Toronto", "prov": "ON", "lat": 43.7141, "lon": -79.3911, "pop": 2794356, "kind": "nearest" },
"narrative": "Groceries are about 6 minutes away; a pharmacy is about 5 minutes away; a library is a short walk."
}
```
Each time belongs to the census block that contains the point (`block_id`), or to the hexagon at
the point in a block over 0.1 km² (`basis`), so every building in it gets the same time. `reason`
is `ok` when a time was found. It is `no_access` when none was found, and `value` is then `null`:
```json
"minutes": { "hospital": { "value": null, "reason": "no_access" } }
```
Treat `null` as a missing time. `no_access` means the search found no place of the type within
60 minutes. A place can be there and still be missing from the data. Keep `meta.data_version`
and `meta.attribution` with any result you show or publish.
The same call gives cycling or transit times with `mode=bike` or `mode=transit`. Without a key,
transit is the weekday morning peak at the typical trip; a key adds other periods, the worst case
and bike + transit ([cycling and transit](/dev/api/access/#cycling-and-transit)):
```bash
curl "https://aportee.ca/v1/access?lat=43.65204&lon=-79.38410&types=grocery,pharmacy,library&mode=transit"
```
A transit time is the walking time where no transit reaches the point (`reason: "fell_back"`) or
where walking is quicker (`reason: "walk_faster"`).
## 3. List the amenity types
`/v1/amenities` lists every type with English and French labels. Use the `type` values
in the `types` parameter. For an unknown type, the API returns `400` with the list of valid ones.
```bash
curl "https://aportee.ca/v1/amenities"
```
```json
{ "amenities": [ { "type": "grocery", "label": { "en": "Grocery", "fr": "Épicerie" } }, "…" ] }
```
## 4. Check your limit
`/v1/me` returns your tier and how many requests are left today. It isn't counted.
```bash
curl "https://aportee.ca/v1/me"
```
```json
{
"tier": "anonymous",
"daily_limit": 100,
"remaining": 93,
"reset_at": "2026-10-14T00:00:00.000Z",
"features": { "batch": false, "named_pois": false, "images": false },
"tiers": { "anonymous": 100, "key": 1000, "research": 10000 },
"upgrade_url": "https://aportee.ca/signin?next=%2Faccount",
"commercial_contact": "services@aportee.ca"
}
```
## 5. Get a key
A free key raises your `daily_limit` from 100 to 1,000 requests a day, the `key` figure in
`tiers`. It also adds batch lookups (`POST /v1/access`), map images (`/v1/image`), walking routes
(`/v1/routes`), the search for named places near a point (`/v1/search` with `near`), and transit
beyond the weekday peak's typical trip.
[Sign in](/signin) with your email address, then choose **Create a key** on your account
page. The key starts with `ap_live_` and is shown once
([keys](/dev/api/authentication/#keys)).
A terminal or an agent can also ask for a key, which you approve in your browser:
- **CLI:** `aportee login` prints a link and a code and opens your browser. After you
approve, it prints `export APORTEE_API_KEY=…`.
- **MCP:** the agent calls `start_sign_in`, shows you the link, then collects the key with
`check_sign_in`.
- **HTTP:** `POST /v1/auth/device`, then poll `POST /v1/auth/device/token`. See
[agent sign-in](/dev/api/authentication/#agent-sign-in).
## 6. Use the key
Send the key in the `X-Api-Key` header. A batch takes up to 100 points, and each point
counts as one request.
```bash
curl -X POST "https://aportee.ca/v1/access" \
-H "X-Api-Key: $APORTEE_API_KEY" \
-H "content-type: application/json" \
-d '{"points":[{"lat":43.25085,"lon":-79.81809},{"lat":43.65204,"lon":-79.38410}],"types":["grocery","pharmacy"],"include":["minutes"]}'
```
`results` has one entry per point, in the same order. A point that fails gets an `error` object
in its slot, and the other points still get their results. Without a key, the API returns `401`:
```json
{
"code": "aportee.api.unauthorized",
"detail": "Batch lookup requires an API key. Sign in at upgrade_url for a free key (1,000 requests a day) and send it in the X-Api-Key header.",
"statusCode": 401,
"tier": "anonymous",
"upgrade_url": "https://aportee.ca/signin?next=%2Faccount"
}
```
Every error code is on [Errors](/dev/api/errors).
## Other ways to call the API
- **MCP:** add `https://aportee.ca/v1/mcp` to an MCP client as a remote (Streamable HTTP)
server. No key is needed to start. See [MCP server](/dev/mcp).
- **CLI:** `pipx install aportee`, then `aportee access 43.65204 -79.38410`, or run it once
with `uvx aportee access 43.65204 -79.38410`. Needs Python 3.11 or later. See
[CLI](/dev/tools/cli).
- **Python:** `pip install aportee`, then:
```python
from aportee import Client
client = Client() # reads APORTEE_API_KEY
snapshot = client.access((43.65204, -79.38410), types=["grocery", "pharmacy"])
print(snapshot["minutes"])
```
A list of points is sent as a batch, and `to_frame` turns results into a pandas
DataFrame.
## Next
- [`/v1/access`](/dev/api/access): every parameter and status code
- [Authentication and limits](/dev/api/authentication): keys, limits and caching
- [Overview](/dev/api/overview): endpoints, status and attribution
- [OpenAPI spec](https://aportee.ca/v1/openapi.yaml)
- [Methodology](/docs/methodology/): how the times are computed and where they fall short
- [`/llms.txt`](https://aportee.ca/llms.txt) and [`/llms-full.txt`](https://aportee.ca/llms-full.txt): these docs as plain text
---
# API authentication and limits
> API keys, which routes need one, daily limits per tier, Retry-After, and free revalidation with ETags.
Source: https://aportee.ca/dev/api/authentication
Most read endpoints work without a key. A key raises the daily limit and adds batch lookups
(`POST /v1/access`), map images (`GET /v1/image`), walking routes (`GET /v1/routes`), the search
for named places near a point (`/v1/search` with `near`), and transit beyond the weekday peak's typical
trip: other periods, the worst case (`p90`) and bike + transit (`combo`).
Up to three of the nearest named places of each type come without a key, in `/v1/access`
`walk_pois` and in `/v1/compass`.
## Keys
To get a key, [sign in](/signin) with your email address (it's free) and choose **Create a
key** on your account page. An agent or the [CLI](/dev/tools/cli) (`aportee login`, from
`pipx install aportee`) can also ask for one, which you approve in your browser
([agent sign-in](#agent-sign-in)).
- A key is `ap_live_` followed by 43 letters, digits, `-` and `_`. Keys created before
13 October 2026 start with `ap_` only, and are valid until you revoke them.
- When you create a key, the account page shows it once. To replace a lost key, revoke it and
create another.
- An account can have three keys at a time. **Revoke** on the account page deletes a key.
- The API treats a key it doesn't recognize (mistyped or revoked) as no key: the call gets
the anonymous limit and features, and a route that needs a key returns `401`.
Send the key in the `X-Api-Key` header, as in the example under
[Checking your tier](#checking-your-tier). The REST endpoints also accept it as a `key`
query parameter (`?key=ap_live_...`). The header keeps the key out of URLs, logs and browser
history, so use it where you can. The MCP server reads the header. When no header is sent, it
reads a tool call's `api_key` argument ([MCP server](/dev/mcp/#connect)).
For commercial or public-sector use, email [services@aportee.ca](mailto:services@aportee.ca).
### Agent sign-in
An agent or script can ask for a key for you, and you approve it in your browser, as when you
sign in to a TV app.
1. The agent calls `POST /v1/auth/device`, optionally with `{"name": "Claude Code on my laptop"}`.
It gets a `device_code` to keep, and a `user_code` and `verification_url_complete` to
show you.
```bash
curl -X POST "https://aportee.ca/v1/auth/device" -H "content-type: application/json" \
-d '{"name":"My script"}'
```
```json
{
"device_code": "…",
"user_code": "BCDF-GHJK",
"verification_url": "https://aportee.ca/device",
"verification_url_complete": "https://aportee.ca/device?code=BCDF-GHJK",
"expires_in": 600,
"interval": 5
}
```
2. You open the link, sign in with your email address if you aren't already, check that the
code and name match, and choose **Approve** or **Deny**.
3. The agent calls `POST /v1/auth/device/token` with `{"device_code": "…"}` every `interval`
seconds. `status` is `pending` until you decide, then `approved` with `api_key`, or
`denied`. After 10 minutes it is `expired`. Polling faster than `interval` returns
`slow_down` with a longer `interval` to use.
Send both requests with `Content-Type: application/json`, even when the body is just `{}`;
the API refuses a POST request without it with `403`.
The key belongs to your account like any other: it counts toward the three, and you can
revoke it on your account page. It is returned once; later polls return `already_issued`.
An IP address can have three codes waiting and ask for 20 a day.
The `aportee` package runs this flow for you: `aportee login` in a terminal, or
`Client().login()` in Python ([CLI and Python client](/dev/tools/cli)). Install the command with
`pipx install aportee`, or run it once with `uvx aportee login`; `pip install aportee` adds
the Python client.
### Routes that need a key
| Route | Key | Counted |
|-------|-----|---------|
| `GET /v1/access` | optional; needed for transit at other periods, `statistic=p90` and `mode=combo` | 1 request |
| `GET /v1/search` | optional; needed for named places with `near` | 1 request |
| `GET /v1/compass` | optional | 1 request |
| `GET /v1/reference/{dataset}` | optional | separate fair-use limit, see below |
| `GET /v1/reference`, `/v1/amenities`, `/v1/embed`, `/v1/openapi.yaml` | no | not counted |
| `GET /v1/health`, `/v1/last-updated` | no | not counted |
| `GET /v1/me` | optional | not counted |
| `POST /v1/auth/device`, `/v1/auth/device/token` | no | not counted; see [agent sign-in](#agent-sign-in) |
| `POST /v1/access` | required | 1 request per point |
| `GET /v1/image` | required | 10 requests per image |
| `GET /v1/routes` | required | 1 request per type routed |
A `304 Not Modified` reply is never counted ([conditional requests](#conditional-requests)).
## Rate limits
These limits may change, so have your client read them from `GET /v1/me`.
| Tier | Current limit | How |
|------|---------------|-----|
| Anonymous | 100 requests/day per IP | no key needed |
| Key | 1,000 requests/day | a free key in the `X-Api-Key` header |
| Research | 10,000 requests/day | an email address at a Canadian university or research hospital, or a pro-plan member |
Keys created with an email address at a Canadian university or research hospital get the
research limit automatically. Keys on the pro plan get it too, and a key follows its
account's plan as the plan starts or ends. Researchers without such an address can ask for
the research limit on their account page.
### Counted requests
- A batch (`POST /v1/access`) is counted per point, all in one step: a batch of 100 points
counts 100 requests, and if a batch doesn't fit in what is left, it is refused whole.
- A request refused with `429` is not counted.
- A `GET /v1/image` counts 10 requests once the image comes back. An image that fails (a `503`
while the service starts up) is not counted.
- A `GET /v1/routes` must fit in what is left for every type it names. It counts 1 request
per type routed. A type is not counted when it fails for the same reason as a type already
routed: the point is outside coverage, or routing stopped answering. A `GET /v1/routes` that
returns a `400`, `422` or `503` is not counted either.
- A `GET /v1/compass` counts 1 request, except a `400`, `422` or `503`, which is not counted.
- In the [MCP server](/dev/mcp/tools), `travel_times` counts 1 request per point, whatever the
modes, once it has answered; a refused call is not counted. With `points`, it answers as many
points as the day's allowance covers and sets `truncated`. `POST /v1/access` refuses a batch
that doesn't fit.
- Any other metered request counts, whatever its status. A `400`, `404` or `500` counts
1 request. So does a `walk_counts` that comes back `unavailable`.
The [reference datasets](/dev/data) (SAM and Can-ALE) are free for everyone, with their own
fair-use limit, currently 10,000 lookups a day.
Every counted response, and `/v1/me`, includes `X-RateLimit-Limit`,
`X-RateLimit-Remaining`, and `X-RateLimit-Reset` (Unix timestamp of the next UTC-day
reset). Requests sent at the same moment can be miscounted, so treat the limits as
approximate.
### Limit reached
Past the limit, the API returns `429` with code
[`aportee.api.rate_limited`](/dev/api/errors/#rate-limited). The response has a
`Retry-After` header with the number of seconds until the limit resets at 00:00 UTC. Its
body also has your `tier` and an `upgrade_url`, and its `detail` says what to do next.
A retry before the reset gets `429` again.
```http
HTTP/1.1 429 Too Many Requests
Retry-After: 3600
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 0
X-RateLimit-Reset: 1791936000
```
For a feature that needs a key, a call without one gets `401` with the same `tier` and
`upgrade_url` fields.
### Checking your tier
`GET /v1/me` returns your tier, today's limit and what's left, which features your key
adds, and the `upgrade_url`. It isn't counted.
```bash
curl -H "X-Api-Key: $APORTEE_API_KEY" "https://aportee.ca/v1/me"
```
## Conditional requests
`GET /v1/access`, `GET /v1/compass`, `GET /v1/reference/{dataset}`, `GET /v1/reference` and
`GET /v1/amenities` send an `ETag` header with each `200` response. Keep it with the result, and send it back in
`If-None-Match` when you ask again. If the result is unchanged, the reply is
`304 Not Modified` with no body, and it does not count against your daily limit, even when
the limit is used up.
```bash
curl -i -H 'If-None-Match: W/"20261008-unified-r34-5f0c3a1e9b2d4c77"' \
"https://aportee.ca/v1/access?lat=43.25085&lon=-79.81809&types=grocery"
```
The ETag of an access or reference result changes when the data version changes (see
[`/v1/last-updated`](/dev/api/overview/#status-and-data-version)) or when the query
changes. Parameters are compared after normalising, so `types=pharmacy,grocery` and
`types=grocery,pharmacy` share an ETag. Results with and without a key have different
ETags.
---
# Glossary
> The terms used in à portée's map, reports, API and data.
Source: https://aportee.ca/dev/data/glossary
## Block
Short for dissemination block. In the API, `block_id` is the 11-digit Statistics Canada
identifier (DBUID) of the block that contains the point you asked about.
## Dissemination block
Statistics Canada's smallest standard census area. In a city a block is usually one street
block; in rural areas it can cover several square kilometres. à portée uses the 2021 census
blocks and their population, and routes each block from one representative point.
See the [methodology](/docs/methodology/#calculating-travel-times).
## Hex, H3
A cell of [H3](https://h3geo.org), a global grid of hexagons. à portée uses resolution 10,
where a cell is about 130 m across, and routes each cell from its centre. The map shows
hexagons where census blocks are large. The API does the same: for a point in a block larger than
0.1 km², it returns the hexagon's times, and `basis` says so
([time sources](/dev/api/access/#time-sources)).
## Travel time
The modelled time from a starting point (a block or a hexagon) to the nearest destination of
a type: on foot along the pedestrian network, by bicycle, or by public transit. Walking times
account for slope. The search stops at 60 minutes. In the API, travel times are the minutes in
`minutes`, by the mode asked (`walk` by default).
## Reached
A block or hexagon reaches a type when the routing finds a trip from it to a place of that type
within the 60-minute search. One that reaches no place of the type is uncoloured on the map, and
the API marks its time `no_access`. One without a computed time is uncoloured too, and the API
marks it `not_computed`.
## `no_access`
A `minutes` entry's `reason` is `no_access` when the routing found no trip within 60 minutes,
and its `value` is then `null`. The nearest place of the type may be more than 60 minutes away, or
missing from the data. When `reason` is `ok`, the time is in `value`. The other reasons are
`not_computed` and, for cycling and transit, `fell_back`, `walk_faster` and `no_data`
([reason-coded minutes](/dev/api/access/#reason-coded-minutes)).
## `not_computed`
A `minutes` entry's `reason` is `not_computed` when no time was computed for the block: its
point could not be connected to the street network, or no network could be built for its area.
Its `value` is then `null`; treat it as unknown.
## `data_version`
The date the travel times in a result were built, followed by a build name: `20261008-unified-r34`
is the build of 8 October 2026. Access results include it as `meta.data_version`, and
[`/v1/last-updated`](/dev/api/overview/#status-and-data-version) returns the current version.
## Tier
What an API caller is allowed: `anonymous` (no key), `key` (a free key) or `research` (a key
with the research allowance). Each tier has its own daily limit; `GET /v1/me` returns yours.
See [authentication and limits](/dev/api/authentication/#rate-limits).
---
# Interactive map embed generator
> Configure and copy an interactive à portée map for your site.
Source: https://aportee.ca/dev/tools/embed
Put a live à portée map on your website or blog. Embeds are free for non-commercial use: personal
sites, students, research and teaching, journalism, and charities and community organisations.
Commercial sites, paid client work and government or public-agency sites need a licence
([terms](/docs/terms/)); [get in
touch](mailto:services@aportee.ca?subject=à%20portée%20—%20embed%20licence) to set one up.
Choose a location, size and amenities below, then copy the code into your page. To pick a different
location, pan or zoom the preview.
---
# Link to the map at an address
> Open the à portée map on an address with a link, no API call needed.
Source: https://aportee.ca/dev/tools/map-links
To open the map on an address, link to `https://aportee.ca/map?q=` followed by the address,
URL-encoded. `/fr/map?q=` opens the French map, and a city page such as `/toronto/?q=` takes `q`
too. The map looks the address up as its search box would:
```text
https://aportee.ca/map?q=100%20King%20St%20W%2C%20Toronto%2C%20ON
```
- The map pins the address and flies there when one result has every word of it and no result
elsewhere matches as well. A short form counts for the word (St for Street, E for East). The map
ignores a postal code.
- When results in several places match as well, or none has every word, the search box opens with
the address and lists the results to choose from. With no results, it says so.
Give the street number, street, city and province: `100 King St W` alone matches in several towns.
Once the search has answered, the map takes `q` out of its URL. The map's link then gives a
pinned address or town as `point=,`, with its name in `label`. Add `ll=,,`
to keep your own view: the map pins the place and stays where `ll` puts it. The map ignores `q` in
a link with `point`. An embed (`embed=1`) ignores `q` too.
---
# MCP server
> Connect an MCP client to à portée's travel-time, place-search and amenity tools.
Source: https://aportee.ca/dev/mcp
The MCP server gives an AI assistant the same walking, cycling and transit times as the REST API
and the `aportee` CLI. It supports the 2026-07-28 protocol and the older 2025 initialization
handshake through the
[official TypeScript SDK](https://github.com/modelcontextprotocol/typescript-sdk).
## Connect
Add `https://aportee.ca/v1/mcp` to your MCP client as a remote (Streamable HTTP)
server. You can start without a key. In Claude Code:
```bash
claude mcp add --transport http aportee https://aportee.ca/v1/mcp
```
To use a key, add it as the `X-Api-Key` HTTP header in the client's server configuration (in Claude
Code, `--header "X-Api-Key: $APORTEE_API_KEY"`). Keep it out of chat text and URLs.
To get a key from the chat, the agent calls `start_sign_in` and shows you a link and code ([agent
sign-in](/dev/api/authentication/#agent-sign-in)). You sign in and approve in your browser, and
`check_sign_in` returns the key once. For the rest of that conversation, the agent passes the key
as the `api_key` argument, which every tool but `get_catalog` and the sign-in tools takes. The
server reads that argument only when the client sends no header, and never stores or logs it. For
later conversations, add the key to the client's settings. Anyone who can read the conversation
can read the key: if you share the transcript, revoke the key on your account page.
You can also run `aportee login` in a terminal (`pipx install aportee`, or `uvx aportee login`;
see [CLI](/dev/tools/cli)), or create a key on your account page
([quickstart](/dev/api/quickstart/#5-get-a-key)).
## Tools take coordinates
The tools take coordinates (`lat` and `lon`, decimal degrees) in Canada (latitude 41.6 to 83.2,
longitude −141.1 to −52.6), or a town found with `find_place`. To start from a street address, an
agent uses a geocoder of its own if it has one. With only an address, it gives the person
`https://aportee.ca/map?q=` with its street number, street, city and
province. The map opens on the address, or lists the matches to choose from. The map's link then
gives the coordinates as `point=,` to copy back.
Each point's answer is for the census block that contains it or, in a block over 0.1 km², the H3
hexagon (about 130 m across); `basis` says which. A point one street off can change the answer.
The server refuses a point outside Canada with `aportee.api.outside_coverage`. Its `hint` gives the
pair to try when `lat` and `lon` look swapped or the longitude lost its minus sign. A point inside
Canada with no answer gets `aportee.api.outside_coverage` or `aportee.api.no_street_nearby`, also
with a `hint`.
The tools take arguments as models often send them: numbers and comma-separated lists as text,
`latitude`, `longitude` or `lng` for `lat` and `lon`, `mode` for `modes`. The server refuses an
unknown amenity type with the type it likely means (`groceries`: did you mean `grocery`?), and an
unknown argument with the arguments the tool takes.
Browser-based clients must run on aportee.ca or on an origin we've agreed with you.
## Map and compass views
MCP Apps is the `io.modelcontextprotocol/ui` extension. Clients that support it show the answers
of three tools as views in the conversation. These clients include Claude on the web and desktop,
VS Code with GitHub Copilot, Microsoft 365 Copilot and Goose.
- `travel_times` and `find_place` show the à portée map: the site's embed at the point, at each
point of a batch (up to 20), at each town found, or at each named place found near a point. When
the answer has several places, the view has a button for each place. The map draws the types
asked for, by the first mode asked that an embed can draw (walking, cycling, or transit at the
weekday morning peak), or else by walking. It uses the call's `lang`, or else the client's language, and
the client's light or dark theme. A link opens the full map there.
- `nearby_places` shows the compass: the dial beside the list of trips, as on the map. Pointing at
a trip, or focusing its row (Tab, then the arrow keys), lights it up on the dial and in the list.
The place, its walking minutes and its direction then show under the dial. A link opens the map's
compass at the point.
Other clients ignore each tool's `_meta.ui` and show the same text and structured results. The
views are two self-contained HTML pages, the resources `ui://aportee/map.html` and
`ui://aportee/compass.html` (`text/html;profile=mcp-app`). The map view frames the site's own
embed, so its resource names the site's origin in `_meta.ui.csp.frameDomains`. Where a client
refuses that frame, the view shows the link alone.
## Tools
Every tool, its arguments and its results are in [MCP tools](/dev/mcp/tools).
---
# MCP tools
> The à portée MCP server's tools, their arguments, results, resources and limits.
Source: https://aportee.ca/dev/mcp/tools
The tools are listed in the order `tools/list` gives them. Each tool's description starts with
what a call costs and ends with the tool to call next. Every argument has a description, and every
tool has an output schema. The server's instructions and `get_catalog` set out the rules all the
tools share: coordinates, keys, reason codes and what to quote. `travel_times` lists every
amenity type in its description, and the other tools take the same names.
| Tool | Arguments | Result |
|---|---|---|
| `travel_times` | `lat` and `lon`, or `points` (1–100, each with an optional `label`); optional `modes`, `period`, `statistic`, `types`, `include`, `walk_budget`, `lang` | Minutes per type and mode, `{type: {mode: {minutes, reason}}}`, with `basis`, `links.map` and `meta`. `modes` takes `walk` (default), `bike`, `transit` and `bike_transit`; to see every option without a car, ask for `walk`, `bike` and `transit` in one call. A point counts as one request, whatever the modes. `period` and `statistic` are for the transit modes, as in [cycling and transit](/dev/api/access/#cycling-and-transit). A transit entry can be `fell_back` (no transit reaches the point: the walk or ride, with `fell_back_to` and a `note`) or `walk_faster` (no transit trip beats walking: the walking time). The answer gives the modes it can, and lists the others, such as `bike_transit` without a key, in `unavailable_modes`; the call fails only when it can answer no mode. `include` (one point only) adds `place` and `population`, and where the routing service is on, `walk_counts`: places reached on foot within `walk_budget`, routed from the point, with `walk_pois`. `points` needs a key. Its answer has compact `rows` (a number when the time is `ok`), one `links.map_template` with `{lat}` and `{lon}`, and `meta` once. Failed points, and points outside Canada, are in `errors`. When the day's allowance covers only some points, the answer has `truncated` and `truncated_reason`. |
| `nearby_places` | `lat`, `lon`, optional `types`, `lang`, `picture` | As with [`/v1/compass`](/dev/api/compass), the answer gives, by default for each of the eight everyday trips, its `label`, the nearest place with its walking minutes and direction, then the next places within 30 minutes. `types` may also ask for `school`, `elementary_school`, `secondary_school`, `childcare`, `playground` or `hospital` where the data has them; elsewhere the server refuses the call and lists the types it has. An unnamed place has `name: null`. `basis` says the minutes are from the H3 cell the point stands in. `links.map` opens the map at the point with its compass. With `picture: true` the answer includes the compass as an image (PNG) and a link to [`/v1/compass.png`](/dev/api/compass/#the-compass-as-a-picture), for one request more. When the server can't draw the picture, a line of text says why. |
| `walking_routes` | `lat`, `lon`, `types` (one to five) | As [`/v1/routes`](/dev/api/routes): the walked path to the nearest place of each type, with the seconds at each vertex. Needs a key. Each type routed counts as one request. Listed only where the routing service is on. |
| `find_place` | `name`, optional `province`; where the routing service is on, optional `lat` and `lon` (together) and `walk_budget` | Up to five Canadian towns with their centre, `prov` and population. `name` can be written as people write it ("Toronto, ON", "Quebec City", "St-Jérôme"); when no town matches, `detail` says what to give. With a key and a point, the answer also has named places reached on foot within `walk_budget` minutes (default 15) of the point. |
| `get_catalog` | `{}` | The amenity types with English and French labels, the everyday trips, the modes and where each works, the periods in words, the statistics, the reason codes, what needs a key and what is free, the rule for named places, coverage (with the types `nearby_places` answers here), the method and how to cite it. |
| `account_status` | `{}` | The connection's tier, daily limit and remaining requests, `key_unlocks`, `free_without_key`, and, where the Reach tools are listed, `reach`: whether this connection may ask Reach, the answers left today, or why not (`anonymous`, `no_account`, `not_member`, `daily_limit`, `unavailable`). |
| `start_sign_in` | optional `name` (shown on the approval page) | A link and code for the person to approve, and a `device_code` for `check_sign_in`. |
| `check_sign_in` | `device_code` | `status`: `pending`, `slow_down`, `denied`, `expired`, or `approved` with `api_key` (once; later calls get `already_issued`). |
Where the routing service is on, the server offers `walking_routes`, `walk_counts`, `walk_pois` and
the name search near a point; `aportee://coverage` says where it is on. The nearest one to three
named places of each everyday trip are free in `nearby_places`, and, where routing is on, in
`travel_times` with `walk_counts`. Searching places by name near a point and walking routes need a
key.
## Results
Tool results include `structuredContent` and the same JSON as a text block. Every answer about
places has the same `meta`: `data_version` and `data_date`, `attribution` (with transit it credits
the operators and links their notices) and `method_url`. `travel_times` adds `limit_minutes` (60:
a type not reached within it is `no_access`), `timetables` with transit, and `reasons`, what each
reason code in the answer means. The method, the census year and the citation are in `get_catalog`
and `aportee://method`. When under a tenth of the day's requests remain, an answer adds `quota`.
A refused call sets `isError: true` and includes the API's [error body](/dev/api/errors), worded
with tool and argument names, and with `next` on a refusal that needs a key. The server refuses an
argument of the wrong type in plain text, before the tool runs.
Tools count against the same daily limits as their REST equivalents
([rate limits](/dev/api/authentication/#rate-limits)), except that `travel_times` counts one request
per point whatever the modes; `get_catalog`, `account_status`, `start_sign_in`, `check_sign_in` and
protocol initialization are not counted. Counted tools return the remaining quota and reset time
in `_meta["ca.aportee/rate-limit"]`. The server treats an unrecognized key as no key.
## Resources
The server offers three resources, as JSON:
- `aportee://catalog`: the same as `get_catalog`.
- `aportee://coverage`: where points, routed walk counts and transit times exist, and the types
`nearby_places` answers.
- `aportee://method`: how the times are found, their limits and how to cite them.
## Reach
Three tools answer Reach's questions for members: whether a trip fits its time, the area within
reach of a place, and where two to four people could meet. They need a member's own key, from a
free account that `start_sign_in` sets up from the chat. A key issued without an account doesn't
open them.
Each call counts as one Reach answer, 50 a day per account, apart from the API's daily requests.
Refusals are not counted, and each answer gives the answers left today in `allowance`. The three
tools read one day's timetables at the times given: they take a `day`, and the modes `transit`,
`bike` and `walk`. `period`, `statistic` and `bike_transit` belong to the other tools.
Answers are a few kilobytes, with no geometry: numbers, a `summary` in English or French in the
map's own words, a map link that opens the same trip, area or meeting, and `meta` with the
timetables' day. `get_catalog` names the transit regions the tools cover.
| Tool | Arguments | Result |
|---|---|---|
| `check_trip` | `from`, `to` (left out for a round trip), `depart`, `arrive` (HH:MM, at most 300 minutes apart), optional `day`, `mode`, `max_transfers`, `stop` (a point with its `stay_minutes`) or `stop_types` with `stay_minutes`, `lang` | `fits`, with `spare_minutes`, or `short_minutes` and `fastest_minutes`. By transit, on how many of seven departures (every 3 minutes, from 9 minutes before to 9 after) the trip fits, and the worst of them. Between two regions joined by a ferry or train, it checks the given departure only. With `stop`, when to be there and each leg's fastest minutes; with `stop_types`, the places of each type with the most time to stop. |
| `reach_area` | `lat`, `lon`, optional `modes`, `minutes` (5 to 120), `time`, `types`, `lang` | For each mode, the area in km², how many places of each type are within it and the nearest few. By transit, the typical area over seven departures and the worst case. The answer lists in `unavailable_modes` any mode refused while others answered. |
| `find_meeting_area` | `people` (two to four, each with `lat`, `lon`, and an optional `mode` and `label`), `depart`, `arrive`, optional `day`, `together_minutes` (5, 15 or 30), `types`, `lang` | Whether they can meet, the longest time together, the area in km², and the places of each type with the time they could share there. |
A refusal says what to do next:
- `aportee.api.unauthorized`: call `start_sign_in`.
- `aportee.api.rate_limited`: the day's answers or this minute's requests are used up; wait
`retry_after_seconds`.
- `aportee.reach.warming`: the routing service is loading the region; ask again after
`retry_after_seconds`.
- `aportee.reach.unavailable`: the routing service did not answer; retry after `retry_after_seconds`.
- `aportee.reach.no_transit`: ask again by `walk` or `bike`.
- `aportee.reach.different_regions`: `find_meeting_area` needs everyone in one routing region.
- `aportee.api.outside_coverage` and `aportee.api.no_street_nearby`: `hint` says what to try, such
as swapping `lat` and `lon`.
---
# Walking-access API CLI and Python client
> aportee – a command-line tool and Python client for the /v1 API.
Source: https://aportee.ca/dev/tools/cli
`aportee` is a command-line tool and Python client for the à portée `/v1` API: every command
calls the API over HTTP. Each command has a `--json` mode that prints the raw payload, and an exit
code that maps to the HTTP status, so a script or coding agent can branch on the result.
## Install
Needs Python 3.11 or later; it has no other dependencies.
```bash
pipx install aportee # the aportee command
uvx aportee access 43.25085 -79.81809 # run it without installing
pip install aportee # the Python client, in a project
```
## Auth
Most read endpoints answer without a key, 100 requests a day per IP. A free key unlocks batch
lookups, map images, walking routes, the name search near a point, and transit at other periods,
at `p90` (the worst case) or by bike + transit. A key gets 1,000 requests a day, or 10,000 for
researchers and pro members ([rate limits](/dev/api/authentication/#rate-limits)).
`aportee login` gets a key: it prints a link and a code and opens your browser, where you
sign in and approve. It then prints `export APORTEE_API_KEY=…` for you to run or add to
your shell profile. `--name` sets the name shown on the approval page.
```bash
eval "$(aportee login)" # or copy the export line it prints
export APORTEE_API_KEY=your-key # or pass --key
export APORTEE_BASE=https://aportee.ca # override for a preview deploy (or --base)
```
## Commands
| Command | What it does |
|---------|--------------|
| `aportee access ` | Minutes to each amenity type from a point. `--mode walk\|bike\|transit\|combo` (default `walk`; `combo` is bike + transit), `--period` and `--statistic` for transit, `--include`, `--types`, `--lang`, and `--walk-minutes` for `walk_counts`. |
| `aportee describe ` | The walkability narrative alone. |
| `aportee where ` | Nearest populated place. |
| `aportee find ` | Place search. Add `--near ` (keyed) to also search places reached on foot from there, and `--walk-minutes` (5–55, default 15) for how far. |
| `aportee compare ` | The difference in minutes for each type between two points, by any `--mode`. |
| `aportee routes --types grocery,school` | The walked path to the nearest place of each of 1–5 types. Needs an API key; each type counts as one request. |
| `aportee compass ` | Each everyday trip's nearest place, its minutes, its direction and the next places. `--types` picks some trips only. |
| `aportee batch ` | Batch lookups from `lat,lon` CSV rows (keyed). `--format json\|geojson`, `--mode`, `--period`, `--statistic`. |
| `aportee image ` | Branded map PNG (keyed). `--out FILE`; `--markers-file FILE` draws up to 500 of your own points from a CSV of `lat,lon[,label]` or a GeoJSON FeatureCollection. |
| `aportee embed ` | iframe snippet. `--markers-file FILE` draws up to 20 points, without labels. |
| `aportee amenities` | Every amenity type with en/fr labels. |
| `aportee me` | The key's tier, today's limit and what is left. Not counted against the limit. |
| `aportee login` | Get a free API key by approving it in your browser. `--name`. |
| `aportee reference` | The reference datasets, Can-ALE and Spatial Access Measures, and their fields. |
| `aportee reference canale --id 10010165` | Can-ALE record by 2021 DAUID. Also accepts a point or `--place`. |
| `aportee reference sam 43.25 -79.82 --mode walking` | SAM record by point; `--id` accepts an 11-digit DBUID. |
`access`, `describe`, `where`, `routes`, `compass`, `image`, `embed` and `reference` also accept
`--place ""`, which takes the centre of the first town matching that name; a street address
doesn't match. Options and coordinates can come in any order. Global flags: `--json`,
`--key `, `--base `, `--help`.
```bash
aportee access 43.25085 -79.81809 --include all
aportee access 45.5017 -73.5673 --mode transit --types grocery,pharmacy
aportee access 45.5017 -73.5673 --mode transit --period weekday_night --statistic p90 --key $APORTEE_API_KEY
aportee find "Fickle Fig" --near 48.43,-123.37 --key $APORTEE_API_KEY
aportee compare 43.25,-79.82 43.65,-79.38 --types grocery,pharmacy
aportee routes 43.25085 -79.81809 --types grocery,school --key $APORTEE_API_KEY
aportee compass 43.25085 -79.81809
aportee image --place Hamilton --out hamilton.png --key $APORTEE_API_KEY
```
Without a key, `--mode transit` gives what the free map shows: the weekday morning peak at
`p50`, the typical trip. Other periods, `--statistic p90` (the worst case) and `--mode combo` need
a key; without one they exit `1` with the API's `401`. Where no transit reaches the point, the
transit time is the walk (the ride for `combo`), shown as `12 (walk, no transit here)`. The
response fields are described under [cycling and transit](/dev/api/access/#cycling-and-transit).
## Exit codes
Each exit code stands for an HTTP status or a kind of failure:
| Code | Meaning |
|------|---------|
| `0` | success |
| `2` | bad input (400 / 422, or bad arguments) |
| `3` | no data (204) |
| `4` | outside coverage (404) |
| `5` | rate limited (429) |
| `1` | anything else: no key (401), network, 5xx |
## Recipes
**Grid check** – run a CSV of points through batch and keep the GeoJSON:
```bash
aportee batch points.csv --include minutes,population --format geojson \
--key $APORTEE_API_KEY > grid.geojson
```
**"Is X in the data, and as what type?"**
```bash
aportee find "Save-On-Foods" --near 48.43,-123.37 --key $APORTEE_API_KEY
```
**Generate a shareable PNG of an area:**
```bash
aportee image --place "Kitchener" --types grocery,pharmacy,school \
--out kitchener.png --key $APORTEE_API_KEY
```
**Put your own sites on the map** (a CSV of `lat,lon` with an optional `label` column):
```bash
aportee image 53.5465 -113.555 --zoom 15 --markers-file permits.csv \
--out permits.png --key $APORTEE_API_KEY
```
## Python
The same package is a Python client. Results are plain dicts and lists, and a failed call
raises `aportee.ApiError` with `status`, `code` and `detail`.
```python
from aportee import Client, to_frame
client = Client() # reads APORTEE_API_KEY and APORTEE_BASE; or Client(key=..., base=...)
# One (lat, lon) needs no key and returns a dict.
snapshot = client.access((43.25085, -79.81809), types=["grocery", "pharmacy"])
snapshot["minutes"]["grocery"] # {'value': 6, 'reason': 'ok'}
# By transit at a period and statistic; any but weekday_peak p50 needs a key.
client.access((45.5017, -73.5673), mode="transit", period="weekday_night", statistic="p90")
# A list of points is sent 100 at a time (keyed) and comes back in the same order.
results = client.access([(43.25, -79.82), (43.65, -79.38)], include="minutes")
client.amenities()
client.search("Hamilton")
client.reference("sam", point=(43.25, -79.82), mode="walking")
client.routes((43.25085, -79.81809), ["grocery", "school"]) # GeoJSON lines, keyed
client.compass((43.25085, -79.81809)) # each everyday trip's nearest places
client.me()
# A map image with up to 500 of your own points (keyed): (lat, lon) or (lat, lon, label)
# tuples, or a GeoJSON FeatureCollection.
png = client.image(53.5465, -113.555, zoom=15, markers=[(53.5465, -113.555, "Permit 1")])
frame = to_frame(results) # a pandas DataFrame, if pandas is installed
```
`client.login()` runs the same browser sign-in as `aportee login` and keeps the new key on
the client.
## Contributing
The package lives in `cli/` of the à portée repository, as its own uv project. The repository's
root venv has a different `aportee` command, which runs the data pipeline. Run this client with
`uv run --project cli aportee`, and its tests with `uv run --project cli pytest cli`.
---
# Walking-access API overview
> Walking, cycling and transit times to everyday amenities for any point in Canada – endpoints, status, attribution and limitations.
Source: https://aportee.ca/dev/api/overview
The API gives walking, cycling and transit times from any point in Canada to everyday amenities:
grocery, pharmacy, school, hospital and others, 35 types in all. The times are
computed at 2021 census block resolution with a slope-aware routing engine; transit times follow
the operators' published timetables.
The [reference dataset endpoints](/dev/data) also serve Can-ALE 2.0
and Statistics Canada Spatial Access Measures by point or census ID, with their
own source years, units, and attribution.
For a first lookup, follow the [quickstart](/dev/api/quickstart). To choose between the REST
API, the CLI and the MCP server, see [Developers](/dev).
The base URL is `https://aportee.ca/v1`. Every endpoint answers in JSON except `/v1/image` and
`/v1/compass.png` (PNG), `/v1/compass.svg` (SVG) and `/v1/openapi.yaml` (YAML).
Endpoints take points as WGS84 coordinates (`lat`, `lon`). For a street address, take its
coordinates from a source you are allowed to use
([find the point](/dev/api/quickstart/#1-find-the-point)).
## Endpoints
| Endpoint | Returns |
|----------|---------|
| [`GET /v1/access`](/dev/api/access) | Minutes on foot, by bike or by transit for the census block at a point |
| [`POST /v1/access`](/dev/api/access/#post-v1access--batch) | The same for up to 100 points (key required) |
| [`GET /v1/search`](/dev/api/search) | Cities and towns by name, and named places near a point (key required) |
| [`GET /v1/compass`](/dev/api/compass) | From a point, the nearest places for each everyday trip, with minutes and directions |
| [`GET /v1/routes`](/dev/api/routes) | The walked path to the nearest place of each type, with the seconds along it (key required) |
| [`GET /v1/image`](/dev/api/images) | A map image as PNG (key required) |
| [`POST /v1/image`](/dev/api/images/#your-own-markers) | A map image as PNG with up to 500 of your own markers (key required) |
| [`GET /v1/embed`](/dev/api/embeds) | An iframe snippet for an interactive map |
| [`GET /v1/amenities`](/dev/api/amenities) | The amenity types with English and French labels |
| [`GET /v1/reference`](/dev/data) | The reference datasets, and lookups in them by point or census ID |
| `GET /v1/me` | Your tier and how much of today's limit is left |
| [`GET /v1/health`](#status-and-data-version) | Whether the API is up |
| [`GET /v1/last-updated`](#status-and-data-version) | The data version the API serves |
| [`/v1/mcp`](/dev/mcp) | The same times, places and Reach answers as tools for AI assistants |
| [`GET /v1/openapi.yaml`](#machine-readable-spec) | The OpenAPI description |
## Keys
A key is optional for most read endpoints. It is required for batch lookups, map images, transit
beyond the weekday peak's typical trip (other periods, the worst case and bike + transit), walking
routes and the search for named places near a point. Up to three of the nearest named places of
each type come without one. To create a key and send it, follow [Authentication and
limits](/dev/api/authentication/#keys).
### Agent sign-in
An agent, a script or the [CLI](/dev/tools/cli) (`aportee login`) can ask for a key that you approve in
your browser. The flow uses `POST /v1/auth/device` ([agent
sign-in](/dev/api/authentication/#agent-sign-in)).
## Rate limits
Calls without a key are limited to 100 requests a day per IP address, and calls with a key to 1,000
a day (10,000 for pro members and researchers). The tiers, the rate-limit headers and the `429` body are under
[rate limits](/dev/api/authentication/#rate-limits).
## Status and data version
`GET /v1/health` and `GET /v1/last-updated` need no key and aren't counted.
`/v1/health` reads no stored data, so a monitor can call it often. It returns `ok`, the
data version the API serves, and the server's time:
```bash
curl "https://aportee.ca/v1/health"
```
```json
{ "ok": true, "data_version": "20261021-r37", "time": "2026-11-22T14:02:11.513Z" }
```
`/v1/last-updated` gives the data version the API serves. `data_version` matches the
`meta.data_version` of every access result; when it differs from the one stored with a
result you hold, the result may have changed. `released_at` is the build date in the data
version, and `timing_release` names the data version of the map's cycling and transit times
(`null` when the API can't read it).
```bash
curl "https://aportee.ca/v1/last-updated"
```
```json
{ "data_version": "20261021-r37", "released_at": "2026-10-21", "timing_release": "canada-transit-r37" }
```
## Error body
Errors return a JSON body with a stable `code` you can branch on:
```json
{ "code": "aportee.api.bad_request", "detail": "...", "statusCode": 400 }
```
Every code, with its status and what to do, is on [Errors](/dev/api/errors).
## Attribution
Output such as API results and map images is a Produced Work made from the destination database and
derived from ODbL sources (OpenStreetMap road network and amenities, StatCan census blocks and
population) and from Overture Maps Foundation Places, licensed by contributor (CDLA-Permissive 2.0,
Apache 2.0 for Foursquare's places, or CC0 1.0). If you display or redistribute results, credit
**OpenStreetMap contributors**, **Overture Maps Foundation** and **StatCan**, and note the data is
available under the Open Database License. A transit result's `meta.attribution` also credits the
transit operators whose timetables it uses, with a link to their source notices
([cycling and transit](/dev/api/access/#cycling-and-transit)).
For every source and its licence, see [Sources and licences](/docs/data/sources/). For a
citation to use in reports and papers, see [Citing à portée](/docs/data/citing/).
## Commercial use
The API and MCP server are free for personal use, research and teaching, journalism and
charities. Using them in a product you sell, in paid client work, or in public-sector work
needs an agreement: see the
[terms of use](/docs/terms/) and contact [services@aportee.ca](mailto:services@aportee.ca).
## Limitations
- **The nearest place of each type.** Each amenity type gives the time to the one nearest place.
- **2021 census vintage.** Population and block geometry are from the 2021 census.
- **Block resolution.** Results are per dissemination block, StatCan's smallest census geography; `basis` says which unit a result is for. As on the map, a block over 0.1 km² gives the result of the H3 hexagon at the point. Every address in a block or hexagon gets the same result.
- **Scheduled transit.** Transit times come from published timetables, sampled on one day per period. A transit answer gives the walking time with `reason: "fell_back"` where no transit reaches a point, and with `reason: "walk_faster"` where walking is quicker than the trip by transit. Without a key, transit is the weekday morning peak at the typical trip ([cycling and transit](/dev/api/access/#cycling-and-transit)).
- **60-minute search.** A type is `no_access` when the asked mode does not reach it within 60 minutes (`meta.limit_minutes`).
- **Travel times are ours.** You may not extract the API's minutes in bulk. The places themselves are open data: download them from [Open data](/docs/data/open-data/).
## Machine-readable spec
The full contract is published as an OpenAPI 3.1 document:
[`https://aportee.ca/v1/openapi.yaml`](https://aportee.ca/v1/openapi.yaml).
Try every endpoint against it in the [API console](/dev/api/console).
The [MCP server](/dev/mcp/) serves the same data as the API, under the same daily limits:
walking, cycling and transit times, place search and amenity discovery, for MCP clients.
---
# Access – GET & POST /v1/access
> The composable access snapshot on foot, by bike or by transit, reason-coded minutes, status codes, and batch lookups.
Source: https://aportee.ca/dev/api/access
## `GET /v1/access`
Returns the census block that contains a point, with the components you name in `include`.
`minutes` are on foot unless `mode` asks for cycling or transit.
| Param | Required | Description |
|-------|----------|-------------|
| `lat` | yes | Latitude (WGS84) |
| `lon` | yes | Longitude (WGS84) |
| `mode` | no | `walk` (default), `bike`, `transit`, or `combo` (bike + transit, the bicycle parked at the stop). See [cycling and transit](#cycling-and-transit). |
| `period` | no | For `transit` and `combo`: `weekday_peak` (default), `weekday_night`, `saturday_midday` or `sunday_midday`. |
| `statistic` | no | For `transit` and `combo`: `p50`, the typical trip (default), or `p90`, the worst case. |
| `include` | no | Comma-separated components: `minutes`, `population`, `place`, `narrative`, `walk_counts`. `all` selects all five. Defaults to `minutes`. See [walk counts](#walk-counts). |
| `walk_minutes` | no | The walk `walk_counts` counts within, in whole minutes from 5 to 55. Defaults to 15. |
| `types` | no | Comma-separated amenity types (e.g. `grocery,pharmacy`). Defaults to every amenity type in the current data; a type the data does not include is left out of `minutes`. An unknown type is a `400`. |
| `lang` | no | `en` (default) or `fr`: the language of `narrative` and of `place` names. |
| `key` | no | API key. Prefer the `X-Api-Key` header, which keeps the key out of URLs; see [keys](/dev/api/authentication/#keys). |
```bash
# Only a subset of types:
curl "https://aportee.ca/v1/access?lat=43.6532&lon=-79.3832&types=grocery,pharmacy,library"
```
### Time sources
`minutes` are the figure the map shows at the point: the census block's, or, for a block larger
than 0.1 km², the figure of the H3 hexagon (about 130 m across) at the point, since the map draws
large blocks as hexagons. `basis` comes with `minutes` and says which, with the block's ID and
area:
```json
"basis": { "kind": "hexagon", "block_id": "35204616019", "block_area_km2": 0.127 }
```
`block_id` and `population` stay the block's either way. Where a large block has no hexagon figure
at the point (the hexagon has no residents), the API gives the block's, and `basis.note` says so.
Every building in a block or hexagon gets the same figure.
### Reason-coded minutes
Each amenity in `minutes` is an object with a `value` and a `reason`:
```json
{ "value": 6, "reason": "ok" }
```
| `reason` | Modes | Meaning |
|----------|-------|---------|
| `ok` | all | `value` is the time in minutes by the asked mode. |
| `no_access` | all | Nothing of the type within the 60-minute search (`meta.limit_minutes`). `value` is `null`. |
| `not_computed` | all | No time was computed for the block: its point could not be connected to the street network, or no network could be built for its area. `value` is `null`. |
| `fell_back` | `transit`, `combo` | No transit reaches the point. As on the map, `value` is then the time by `fell_back_to`: `walk`, or `bike` for `combo`. |
| `walk_faster` | `transit`, `combo` | Walking from the same point is quicker than the trip by transit: `value` is the walking time, the quickest way to make the trip. |
| `no_data` | `bike`, `combo` | The map has no figure at the point (its hexagon has no residents); a point nearer homes may have one. `value` is `null`. |
Treat any `reason` other than `ok` and `walk_faster` as no time by the asked mode; `fell_back`
gives the walk or ride in its place.
```json
{ "value": 2, "reason": "fell_back", "fell_back_to": "walk" }
```
A transit entry falls back to the block's walk where the cycling and transit times have no figure
at the point. When the walk or ride of a `fell_back` entry has no time, `value` is `null` and
`fell_back_reason` gives its reason.
### Cycling and transit
`mode=bike`, `mode=transit` and `mode=combo` give the cycling and transit times the map shows at
the point, for the same data version ([time sources](#time-sources)).
Every mode searches up to 60 minutes (`meta.limit_minutes`). Whatever the mode, `narrative` and
`walk_counts` describe walking.
Transit times follow the operators' published timetables (GTFS): for each origin, 24 departures
across the period are routed, and `statistic` picks the median (`p50`, the typical trip) or the
90th percentile (`p90`, the worst case) of those departures. Bike + transit assumes the bicycle is
parked at the stop.
| Without a key | With a key (free or research) |
|---------------|-------------------------------|
| `walk`, `bike`, and `transit` at `period=weekday_peak`, `statistic=p50`, as on the free map | every mode, period and statistic the served data includes, as on à portée plus |
Without a key, a call gets `401` (`aportee.api.unauthorized`) if it asks for another period,
`statistic=p90` or `mode=combo`, and `detail` names what needs a key. A call for a period the
served data does not include gets `503` (`aportee.api.unavailable`).
```bash
curl "https://aportee.ca/v1/access?lat=43.7315&lon=-79.2620&types=grocery,pharmacy,hospital&mode=transit"
```
```json
{
"block_id": "35203452011",
"point": { "lat": 43.7315, "lon": -79.262 },
"meta": {
"vintage": 2021,
"methodology": "R5 walk + transit, published timetables (GTFS), median of 24 departures in weekday_peak",
"attribution": "© OpenStreetMap contributors · Adapted from Statistics Canada · Overture Maps Foundation · ODbL (derived) · Transit: timetables published by transit operators (GTFS), each under its operator’s licence; operators, credits and licences: https://r2.aportee.ca/v/20261021-r37-transit/SOURCE-NOTICES.txt",
"data_version": "20261021-r37",
"timing_dataset": "canada-transit-r37",
"limit_minutes": 60,
"transit_notices": "https://r2.aportee.ca/v/20261021-r37-transit/SOURCE-NOTICES.txt",
"timetables": { "period": "weekday_peak", "date": "2026-10-14", "window": "07:00–09:00" }
},
"minutes": {
"grocery": { "value": 10, "reason": "ok" },
"pharmacy": { "value": 9, "reason": "ok" },
"hospital": { "value": 30, "reason": "ok" }
},
"travel": { "mode": "transit", "period": "weekday_peak", "statistic": "p50" }
}
```
`travel` gives the minutes' mode, and for transit their period and statistic; a walking response
has no `travel`. `meta.timing_dataset` names the data version of the cycling and transit times,
and `meta.timetables` the day the timetables were sampled for the period, with its departure
window. Many operators ask for a credit wherever
their timetables are used, so a transit response's `meta.attribution` includes that credit
and the link to the source notices (`meta.transit_notices`), which list every operator,
credit and licence. Show that credit with the times.
### Walk counts
`walk_counts` counts the places of each requested type reached on foot within
`walk_minutes` of the point. The API routes the walks from the exact point on the city's walking
network to every mapped destination, with the map's settings: walking at 3.6 km/h, slowed on
slopes (Tobler). A place across a river counts only when a crossing keeps the walk within
`walk_minutes`. `walk_pois` adds up to three named places per type with their walking minutes,
nearest first. The shape, with illustrative values:
```json
"walk_counts": { "minutes": 15, "reason": "ok", "counts": { "grocery": 3, "pharmacy": 1 },
"region": "Hamilton", "method": "R5 WALK, Tobler slope-adjusted, snapped selected point" },
"walk_pois": [{ "type": "grocery", "name": "FreshCo", "minutes": 6, "locations": 1 }]
```
Routing covers twelve cities (Hamilton, Toronto, Ottawa, Montréal, Québec, Vancouver,
Victoria, Calgary, Edmonton, Winnipeg, Halifax, Saskatoon). Elsewhere, or when the routing
service is off or busy, `counts` is `null` and `reason` says why: `outside_coverage`,
`unavailable` or `disabled`. A `detail` string adds the cause, such as `routing service busy;
retry in a few seconds`, `routing timed out` or `routing service returned an unexpected
response`. When routing was busy or timed out, the response sets `Retry-After` (in seconds), and a
retry of the same point often succeeds. Match on `reason`: the wording of `detail` can change.
### Status codes
| Code | Meaning |
|------|---------|
| `200` | Data returned. |
| `304` | Not modified: the `If-None-Match` header names the current result. Not counted. |
| `400` | Bad parameters: unknown `types`, `mode`, `period` or `statistic`, a `period` or `statistic` with `walk` or `bike`, bad `include` or `walk_minutes`, or missing `lat`/`lon`. The body's `detail` lists valid values. |
| `401` | Without a key: a transit period other than `weekday_peak`, `statistic=p90`, or `mode=combo`. Not counted. |
| `404` | `aportee.api.outside_coverage`: no populated census block contains the point (outside Canada, over water, or no residents). `hint` says which, including swapped coordinates. |
| `422` | Coordinates out of range or degenerate (e.g. a pole or the antimeridian). |
| `429` | Rate limited. `Retry-After` gives the seconds until the daily reset. |
| `503` | `aportee.api.unavailable`: the served data has no times for the asked mode and period. |
| `5xx` | Internal failure, such as a tile source outage. |
The `code` for each status is on [Errors](/dev/api/errors).
### Caching
A `200` includes an `ETag` that changes with the data version and the query. Send it back
in `If-None-Match` to get `304` with no body when nothing has changed; a `304` does not
count against the daily limit. See [conditional requests](/dev/api/authentication/#conditional-requests).
A request with `walk_counts` is routed again on every call, so its `200` comes without an `ETag`.
## `POST /v1/access` – batch
Answers up to 100 points in one call. It needs a key, and each point counts as one request
against the daily limit. `results` follows the order of `points`. A bad point gets an
`{ "error": … }` object in its slot, and the other points still get their results. `include`
takes the same components as `GET` except `walk_counts`, which is routed per point; `all`
leaves it out, and naming it is a `400`. `mode`, `period` and `statistic` work as on `GET` and
apply to every point.
```bash
curl -X POST "https://aportee.ca/v1/access" \
-H "X-Api-Key: $APORTEE_API_KEY" \
-H "content-type: application/json" \
-d '{"points":[{"lat":43.25,"lon":-79.82},{"lat":43.65,"lon":-79.38}],"include":["minutes"]}'
```
---
# Compass – GET /v1/compass
> Each everyday trip's nearest places from a point, with their walking minutes and compass bearings.
Source: https://aportee.ca/dev/api/compass
`GET /v1/compass` returns what the place card's compass shows for a point: by default for
each of the eight everyday trips, the nearest place on foot with its walking minutes and its
direction from the point, and up to two more places within 30 minutes. No key is needed,
and a call counts as one request.
The places and minutes come from the map's routing: for each H3 cell (resolution 10), the
nearest three places of each type and the walking seconds to them, walking at 3.6 km/h and
slowed on slopes (Tobler). The minutes are from the cell the point stands in, so two points in
the same cell get the same minutes. The bearings are from the point itself.
```bash
curl "https://aportee.ca/v1/compass?lat=43.25085&lon=-79.81809&types=grocery,park"
```
| Param | Required | Description |
|-------|----------|-------------|
| `lat` | yes | Latitude (WGS84). |
| `lon` | yes | Longitude (WGS84). |
| `types` | no | Some of `grocery`, `pharmacy`, `convenience_store`, `bank`, `park`, `cafe`, `library` and `clinic` and, where the data has them, `school`, `elementary_school`, `secondary_school`, `childcare`, `playground` and `hospital`, comma-separated. Defaults to the eight everyday trips. |
| `key` | no | API key. Prefer the `X-Api-Key` header. |
## Response
```json
{
"point": { "lat": 43.25085, "lon": -79.81809 },
"cell": { "lat": 43.25071, "lon": -79.81822 },
"trips": [{
"type": "grocery", "limit": 15, "reason": "ok",
"nearest": { "name": "FreshCo", "minutes": 6, "bearing": 61.2, "direction": "NE",
"within_limit": true, "lat": 43.25205, "lon": -79.81402 },
"next": [{ "name": "Food Basics", "minutes": 12, "bearing": 248.5, "direction": "W",
"within_limit": true, "lat": 43.24877, "lon": -79.82511 }]
}],
"meta": { "data_version": "20261021-r37",
"method": "R5 WALK, Tobler slope-adjusted; minutes from the H3 cell (res 10) the point stands in, bearings from the point",
"attribution": "© OpenStreetMap contributors · Adapted from Statistics Canada · Overture Maps Foundation · ODbL (derived)" }
}
```
The values are illustrative. `cell` is the centre of the cell the minutes are from. Each
trip has:
| Field | Description |
|-------|-------------|
| `type` | The everyday trip. |
| `limit` | The trip's limit in minutes, as on the place card: 15 for most trips, 10 for a park, a convenience store or a playground, 20 for a library or a clinic, and 30 for a hospital. |
| `reason` | `ok`; `no_access` when no place of the type is within 60 minutes' walk; `not_computed` when the cell has no walking time. |
| `nearest` | The nearest place, or `null` unless `reason` is `ok`. |
| `next` | Up to two more places, each within 30 minutes, nearest first. |
A place has its `name` (empty when it has none), its walking `minutes`, its `bearing` in
degrees clockwise from north, the nearest of the eight compass points as `direction`,
`within_limit`, and its `lat` and `lon`. The coordinates are where the walk to it ends,
such as a park's nearest entrance.
A `200` includes an `ETag`. Send it back in `If-None-Match` to get a `304` while the query and
the map data are unchanged. A `304` is not counted.
## The compass as a picture
`GET /v1/compass.svg` and `GET /v1/compass.png` draw the same answer as the place card's
compass: each trip's nearest place as a petal in its direction, as far out as its walking
minutes, and its next places as small dots. Beside the dial, a list gives each place with its
direction and minutes; under it are a key, the data's date and the credit. On the map a petal
bends with the turns of its walk; the picture draws each petal straight.
```bash
curl -o compass.png "https://aportee.ca/v1/compass.png?lat=43.25085&lon=-79.81809"
```
Both take `lat`, `lon` and `types` as `/v1/compass` does, and:
| Param | Description |
|-------|-------------|
| `lang` | `en` (default) or `fr`. |
| `theme` | `light` (default) or `dark`. |
| `label` | With a key only: the point's name, at most 80 characters, printed as the picture's title. Without it, the title says what the picture shows and the coordinates go under it. |
The SVG is one document, 680 pixels wide, its height growing with the number of trips. Its
labels are real text, and everything it draws is in the file, so it looks the same wherever it
opens. Each trip's petal, dot, next places and row have `data-trip` (the type) and `data-part`
(`petal`, `badge`, `next` or `row`), for a page that highlights one trip.
The PNG is the same picture at 1,360 pixels wide, for apps that need a PNG, as most chat apps
do. A call for the SVG counts as one request, as `/v1/compass` does; a call for the PNG counts as
two, charged only when the picture comes back. Neither needs a key unless it has a `label`.
A refused request gets the same JSON error as `/v1/compass`. An unsupported `lang`, `theme` or
`label` is a `400`, and a `label` without a key is a `401`; neither is counted. A call for the
PNG can also get a `503`, which isn't counted. `aportee.api.render_error` means the picture
couldn't be drawn just now: retry after `Retry-After`. `aportee.api.unavailable` means the PNG
can't be drawn on this server; ask for the SVG.
## Errors
| Code | Meaning |
|------|---------|
| `400` | Missing `lat`/`lon`, or a type the compass doesn't answer for in the served data; `detail` lists the ones it does. Not counted. |
| `404` | `aportee.api.no_street_nearby`: no walkable street is near enough to route from, because the point is over water, outside Canada or far from a street or path. `hint` says what to try. |
| `422` | `lat` or `lon` is not a number in range. Not counted. |
| `429` | Rate limited. |
| `503` | The compass data isn't available for now. Not counted. |
For the minutes to other types, use [`/v1/access`](/dev/api/access). The `code` for each
status is on [Errors](/dev/api/errors).
---
# Walking routes – GET /v1/routes
> The walked path from a point to the nearest place of each type, with the seconds at each point along it, ready to animate.
Source: https://aportee.ca/dev/api/routes
`GET /v1/routes` returns the walk from a point to the nearest place of each requested type,
as a GeoJSON `FeatureCollection` with one line per type. It needs a key, and each type
routed counts as one request against the [daily limit](/dev/api/authentication/#rate-limits).
The walks are routed on the city's walking network as the map routes them: walking at
3.6 km/h, slowed on slopes (Tobler). The nearest place is the one with the fewest walking
minutes along the streets and paths. For the same point, you get the same place and minutes as
from [walk counts](/dev/api/access/#walk-counts). A route can also end at a place with no
name. It can also end at a place the [walk counts](/dev/api/access/#walk-counts) leave out.
```bash
curl -H "X-Api-Key: $APORTEE_API_KEY" \
"https://aportee.ca/v1/routes?lat=43.25085&lon=-79.81809&types=grocery,school"
```
| Param | Required | Description |
|-------|----------|-------------|
| `lat` | yes | Latitude (WGS84). |
| `lon` | yes | Longitude (WGS84). |
| `types` | yes | One to five comma-separated amenity types (see [`/v1/amenities`](/dev/api/amenities)). |
| `key` | no | API key. Prefer the `X-Api-Key` header. |
## Response
Each feature's geometry is the walked path, `[lon, lat]` pairs from where the point meets
the street network to where the place does. Its properties:
| Property | Description |
|----------|-------------|
| `type` | The amenity type. |
| `name` | The place's mapped name; empty when it has none. |
| `minutes` | Routed walking minutes. |
| `distance_m` | Metres along the walked path. |
| `times` | Seconds from the start at each vertex, from `0` to `minutes` × 60. |
The routing gives each walk's total minutes, slopes included, and `times` spreads them along
the path by length: a vertex halfway along the path has half the walk's seconds. The array has
the shape that trip animation layers expect, such as deck.gl's `TripsLayer`.
Where the routed path has a gap, the geometry is a `MultiLineString` and `times` is nested
the same way. The time on both sides of the gap is the same.
```json
{
"type": "FeatureCollection",
"point": { "lat": 43.25085, "lon": -79.81809 },
"features": [{
"type": "Feature",
"geometry": { "type": "LineString",
"coordinates": [[-79.81812, 43.25079], [-79.8159, 43.2501], [-79.81402, 43.25205]] },
"properties": { "type": "grocery", "name": "FreshCo", "minutes": 6, "distance_m": 448,
"times": [0, 154.6, 360] }
}],
"missing": [{ "type": "school", "reason": "unavailable",
"detail": "routing service busy; retry in a few seconds" }],
"meta": { "data_version": "20261021-r37",
"method": "R5 WALK, Tobler slope-adjusted; seconds along the path interpolated by length",
"attribution": "© OpenStreetMap contributors · Adapted from Statistics Canada · Overture Maps Foundation · ODbL (derived)" }
}
```
The values are illustrative.
## Missing routes
A type with no line is in `missing` with a `reason`:
| Reason | Meaning |
|--------|---------|
| `outside_coverage` | The point is outside the routed cities. Every type has this reason. |
| `unreached` | No place of the type within 60 minutes' walk. |
| `no_path` | The place was found, but no path to it. |
| `not_routed` | Routing doesn't cover this type. |
| `unavailable` | Routing gave no answer for the type. `detail` says why. |
Routing covers twelve cities, listed under [walk counts](/dev/api/access/#walk-counts).
`unavailable` comes with a `detail`, as in walk counts: `routing service busy; retry in a few
seconds`, `routing timed out`, `routing rate limit reached`, `daily routing cap reached`,
`routing service returned an unexpected response` or `routing service unavailable`. Match on
`reason`: the wording of `detail` can change. When routing was busy, timed out or hit its
per-address limit, the response sets `Retry-After` in seconds. After the daily cap, retry
after 00:00 UTC. Once the point is outside coverage, or
a type comes back `unavailable`, every later type comes back in `missing` with the same
reason.
Each type routed counts as one request. The later types that share a reason are not
counted.
Responses send `Cache-Control: private, no-store`. Asking for the same point again counts
again.
## Errors
| Code | Meaning |
|------|---------|
| `400` | Missing `lat`/`lon` or `types`, more than five types, or an unknown type. Not counted. |
| `401` | No key, or a key that isn't recognized. |
| `422` | `lat` or `lon` is not a number in range. Not counted. |
| `429` | Rate limited. |
| `503` | Routing is turned off on this server. Not counted. |
The `code` for each status is on [Errors](/dev/api/errors).
---
# Search – GET /v1/search
> Place-name search over the CSD gazetteer, plus POI-name search among places reached on foot from a point.
Source: https://aportee.ca/dev/api/search
Without a key, `name` returns ranked matches among cities and towns from the census subdivision
(CSD) gazetteer. With `near=lat,lon` **and a key**, the search also looks for POIs by
name among the places reached on foot within `walk_minutes` of `near`. Each match gives the
POI's type and its walking minutes, so you can tell whether a named place is in the data.
The API routes the walk live on the city's walking network, as the map does: walking at
3.6 km/h, slowed on slopes (Tobler). A place across a river is found only when a crossing keeps
the walk within `walk_minutes`. Matches come nearest first, at most 20. Routing covers
twelve cities (listed under
[walk counts](/dev/api/access/#walk-counts)); elsewhere, or when the routing service is
off or busy, `pois` is absent and `pois_reason` is `outside_coverage`, `unavailable` or
`disabled`.
```bash
curl -H "X-Api-Key: $APORTEE_API_KEY" \
"https://aportee.ca/v1/search?name=Fickle%20Fig&near=48.43,-123.37"
```
| Param | Required | Description |
|-------|----------|-------------|
| `name` | yes | Name to search for. A town can be written the usual ways: `Toronto, ON`, `Quebec City`, `St-Jérôme`. |
| `prov` | no | Limits the towns to one province or territory, given by its two-letter code (`ON`, `QC`…). An unknown code is a `400`. |
| `near` | no | `lat,lon` the POI-name search walks from. Keyed tier only. |
| `walk_minutes` | no | How far to walk from `near`, in whole minutes from 5 to 55. Defaults to 15. |
| `key` | no | API key (needed for POI search). Prefer the `X-Api-Key` header. |
Without `near` (or without a key), the API returns `places` only, with a `detail` that says
what POI search needs.
---
# Images – GET /v1/image
> Render branded map PNGs.
Source: https://aportee.ca/dev/api/images
## `GET /v1/image`
Returns a PNG map of any area with the à portée branding, drawn like the map's share cards.
It needs a key. One image counts as 10 requests against the daily limit.
```bash
curl -H "X-Api-Key: $APORTEE_API_KEY" \
"https://aportee.ca/v1/image?lat=43.25&lon=-79.82&zoom=13&types=grocery,pharmacy" \
-o hamilton.png
```
Params: `lat`, `lon`, `zoom`, `types`, `theme` (`light`\|`dark`), `lang`, `w`,
and `h`. The API ignores `mode` and `budget`. Images show walking times.
## Your own markers
Add `markers` to draw your own points over the access colours, such as sites you are
studying. Each marker takes the map's pin colours for the image's theme: a `dot` (filled, the
default) or a `ring` (hollow), with an optional label beside it. The same points with the same
settings give the same image.
When markers can't be drawn on images at the moment, the API returns `501`
([`aportee.api.not_implemented`](/dev/api/errors/#not-implemented)) with no image, and doesn't
count the call.
Up to 20 points fit in the query, as `lat,lon` pairs separated by semicolons:
```bash
curl -H "X-Api-Key: $APORTEE_API_KEY" \
"https://aportee.ca/v1/image?lat=53.5465&lon=-113.555&zoom=15&markers=53.5465,-113.555;53.5485,-113.548" \
-o permits.png
```
For up to 500 points, labels or the `ring` style, send `POST /v1/image`. The body takes the
same parameters as JSON fields, and `markers` as a GeoJSON FeatureCollection of Points. Each
feature's `properties` may include `label` (at most 80 characters) and `style` (`dot` or
`ring`). GeoJSON coordinates are `[lon, lat]`:
```bash
curl -X POST -H "X-Api-Key: $APORTEE_API_KEY" -H "Content-Type: application/json" \
https://aportee.ca/v1/image -o permits.png -d '{
"lat": 53.5465, "lon": -113.555, "zoom": 15, "types": ["grocery", "pharmacy"],
"markers": { "type": "FeatureCollection", "features": [
{ "type": "Feature", "geometry": { "type": "Point", "coordinates": [-113.555, 53.5465] },
"properties": { "label": "Permit 1" } },
{ "type": "Feature", "geometry": { "type": "Point", "coordinates": [-113.548, 53.5485] },
"properties": { "label": "Permit 2", "style": "ring" } } ] } }'
```
The API returns `400` when a marker is malformed, or when the query has more than 20 or
the body more than 500. The error names the marker that failed.
---
# Embeds – GET /v1/embed
> Generate interactive iframe embed snippets.
Source: https://aportee.ca/dev/api/embeds
## `GET /v1/embed`
Returns an iframe snippet for an interactive map, as `{ "html": "...", "src": "..." }`. It
needs no key and isn't counted. You can build the same snippet in your browser with
[the embed generator](/dev/tools/embed).
Params: `lat`, `lon`, `zoom`, `types`, `theme` (`light`\|`dark`), `lang`, `w`,
`h`, and `dots`. The embedded map shows amenity dots and walking times; `dots=0` hides the
dots. The API ignores `mode` and `budget`.
```bash
curl "https://aportee.ca/v1/embed?lat=43.25&lon=-79.82&zoom=11&types=grocery"
```
## Your own markers
Add `markers` to draw up to 20 of your own points on the embedded map, as `lat,lon` pairs
separated by semicolons. They take the map's pin colours and sit over everything else:
```bash
curl "https://aportee.ca/v1/embed?lat=53.5465&lon=-113.555&zoom=15&markers=53.5465,-113.555;53.5485,-113.548"
```
Your page can also send markers to the embed it hosts as a message: up to 500 points, with
labels or the `ring` style. When the embed's map is listening, it posts this message to your
page: `{ "type": "aportee:markers-ready" }`. Send the embed
`{ "type": "aportee:markers", "markers": … }`, with `markers` the same GeoJSON
FeatureCollection as [`POST /v1/image`](/dev/api/images/#your-own-markers) takes, or
`"markers": null` to clear them. If your page attaches its listener after the iframe loads, it
misses the ready message; in that case, send the markers on the iframe's `load` event.
The embed answers each message with
`{ "type": "aportee:markers-result", "ok": true, "count": 2 }`. For a collection it refuses,
it answers `"ok": false` with a `detail` naming the marker, and keeps the markers it had. Your
page can be on any domain.
```html
```
## Your own areas
Your page can also draw areas on the embed it hosts, such as a town boundary or a district, the
same way: once the embed posts `{ "type": "aportee:markers-ready" }`, send it
`{ "type": "aportee:areas", "areas": … }`, with `areas` a GeoJSON FeatureCollection of up to 50
Polygon, MultiPolygon, LineString or MultiLineString features, 50,000 positions in all, or
`"areas": null` to clear them. Each feature can have a `style`: `area` (the default) draws a
light fill with an edge, and `outline` draws a dashed line. The areas sit under the place dots
and your markers, in the map's pin colour for its theme.
The embed answers each message with `{ "type": "aportee:areas-result", "ok": true, "count": 1 }`,
or `"ok": false` with a `detail` naming the feature it refused, keeping the areas it had.
```js
map.contentWindow.postMessage({ type: 'aportee:areas', areas: { type: 'FeatureCollection', features: [
{ type: 'Feature', properties: { style: 'outline' },
geometry: { type: 'LineString', coordinates: [[-113.56, 53.54], [-113.54, 53.54], [-113.54, 53.55]] } },
] } }, 'https://aportee.ca');
```
---
# Amenities & schema
> The amenity-type discovery endpoint and the OpenAPI spec.
Source: https://aportee.ca/dev/api/amenities
## `GET /v1/amenities`
Returns every amenity type with its English and French labels, for a client to check `types`
against or to fill a list from. It needs no key, isn't counted and is cached for 24 hours. The
response has an `ETag`; send it back in `If-None-Match` to get `304` when the list is unchanged.
```bash
curl "https://aportee.ca/v1/amenities"
```
```json
{ "amenities": [ { "type": "grocery", "label": { "en": "Grocery", "fr": "Épicerie" } }, "…" ] }
```
## OpenAPI spec
The full machine-readable contract is published as an OpenAPI 3.1 document:
[`https://aportee.ca/v1/openapi.yaml`](https://aportee.ca/v1/openapi.yaml)
Drop it into Swagger UI, Bruno, or Postman to explore every endpoint, parameter, and
response schema.
---
# Reference datasets
> Shared query, response, provenance, and error details for the reference datasets.
Source: https://aportee.ca/dev/data
à portée and its reference API serve three datasets:
- [à portée](/dev/data/aportee) – slope-aware walking times to everyday amenities.
- [Can-ALE](/dev/data/can-ale) – an active-living-environment index for dissemination areas.
- [Spatial Access Measures](/dev/data/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
```bash
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
The reference endpoint accepts either a census ID or a WGS84 point:
```text
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`. |
```bash
# Exact census-ID lookup
curl "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 point
curl "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
Every source field appears in `values` with `value`, `reason`, and `unit`:
```json
{
"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
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.
---
# Walking-access API error codes
> Every error code the /v1 API returns, with its HTTP status, meaning and fix.
Source: https://aportee.ca/dev/api/errors
An error response has a JSON body with a stable `code`, a readable `detail`, and the HTTP
status repeated as `statusCode`. Branch on `code`; `detail` can change.
```json
{ "code": "aportee.api.bad_request", "detail": "Missing required query params: lat, lon", "statusCode": 400 }
```
| Code | Status | Meaning |
|------|--------|---------|
| [`aportee.api.bad_request`](#bad-request) | 400 | A parameter or the request body is missing or invalid. |
| [`aportee.api.unauthorized`](#unauthorized) | 401 | The feature needs a key and none was recognized. |
| [`aportee.api.outside_coverage`](#outside-coverage) | 404 | No populated census block contains the point. |
| [`aportee.api.no_street_nearby`](#no-street-nearby) | 404 | No walkable street near enough to route from. |
| [`aportee.api.not_found`](#not-found) | 404 | No such reference record, dataset or sign-in code. |
| [`aportee.api.unprocessable`](#unprocessable) | 422 | The coordinates can't be used, or the search area is too large. |
| [`aportee.api.rate_limited`](#rate-limited) | 429 | Today's limit is used up. |
| [`aportee.api.server_error`](#server-error) | 500 | The lookup failed on our side. |
| [`aportee.api.not_implemented`](#not-implemented) | 501 | Markers can't be drawn on images at the moment. |
| [`aportee.api.render_error`](#render-error) | 503 | The image couldn't be drawn. |
| [`aportee.api.unavailable`](#unavailable) | 503 | A service the request depends on is unavailable. |
In a batch (`POST /v1/access`), a point that fails gets `{ "error": { "code", "detail",
"statusCode" } }` in its slot, and the batch itself still returns `200`. Over [MCP](/dev/mcp), a refused
tool call sets `isError: true` and includes the same body in the MCP server's terms (tool and
argument names where REST has routes and parameters). A call with an argument of the wrong type
is refused in plain text, with no body.
## Bad request
`aportee.api.bad_request`, status `400`. Returned for:
- a missing `lat`/`lon` or `name`;
- an unknown value in `types` or `include` (including `walk_counts` in a batch);
- an unknown `mode`, `period` or `statistic` on `/v1/access`, or a `period` or `statistic` with `mode=walk` or `mode=bike`;
- a `walk_minutes` that is not a whole number from 5 to 55, or a malformed `near`;
- an unknown `prov` on `/v1/search`;
- a batch body that isn't JSON, has no points, or has more than 100;
- an unknown parameter or `mode` on `/v1/reference/{dataset}`;
- a malformed `markers` on `/v1/image` or `/v1/embed`, more than 20 in the query, or more
than 500 in an image's body;
- a `lang` other than `en` or `fr`, a `theme` other than `light` or `dark`, or a `label` over
80 characters on `/v1/compass.svg` or `/v1/compass.png`.
**Fix:** read `detail`. For `types` and `include` it lists the valid values:
```json
{
"code": "aportee.api.bad_request",
"detail": "types is invalid: \"groceries\" not a known amenity type. Valid: grocery, pharmacy, bakery, …",
"statusCode": 400
}
```
`/v1/amenities` lists the valid `types`.
## Unauthorized
`aportee.api.unauthorized`, status `401`. `POST /v1/access`, `/v1/image` and `/v1/routes` return it
when the request has no key, or a key that isn't recognized (mistyped or revoked). `GET /v1/access`
returns it for transit beyond the free map without a key: a `period` other than `weekday_peak`,
`statistic=p90` or `mode=combo`; `detail` names what needs the key. `/v1/compass.svg` and
`/v1/compass.png` return it for a `label` without a key. The call is not counted.
```json
{
"code": "aportee.api.unauthorized",
"detail": "Batch lookup requires an API key. Sign in at upgrade_url for a free key (1,000 requests a day) and send it in the X-Api-Key header.",
"statusCode": 401,
"tier": "anonymous",
"upgrade_url": "https://aportee.ca/signin?next=%2Faccount"
}
```
**Fix:** create a key at `upgrade_url` and send it in the `X-Api-Key` header. `GET /v1/me`
shows whether a key is recognized: if not, its `tier` is `anonymous`. Over MCP, the error body adds
`next`: call `start_sign_in` and show the person the link, or, where accounts are off, give them
`upgrade_url`. Until then, answer with what works without a key.
`/v1/search` with `near` and no key returns `200` with place matches only, a `detail` and an
`upgrade_url`.
## Outside coverage
`aportee.api.outside_coverage`, status `404`. On `/v1/access` and in a batch slot, no populated
Canadian census block contains the point: it is outside Canada, over water, or in an area with no
residents. `hint` says which. When swapping `lat` and `lon` gives a point in Canada, it says the
coordinates look swapped and gives them the right way round; when the longitude lost its minus
sign, it says so and gives it back.
```json
{
"code": "aportee.api.outside_coverage",
"detail": "No populated census block at lat=-79.3841, lon=43.65204",
"statusCode": 404,
"hint": "lat and lon look swapped: try lat=43.65204, lon=-79.3841."
}
```
**Fix:** follow `hint`. For a point on land in Canada, send WGS84 decimal degrees with `lat` first.
## No street nearby
`aportee.api.no_street_nearby`, status `404`. On `/v1/compass`, no walkable street is near enough
to the point to route from: it is over water, or far from any street or path. `hint` says so, or
that the coordinates look swapped.
**Fix:** move the point onto a street nearby. `/v1/access` may still answer for the block.
## Not found
`aportee.api.not_found`, status `404`. On `/v1/reference/{dataset}`, one of these doesn't exist:
the dataset, the geography at the point, or the census ID. On the agent sign-in, the sign-in code
is unknown.
**Fix:** check the dataset name, the point or the ID.
## Unprocessable
`aportee.api.unprocessable`, status `422`. The coordinates are not finite numbers, are out
of range, or are off the projected map (near a pole or the antimeridian).
```json
{ "code": "aportee.api.unprocessable", "detail": "Coordinate is off the projected map (near a pole/antimeridian).", "statusCode": 422 }
```
**Fix:** send WGS84 decimal degrees.
## Rate limited
`aportee.api.rate_limited`, status `429`. The daily limit for your tier is used up.
Limits reset at 00:00 UTC. The `Retry-After` header gives the seconds until then, and
`X-RateLimit-Reset` gives the time as a Unix timestamp.
```json
{
"code": "aportee.api.rate_limited",
"detail": "Daily limit of 100 requests reached; it resets at 2026-10-14T00:00:00.000Z. Sign in at upgrade_url for a free key (1,000 requests a day) and send it in the X-Api-Key header.",
"statusCode": 429,
"tier": "anonymous",
"upgrade_url": "https://aportee.ca/signin?next=%2Faccount"
}
```
**Fix:** wait `Retry-After` seconds, or move up a tier. `upgrade_url` depends on `tier`:
anonymous callers get the sign-in page for a free key, key holders get the research-limit request on
their account page, and research keys get the [rate limits](/dev/api/authentication/#rate-limits)
section. A retry before the reset gets `429` again. Check `remaining` with `GET /v1/me`
before a large batch; a batch counts one request per point. A result you already hold can
still be revalidated with `If-None-Match`: the `304` reply comes even after the limit is
reached, and is not counted ([conditional requests](/dev/api/authentication/#conditional-requests)).
## Server error
`aportee.api.server_error`, status `500`. The lookup failed on our side, for example
because a tile source is unavailable.
**Fix:** retry after a short wait. If it persists, write to
[feedback@aportee.ca](mailto:feedback@aportee.ca) with the request URL.
## Not implemented
`aportee.api.not_implemented`, status `501`. `/v1/image` returns this when the request asks
for markers that can't be drawn at the moment. You get no image, and the call isn't counted.
**Fix:** ask for the image without `markers`, or put the markers on an
[embed](/dev/api/embeds/#your-own-markers).
## Render error
`aportee.api.render_error`, status `503`. `/v1/image` or `/v1/compass.png` couldn't draw
the picture just now, often because the service is starting up. You get no image, and the call
isn't counted.
**Fix:** retry after the `Retry-After` seconds.
## Unavailable
`aportee.api.unavailable`, status `503`. `/v1/reference/{dataset}` couldn't read the
reference data or check the daily limit. On `/v1/routes` and `/v1/compass`, routing or the
compass data is unavailable for now. On `/v1/access`, the served data has no cycling or transit
times for the asked `mode` and `period`. On `/v1/compass.png`, the picture is unavailable for
now. `/v1/compass.svg` draws the same picture.
**Fix:** retry later. For `/v1/routes` and `/v1/compass`, `/v1/access` still gives the
walking minutes.
---
# Walking-access API console
> Try every /v1 endpoint in the browser, with or without an API key.
Source: https://aportee.ca/dev/api/console
Send real requests to the `/v1` API from this page. Most endpoints work without a key. To use
yours, open **Authentication** and paste it as `X-Api-Key`; it stays in this tab and is sent
only to this site.
---
# à portée data
> The core à portée walking-access dataset for everyday amenities across Canada.
Source: https://aportee.ca/dev/data/aportee
The à portée dataset is the core data behind the map. It gives the modelled walking time from a
Canadian census block to the nearest mapped amenity of each selected type.
## Contents
The map covers 35 everyday amenity types, including grocery stores, pharmacies,
schools, hospitals, parks, libraries, cafés, childcare, bike shops, banks, dentists and post
offices. Each result belongs to a 2021 census block and includes its population.
| Field | Meaning |
| --- | --- |
| `block_id` | The 11-digit Statistics Canada dissemination-block identifier. |
| `minutes` | Walking time to the nearest amenity of each type, with a value and reason code. |
| `population` | Population of the census block, from the 2021 Census. |
| `place` | The nearest named place when requested. |
| `narrative` | A short description of the selected walking times when requested. |
| `walk_counts` | When requested, counts of mapped amenities reached on foot within `walk_minutes` of the point, routed on the city walking network, in the routed cities. |
| `meta` | Data vintage, release, method, and attribution. |
An entry in `minutes` has the form `{ "value": 6, "reason": "ok" }`. A time that isn't available
has `value: null` and a reason code that says why.
## Calculation
Times follow the pedestrian street network. The model uses slope-aware routing and reports the
time from a census block to the nearest mapped amenity of that type. The result describes the
neighbourhood around the block: it gives no turn-by-turn route, and it doesn't model every
entrance or temporary closure.
à portée takes block geometry and population from the 2021 Census. The response gives the current
data release in `meta.data_version` and the method in `meta.methodology`.
## Requesting it
Use [`GET /v1/access`](/dev/api/access) for a point lookup, or its `POST` form for a batch of
points. The [CLI](/dev/tools/cli) and the [MCP server](/dev/mcp) serve the same data.
```bash
curl "https://aportee.ca/v1/access?lat=43.6532&lon=-79.3832&include=minutes,population,place"
```
## Attribution and limits
The output is a derived work based on OpenStreetMap streets and destinations, Overture Maps Places
destinations, and Statistics Canada census blocks and population. Every source is listed on
[Sources and licences](/docs/data/sources/). Credit OpenStreetMap contributors, the Overture Maps
Foundation and Statistics Canada, and retain the Open Database License notice where required.
The API reports the nearest amenity of each type, at census-block resolution. Treat a missing value
as unknown: it can mean nothing is within reach, or that the block has no time.
---
# Can-ALE
> Canadian Active Living Environments Database (Can-ALE 2.0) reference data.
Source: https://aportee.ca/dev/data/can-ale
Can-ALE 2.0 is an active-living-environment index for Canadian dissemination areas: how well
each area's built form supports walking. It is published by researchers outside à portée. Look
it up by point or by area ID to compare it with our travel times.
## Dataset
| Property | Value |
| --- | --- |
| Reference year | 2021 |
| Geography | Dissemination area |
| Geography vintage | 2021 Census |
| Identifier | 8-digit `DAUID` |
| Version | `2021-v2` |
The index describes the environment around a DA's population-weighted centroid.
The API returns the standard and transit-inclusive variants together, so Can-ALE takes no
`mode` parameter.
## Fields
| Field | Meaning |
| --- | --- |
| `ALE_index` | Composite active-living-environment index; may be negative. |
| `ALE_index_class` | Integer class from 1 (lowest) to 5 (highest). |
| `ALE_transit_index` | Transit-inclusive composite index; may be negative. |
| `ALE_transit_index_class` | Transit-inclusive integer class from 1 to 5. |
The measures combine dwelling density, intersection density, and weighted points of interest in
1 km buffers around DA population-weighted centroids. The transit variant adds transit stops.
## Requesting it
Use the reference endpoint with an exact `DAUID` or a point:
```bash
curl "https://aportee.ca/v1/reference/canale?id=10010165"
curl "https://aportee.ca/v1/reference/canale?lat=43.25085&lon=-79.81809"
```
The response includes the source values and metadata such as the reference year, geography,
version, source-file SHA-256 and lookup method. The common response shape and errors are in the
[data overview](/dev/data).
## Source and limits
In the guide, the source, citation and limits of the data are on [Can-ALE](/docs/data/can-ale/).
A DA's score is an index for the whole dissemination area.
---
# Spatial Access Measures
> Statistics Canada Spatial Access Measures reference data and travel modes.
Source: https://aportee.ca/dev/data/spatial-access-measures
Statistics Canada's Spatial Access Measures (SAM) dataset gives access measures for each travel
mode on 2021 census geography. The API serves them as Statistics Canada publishes them.
## Dataset
| Property | Value |
| --- | --- |
| Reference year | 2024 |
| Geography | Dissemination block |
| Geography vintage | 2021 Census |
| Identifier | 11-digit `DBUID` |
| Version | `2024-202511-v2` |
This version is Statistics Canada's 2024 release as corrected in November 2025, with the full
confident-cyclist data.
## Modes
Each request takes one mode:
- `walking`
- `cycling_confident`
- `cycling_cautious`
- `cycling_all_ages_and_abilities`
- `public_transit_peak`
- `public_transit_offpeak`
## Fields
| Field | Meaning | Unit |
| --- | --- | --- |
| `acs_idx_caf` | Cultural and arts facilities | Normalized index, 0–1 |
| `acs_idx_ccf` | Child care facilities | Normalized index, 0–1 |
| `acs_idx_ef` | Primary and secondary education | Normalized index, 0–1 |
| `acs_idx_emp` | Employment | Normalized index, 0–1 |
| `acs_idx_hf` | Health care facilities | Normalized index, 0–1 |
| `acs_idx_psef` | Postsecondary education | Normalized index, 0–1 |
| `acs_idx_srf` | Sports and recreation facilities | Normalized index, 0–1 |
| `acs_lvl_gs-1` | Closest grocery store | Minutes |
| `acs_lvl_gs-3` | Third closest grocery store | Minutes |
| `acs_lvl_gs-5` | Fifth closest grocery store | Minutes |
## On the map
Members can show SAM on the map as the StatCan SAM view. Its destinations, modes and colours are
on [Spatial Access Measures](/docs/data/spatial-access-measures/) in the guide.
## Requesting it
Ask `/v1/reference/sam` for an 11-digit `DBUID`, or for a point as `lat` and `lon`. `mode` is
optional and defaults to `walking`:
```bash
curl "https://aportee.ca/v1/reference/sam?id=35250772001&mode=walking"
curl "https://aportee.ca/v1/reference/sam?lat=43.25085&lon=-79.81809&mode=public_transit_peak"
```
The response includes one mode's fields and metadata such as the source year, geography,
version, source-file SHA-256 and lookup method. The common response shape and errors are in the
[data overview](/dev/data).
## Source and limits
The field definitions follow `SAM-en-record-layout.csv` in the [official
download](https://www150.statcan.gc.ca/n1/pub/27-26-0001/2023001/zip/sam-msa2024-eng.zip). The
licence and the limits of the data are on [Spatial Access
Measures](/docs/data/spatial-access-measures/#limits) in the guide.