NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

I am interested in extracting all of the bycle routes from witihn certain coordinates. I found that it could be done like thus:

http://www.overpass-api.de/api/xapi?way[bicycle=yes][bbox=32.744,35.267,33.04,35.729]

meaning I extracted all of the ways with the tag "bicycle", within a range of coordinates.

However, I've read in the OSM wiki that bike routes are represented as relations of the type "route". Upon checking the XML database of OSM, I found ways, tagged as "bicycle", that don't even exist in any relations.

What is the right way to find bike-routes? using ways or using relations?

asked 29 Aug '13, 13:44

yehudit's gravatar image

yehudit
61667
accept rate: 0%


A way tagged as bicycle=yes means a bicycle is legally allowed to travel along it. This is used for various types of roads and paths. Note most types of roads allow bicycles by default, it is not necessary to explicitly tag them with bicycle=yes. See the wiki page for access.

Also, just because a road is tagged as bicycle=yes, it may not be a nice road for cycling. eg it may be very busy, without any cycle lanes. Cycle lanes can be tagged with cycleway=lane Or a path tagged as bicycle=yes might be very rough, only suitable for mountain bikes. This can be tagged with surface, smoothness, or mtb:scale.

Whereas cycle routes are mapped using relations, tagged as type=route and route=bicycle. A cycle route may include a variety of different roads and paths, and is usually signposted in some way, it may go to a specific destination. The route may have a name or number, and is often part of a wider network.

permanent link

answered 29 Aug '13, 14:01

Vclaw's gravatar image

Vclaw
9.2k895141
accept rate: 22%

This reply should be enhanced with ways tagged "bicycle=designated" or "highway=cycleway" which are not necessarily part of a route relation

(29 Aug '13, 16:42) Pieren
3

You could get all those relations with

http://www.overpass-api.de/api/interpreter?data=(rel[route=bicycle](35.267,32.744,35.729,33.04);>;);out;

but there are no bicycle relations in your area.

(30 Aug '13, 07:09) Roland Olbricht

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×710
×236
×85
×43

question asked: 29 Aug '13, 13:44

question was seen: 9,220 times

last updated: 30 Aug '13, 07:10

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum