Contains information licensed under the Open Government Licence – Ontario
Trail Data API · Ontario

Ontario's trail network, line by line.

The Neighbourly Trail API returns trail segments from the Ontario Trail Network as GeoJSON lines. Each segment has its trail name, the organization that manages it, permitted uses (hiking, cycling, cross-country skiing, snowshoeing and more), length and a description. Query a map viewport and filter by use, organization or on-road sections.

MultiLineString GeoJSONPermitted usesTrail lengthManaging organizationViewport queries
Sample recordLive API
9 km Trail
Hardy Lake Provincial Park · Muskoka
Length
9 km
Use
Hiking
On road
No
Ontario ParksWithin 10 metresMultiLineString
Trail segmentsPermitted usesLengthOrganizationsDescriptions
Overview

What is the Trail Data API?

It is a REST API for the trails people walk, ride, ski and paddle in Ontario. It serves Ontario Trail Network segments as map lines. Each segment names the trail and the organization responsible for it, from the Bruce Trail Conservancy and Ontario Parks to cities and conservation authorities. It also lists permitted uses, length in kilometres, whether the segment runs on a road and a written description.

Filter by permitted use

Find segments open to hiking, cycling, cross-country skiing, snowshoeing, horseback riding, ATVs, snowmobiles or paddling and portaging with permitted_use=.

Who manages it

Each segment names its trail association and, where published, its website. Filter by association= to get one organization's network.

Map-ready lines

Segments come back as GeoJSON MultiLineStrings with a positional accuracy flag. Add on_road=false to skip road sections.

Fields

What each record contains.

These are the fields the API returns for this layer. Field names match the JSON response exactly.

Field Type Description
trail_name string Trail name
trail_association string Managing organization
trail_association_website string Organization website
permitted_uses string Comma-separated uses, e.g. Hiking or Walking, Cycling
trail_length_km float Trail length in km
on_road_flg string Yes if the segment runs on a road
description text Trail description
location_accuracy string e.g. Within 10 metres
province_id integer Province
geom GeoJSON MultiLineString geometry
Endpoints

Query by map view, ID or filter.

All requests go to https://api.neighbourly.io and send your key in the Api-Key header. A viewport is a JSON bounding box, {"southWestLat":…,"southWestLon":…,"northEastLat":…,"northEastLon":…}, URL-encoded.

GET
/api/v1/locations/trail?viewport={…}&permitted_use=Cycling&on_road=false&includes_geom=true
Trail segments in a viewport, filtered by use, organization, province or on-road flag. Default 500, up to 2,000 per request.
GET
/api/v1/locations/trail/{id}
One segment with its geometry.
GET
/api/v1/spatial/trails
Segments as a GeoJSON FeatureCollection, paged in sets of up to 200.
Example response

Real data, straight from the API.

Live response, trimmed.

  • GeometryMultiLineString
  • FormatJSON and GeoJSON (WGS84, EPSG:4326)
  • CoverageOntario, Canada
  • SourceOntario Ministry of Natural Resources (Ontario GeoHub)
  • Per requestUp to 2,000 by viewport; 200 per page on /spatial
  • AuthApi-Key header
GET /api/v1/locations/trail/5672 200 OK
{
  "id":                        5672,
  "trail_name":                "9 km Trail",
  "trail_association":         "Hardy Lake Provincial Park",
  "trail_association_website": "www.ontarioparks.com/park/hardylake",
  "permitted_uses":            "Hiking or Walking",
  "trail_length_km":           9,
  "on_road_flg":               "No",
  "location_accuracy":         "Within 10 metres",
  "description":               "Hardy Lake Provincial Park Trails provide hiking access to the shores of both Hardy Lake and Lake Muskoka. …",
  "geom_geojson":              {
    "type":        "MultiLineString",
    "coordinates": […]
  }
}
Who uses it

Where this layer earns its place.

Real estate

Trails near home

Show the hiking, cycling and ski trails within walking distance of a listing. It is a strong lifestyle signal in suburban and cottage markets.

Outdoor & fitness apps

Trail discovery

Let users find trails by activity and see who maintains them, with a link to the organization.

Municipal planning

Active transportation networks

Map off-road cycling and walking routes across municipal boundaries to find gaps.

Tourism

Activity-led itineraries

Build regional guides for hiking, snowshoeing or cross-country skiing from one source.

Related layers

Works well with.

Every environmental layer shares the same API key, coordinate system and response conventions. Combine them in one integration.

Frequently asked questions

Common questions about the Trail Data API.

What trail data does the API provide?

Ontario Trail Network segments as GeoJSON lines, with trail name, managing organization and website, permitted uses, length, an on-road flag, a description and positional accuracy.

Which activities can I filter by?

Any listed use, including hiking or walking, cycling, cross-country skiing, snowshoeing, equestrian, portage, paddling, ATVs, snowmobiling and wheelchair-accessible trails.

Where does the data come from?

The Ontario Trail Network (OTN) segment dataset published through Ontario GeoHub, with trails contributed by organizations such as the Bruce Trail Conservancy, Ontario Parks, municipalities and conservation authorities.

Is trail length per segment?

Not always. trail_length_km is the published length of the trail, and for long trails that can be the whole route: a Bruce Trail section record carries 900 km. Measure the geometry if you need the length of one segment.

Does it cover trails outside Ontario?

Not today. This layer is Ontario's trail network.

How do I get access?

Request an API key from the dashboard or book a demo. Every request sends the key in the Api-Key header. Pricing is usage-based.

Data sources

Neighbourly normalizes public open data into one schema. Source licences and attribution apply; see our terms.

Add trail data to your product.

Get an API key and query this layer today, or talk to us about coverage and volume.