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

How can I get all points of all streets in an area([50,7,50.2,7.2] for example) with their GPS coordinates?

asked 06 May '14, 10:19

marianp's gravatar image

marianp
16111
accept rate: 0%

edited 08 May '14, 17:50

iii's gravatar image

iii
4.9k84082

1

What would you consider to be a "street"? A residential road would be, but what about something like a cycleway?

Do you just want a list of GPS co-ordinates for nodes that make up streets (however you define them) or do you want some idea of which nodes below to which streets?

(06 May '14, 10:31) SomeoneElse ♦
1

It might be helpful to read this link:

http://wiki.osm.org/wiki/Elements

(06 May '14, 10:34) SomeoneElse ♦

I have a 3D map and I need to draw all the roads in the area on it. That's why I need GPS coordinates of roads, streets, cycleways and so on...

(06 May '14, 15:00) marianp

As the others already say, you should have a look about our object primitives. Then you will learn that any kind of road is a way object with a attached highway=* tag and consisting of nodes that hold the geoposition itself.

Then you need to find out how you want to generate your data. You can work offline on planet extracts (e.g. using osmosis and XML files or PostGIS DBs) or if you want to query an API (e.g. OverpassAPI). After filtering, you can create an import script for your particular application that adds the line objects in your desired format/DOM.

Hint: There are already existing solutions that do 3D processing with OSM.
Keep also in mind, that tagging schemas might differ from place to place and are just somewhat 'semi-standards'. Also know that there might be 'unexpected' constellations as closed ways, area=yes full shapes and other suprises as multipolygones. So it's better to check your algorithm for a lot of different areas :)

permanent link

answered 06 May '14, 18:19

iii's gravatar image

iii
4.9k84082
accept rate: 10%

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
×255
×37

question asked: 06 May '14, 10:19

question was seen: 5,913 times

last updated: 08 May '14, 17:50

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