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

I need to get a bus lane coordinates from Open Street Map. Is it any way to do it?

I looked into API, but in export file I can't find any suitable tags, like <busway> and etc.

asked 02 Mar '17, 08:58

Mikhail%20Sloushch's gravatar image

Mikhail Slou...
11112
accept rate: 0%

edited 05 Mar '17, 01:36

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554

Can you give an example of a bus lane that you'd like to get details for? Just go to https://www.openstreetmap.org/ , move the map to the relevant place and copy the browser's URL bar.

(02 Mar '17, 09:12) SomeoneElse ♦

Before you attempt to query information from OSM, you should learn a bit about the tagging schema. What do you mean with a bus lane ? One the the examples you see on this wiki page ? Or a street (or service road) that can only be used by busses ? In the later case it might be tagged as highway=service;access=no;bus=yes (or some variations on the access part) Or do you mean bus routes ?

When you know how something is tagged, you can use e.g. Overpass-Turbo to extract data. Alternatively you can download extracts from cities, countries or the whole planet file and manipulate the data locally with e.g. osmfilter or put everything in a PostGis database and run queries there.

You can also download OSM data directly into QGIS and do manipulations in that software.

It all depends on the geographical area, the frequency with which you want to update the data and the use you will make of the "GPX coordinates" of the bus lanes.

Please note that depending on the country/city you are interested in, the information might be complete and up-to-date, a bit out-of-date all the way to non-existing (not mapped so far) in a particular area.

permanent link

answered 03 Mar '17, 07:43

escada's gravatar image

escada
19.0k16166302
accept rate: 21%

With a bus lane I mean road dedicated to buses only. And i need to get GPS coordinates of it. And also I'm really interesting in: who adds this information into the OSM system?

(07 Mar '17, 06:56) Mikhail Slou...

OSM is contributor driven. Any contributor can add the information they want. There is no board that dictates that you have to add this or that information. So you could add this information as well (preferable after visiting a place and not by importing it from some government database.

As I said, a road dedicated to busses could be mapped with highway=service; access=no ; bus = yes. This would mean that no other vehicle nor pedestrians are allowed on that road. But in case cyclists and pedestrians are allowed, it could be mapped as motor_vehicle = no ; bus = yes. Read the wiki page on Access for more information. It depends on the local situation which access tags will be used. It is also possible that the mapper used highway=residential instead of service. O yes, people might have used psv instead of bus as well.

I also wonder how many roads are dedicated to busses. It might depend on the area you are interested in.

So with some OverPass query you can retrieve the ways. the nodes with have a long/lat. The query will have to cope with several different tagging possibiities (see above).

(07 Mar '17, 07:10) escada

There are many ways to do this. The simplest way is right-clicking on the bus lane on osm.org and select "Centre map here" and then copy the coordinates from your browsers address line.

permanent link

answered 02 Mar '17, 09:11

Hjart's gravatar image

Hjart
3.0k42656
accept rate: 18%

Unfortunately, it's not suits me, because I need coordinates of an all bus lane. With all turns. It's would be very hard to do it in this case.

(02 Mar '17, 09:21) Mikhail Slou...

How about something like http://overpass-turbo.eu/s/n9L then? (choose from a nummber of download options under the Export button.)

(02 Mar '17, 09:32) Hjart

The bus lane that you're looking at there is actually broken up into many parts such as https://www.openstreetmap.org/way/230904057 and https://www.openstreetmap.org/way/259782891 . You would be able to retrieve each of these parts using something like Overpass, but would have to do something else to join them together.

(02 Mar '17, 09:41) SomeoneElse ♦

But how can I receive a gps coordinates?

(02 Mar '17, 10:28) Mikhail Slou...

Am I right, that users usually add bus lanes into the map? And in some other city I can be not able to find any bus lane in Export file is no one added it?

(02 Mar '17, 10:38) Mikhail Slou...

It depends what you mean by "bus lane". In your example there's a service road dedicated to buses only https://www.openstreetmap.org/way/230904057 which connects to https://www.openstreetmap.org/way/4705889 , on which there is no bus lane information.

(02 Mar '17, 10:47) SomeoneElse ♦

Yes, actually, that is what I need: service road dedicated to buses only. I thought that it's also called bus lane. So, how can I get gps coordinates off it? And who adds this service roads dedicated to buses only, users or some OSM administrators?

(07 Mar '17, 06:51) Mikhail Slou...
showing 5 of 7 show 2 more comments

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:

×144
×104
×84

question asked: 02 Mar '17, 08:58

question was seen: 4,767 times

last updated: 07 Mar '17, 07:10

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