-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Proposer
ODI, following discussions with TrainAsONE, Forestry Commission and Ordnance Survey.
Potential users would also include Canal and River Trust and British Cycling
Use Case
As a cyclist, runner or walker I want to find opportunities to run/walk/cycle
Why is this not covered by existing properties?
The data model currently covers events and facilities there is a partially defined "Activity Opportunity" for self-directed activities like walking, running and cycling but this doesn't say how to describe opportunities to run/walk/cycle, including information on the routes.
Please provide a link to example data
Proposal
The requirements we've seen so far cover providing metadata about the opportunity as well as some level of detail around the route. Data includes:
- name of route/opportunity
- author or creator of the route
- description
- link for more information
- date/time route was published
- activity type (e.g. walking, cycling)
- surface (although this is likely to vary across the route)
- distance
- difficulty or grade, e.g. moderate, easy
- elevation or terrain
- geometry of the route, either as GPX/line and/or start/finish lat/long, possibly with segmentation of the routes
- ratings
- tags, e.g. "pushchair-friendly", "family", "forest walk"
- amenities, e.g. is parking available
- dates/times when likely to be busy
To handle this, suggest we add a new type: Route which provides the metadata to describe the opportunity. We can build on existing vocabulary to describe the majority of features of a Route.
We will also need some new terms to refer to route, elevation, distance, startingPoint, etc
Things still to discuss:
- exactly how we link to downloadable routes, e.g. GPX, etc
- walking routes often have a duration as well as a distance
Example
From Forestry Commission data. Uses a custom startingPoint property to indicate start point as detailed route information might not be available?
{
"@context": "https://www.openactive.io/ns/oa.jsonld",
"type": "Route",
"url": "https://www.forestry.gov.uk/forestry/englandeastanglianoforestthetfordforestparkgreathockhamgreenwalk",
"title": "Hockham Green Walk",
"description": "The Green Walk is a pleasant walk through the forest at Hockham. Scots and corsican pine plantations blend with mature oaks stands, rich in insect and bird life.",
"category": ["Forest Trail"],
"activity": ["Walking"],
"level": "Easy",
"distance": {
"type": "QuantitativeValue",
"value": "2.1",
"unitCode": "KMT"
},
"amenityFeature": [
{
"type": "Parking",
"name": "Parking",
"value": true
}
],
"startingPoint": {
"type": "GeoCoordinates",
"latitude": "",
"longitude: ""
}
}
Example from OS data. Uses url of a GeoShape to refer to GPX download
{
"@context": "https://www.openactive.io/ns/oa.jsonld",
"type": "Route",
"url": "https://getoutside.ordnancesurvey.co.uk/adventures/bike-exploring-electric-mountain-bike-adventure/",
"title": "BIKE EXPLORING: ELECTRIC MOUNTAIN BIKE ADVENTURE",
"description": "As part of #BigBikeRevival and #BikeWeek2018, Helen Pollard takes us on an electric mountain bike route from Castle Bolton to Askrigg.",
"category": ["Cycling", "Helen Pollard", "Yorkshire Dales"],
"activity": ["Cycling"],
"level": "Easy",
"distance": {
"type": "QuantitativeValue",
"value": "11.4",
"unitCode": "KMT"
},
"startingPoint": {
"type": "GeoCoordinates",
"latitude": "54.322112",
"longitude": "-1.9490007"
},
"route": {
"type": "GeoShape",
"url": "...GPX file...",
}
}
Related
- distance #104 - also highlights need for distance
- Discussion: Should we remove Activity Opportunity? #64 - suggests changing Activity Opportunity, this proposal would replace it with a more explicit "Route" type.