Hey. I’m trying to get bus routes and station positions on those routes in my iOS application. I’m not going to display the route as a line, just the stations, but anyway I need to know which station belongs to which route. I’m using Xapi with URL like
. It’s an approximate bounding box for Copenhagen, but I’m only getting a couple of Ways with each containing a couple of nodes. My questions are:
I’m not sure my query is good. Can anyone comment on it? It obviously returns data, so the syntax is correct. By good I mean, the query that will return bus lines in the desired bounding box.
Is there an easier way to tag a city area? I’m not sure if my bounding box coordinates.
When I receive the data about routes, I’m not actually sure if my query is wrong or if there is so little data about routes on the server. Is there a way to check for all data except pulling the whole database?
I guess there isn’t much data about bus routes in Copenhagen. I’ve tagged it on the map using overpass turbo and tried different queries, but I got so few results. I’ve tried different tags query params for both nodes and ways like public_transport, busway with regv=“.”, Type(route), highway(bus_stop) , but it gives only two or so ways with 10ish nodes each.
Hey. I’m trying to get bus routes and station positions on those routes by using Overpass turbo. I’m going to display the route as a sequence of bus stops (represented by their coordination.)
Could you please guide me how to solve this query.
Thanks in advance,
part of the query find the area on the side of the way where passenger wait for the bus.
If you rather want to retrieve the position on the way where busses stops, you can replace these part of the query with:
.stations out center ensures that you always got point coordinates out.
I used the aforementioned query, for retrieving the bus routes. Each bus route is retrieved as a sequence of ways and bus stops. But when I plotted the resulted routes it seems that the sequence of ways is not matching. BTW my other question is that some ways are represented as having forward or Backward roles, where some other have no “role”. What is the difference between roles. Thank you
I have used the aforementioned query to retrieve the bus routes based on the sequence of bus stops and ways. Each route is presented as a sequence of ways. Each way may have one of these three roles" Forward" ,“Backward” or without any role. My question is that what is the difference between these roles. BTW, If there is any way, I retrieved the bus routes, only based on street intersections? I need to model the movements of bus routes in a sample road network graph as a sequence of road network intersections