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

On https://overpass-turbo.eu/ I am using the tag request clause "bridge" not just bridge, so shouldn't it limit it to bridges that have that key, yet many or most of results show man_made=bridges in listed tags when I open up from results map, but not key Bridges tag. Example is the famous Brooklyn Bridge. There are only approx. 60,000 man_made=bridge in OSM yet it seems they all show up under bridge key search, yet bridge has millions in OSM. Can someone explain? https://www.openstreetmap.org/way/375157262

asked 28 May '19, 11:44

philip's gravatar image

philip
26346
accept rate: 0%

edited 28 May '19, 11:47


It looks like overpass turbo's wizard translates "bridge" to man_made=bridge as shown here:

/*
This has been generated by the overpass-turbo wizard.
The original search was:
“"bridge"”
*/
[out:json][timeout:25];
// gather results
(
  // query part for: “bridge”
  way["man_made"="bridge"]({{bbox}});
  relation["man_made"="bridge"]({{bbox}});
);
// print results
out body;
>;
out skel qt;

You probably want to try "bridge"=*

permanent link

answered 28 May '19, 11:54

EdLoach's gravatar image

EdLoach ♦
19.5k16156280
accept rate: 22%

Yes, that did it! Thank you. I thought that I was looking at all key=bridges but I was actually looking at man_made=bridges. But that is really strange they do that automatic modification of search when person uses the correct clause, no? The one you provided doesn't even seem to be in tag request clause section here. Or maybe I need to read it more thoroughly. https://wiki.openstreetmap.org/wiki/Overpass_API/Language_Guide Thx again.

EDIT but I just noticed something else...when I search by Man-made=bridge the tag "Bridge=yes" does not show up on Brooklyn bridge info on left, yet when I search your new search it's visa versa...man_made=bridge does not show up on left, only bridge=yes. I had assumed it showed all tags over there? Seems to only show tag you were looking for and a few others.

(28 May '19, 12:03) philip
1

The left panel only displays the query. It contains only the tags you are searching for. Or better the tags which the overpass turbo wizard thinks you are searching for. To see all tags of the found objects you have to look at the results, not at the query.

(28 May '19, 13:36) scai ♦

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:

×228
×22

question asked: 28 May '19, 11:44

question was seen: 1,564 times

last updated: 28 May '19, 13:36

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