Why not ask your question on the new OpenStreetMap Community Forum?


I use the Overpass API to get osm data. I use this query from this link:


Whe I ran it, it generated only nodes and ways and not relations. How can I please modify this query in order to download an osm file which containes nodes, ways and relations?

asked 30 Nov '15, 13:53

MyriamBah's gravatar image

accept rate: 0%


cross-posted on the French mailing list: https://lists.openstreetmap.org/pipermail/talk-fr/2015-November/078876.html . There I explained that when there are no relations with tags fulfilling the conditions specified in the Overpass query, no relations will be returned.

(30 Nov '15, 14:18) escada

Why are relations needed in your specific example? Your current question reads like "I need the number of legs of humans, dogs and snakes". But snakes usually don't have any legs. Likewise, amenity=bicycle_rental is usually not mapped as relation.

(30 Nov '15, 15:36) scai ♦

There are 27 mapped as relations according to https://taginfo.openstreetmap.org/tags/amenity=bicycle_rental . That may be a mistagging, but they do exist.

(30 Nov '15, 15:44) SomeoneElse ♦
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

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



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:


question asked: 30 Nov '15, 13:53

question was seen: 3,036 times

last updated: 30 Nov '15, 15:47

powered by OSQA