Search – GET /v1/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); elsewhere, or when the routing service is
off or busy, pois is absent and pois_reason is outside_coverage, unavailable or
disabled.
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.