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

Hi, I'm a newbie here and recently I started tu read about osmdroid for develop an android app using OSM but I need to use the transpor layer of my country for obtain routes (subway routes) and I don't know if it's possible to do that. I'd like to get the info about the coordinates,etc. of the subway routes.

Thanks in advance ;)

asked 14 Mar '13, 19:04

Haunterck's gravatar image

Haunterck
11112
accept rate: 0%


From your description I conclude that you are actually interested in the transport data and not the transport layer. The transport layer is just one possible representation of the data and contains only a subset of the original information. You will have a hard time getting things like coordinates, station names etc. from a rendered image.

To obtain the actual data you can either get the whole planet or a specific extract which seems better suited for your case. Another possibility is to download only the data relevant for your specific purpose by using the Overpass API. The big advantage is that you have to retrieve and process way less data than with a full extract.

OSM's data currently consists of three different element types: nodes, ways and relations. These elements have additional tags used to describe them. The elements and tags you are interested in are described in our wiki and particularly consist of route relations and public transport tags.

To extract these specific objects from the data you can either use osmosis/osmfilter when having the full planet or an extract, or directly pass your filter to the previously mentioned Overpass API.

permanent link

answered 15 Mar '13, 08:10

scai's gravatar image

scai ♦
33.3k21309459
accept rate: 23%

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:

×181
×62
×2

question asked: 14 Mar '13, 19:04

question was seen: 7,119 times

last updated: 15 Mar '13, 08:10

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