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

1
1

When using http://www.openstreetmap.org/ when I zoom in on a city I can see street lights on a junction. However they are not clearly visible due to their small size and the numerous other small symbols.

I would like to view every traffic light in a city to compare with this post which displays every traffic light in a Dutch city.

Is there a way of filtering the key to only display traffic lights, and when zoomed out?

asked 12 Mar '14, 14:24

WheelsOnTheBike's gravatar image

WheelsOnTheBike
31112
accept rate: 0%

you write "street lights" in the title. But you are not referring to lighting, right? Maybe change this to "traffic light / signals" then.

(12 Mar '14, 15:56) aseerel4c26 ♦

Yes, this is possible. For example by using the Overpass API or overpass turbo.

Here is an example using overpass turbo:

<osm-script output="json">
  <union>
    <query type="node">
      <has-kv k="highway" v="traffic_signals"/>
      <bbox-query {{nominatimBbox:Dresden}}/>
    </query>
  </union>
  <print mode="body"/>
  <recurse type="down"/>
  <print mode="skeleton"/>
</osm-script>

It will display all traffic signal for the city Dresden. If you choose to use the Overpass API instead, you will have to replace the {{nominatimBbox:Dresden}} keyword with the bounding box of the corresponding city, because nominatimBbox is an extension specific for overpass turbo.

permanent link

answered 12 Mar '14, 15:19

scai's gravatar image

scai ♦
33.3k21309459
accept rate: 23%

2

Perfect, thank you.

(12 Mar '14, 15:56) WheelsOnTheBike

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:

×107
×66
×21
×9

question asked: 12 Mar '14, 14:24

question was seen: 7,740 times

last updated: 12 Mar '14, 15:56

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