Average speed per way
This page shall collect thoughts about the possibility to derive average speed data for osm ways from uploaded tracks.
Contents |
Which tracks
There are a lot of tracks stored in the osm database. Not sure if there is an overview but we can use
GET /api/0.5/gpx/<id>/details
to get the meta data of a track. This will give us basic information like the position (starting point?) of the track. This enables us to select the tracks we want to look at in the next step.
Qualification of tracks
With the information from the first step it is now possible to select tracks to download with
GET /api/0.5/gpx/<id>/data
This information has to be stored locally. Next we have to find out if we can use this track. We have to look for
- valid timestamps
- accuracy?
- source of the track (foot, bicycle, car, truck etc.) - maybe this has to be derived?
- gaps
- direction (sometimes you have diferent speeds in each direction)
Ideally (in the future) an uploaded track is taged with
- vehicle (car(car fast, car slow, car), bike, foot, heavyGoodsVehicle) used
- accuracy
- type of day (weekday(other(monday, tuesday, ...), friday, holiday), weekend)
- type of time (day(afternoon, noon, morning), night)
Use of tracks
Once we decided we can use a track we have to
- calculate average speeds (for certain times/weekdays)
- assign those speeds to ways in osm data
Of course the last point here will be the challenge!
Use of data / upload
Once we have such derived data we can tag the ways according to the found speeds.
- Tags? (general, time specific, vehicle specific)
alternatives
web-service
As an alternative we can have a web-service collect this kind of information and allow it to be queried.
- An incomplete, simple proof of concept is Speedcollector.
- documentation: Speedcollector
- submit and query here