This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

how to extract the bus routes?

0

i can't download the bus routes, could you help me? thanks

asked 18 Nov '15, 20:36

pable%C3%B1o89's gravatar image

pableño89
16113
accept rate: 0%

1

Can you explain in a little more detail what you are trying to do?

(18 Nov '15, 21:07) SomeoneElse ♦
1

Hello, i need to export the public transport of Málaga,Spain. But when i click in export button (https://www.openstreetmap.org/export#map=15/36.7238/-4.4105&layers=T) , it appears something like that(http://api.openstreetmap.org/api/0.6/map?bbox=-4.5032,36.6774,-4.3288,36.7616). I'm doing a transport task and i only need the the bus routes in shp or something for arcGIS. thank you

(19 Nov '15, 09:00) pableño89
1

In that case, see my answer below. The only thing left is to find a way to convert to shapefile. I think the most convenient would be to export as a GeoJSON and then use the free QGIS (similar to ArcGIS but more flexible) to convert to shapefile.

(19 Nov '15, 10:54) joost schouppe

2 Answers:

6

As @SomeoneElse said: if you don't explain what you have tried and what you are trying to achieve, it's hard to answer questions. I'll make the assumption that it's a simple question.

If you don't need a lot of bus routes (e.g. only bus routes in Colombia), you could use Overpass-turbo. You can find the data model here. Overpass-turbo is almost self explanatory thanks to the wizard. Here's an example for getting bus rout relations: http://overpass-turbo.eu/s/cOK You can then use Export to download in a number of data formats.

answered 19 Nov '15, 08:14

joost%20schouppe's gravatar image

joost schouppe
3.4k245087
accept rate: 12%

0

https://overpass-turbo.eu/

[out:json][timeout:25];
// gather results
(
  // substitute the id the relation(e.g. route) that you want to query
  relation(1895592); >>;
);
// print results
out body;
>;
out skel qt;

answered 01 Jun '23, 14:18

a_g's gravatar image

a_g
11
accept rate: 0%

edited 01 Jun '23, 14:20

Source code available on GitHub .