Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How setup for bus way? #2125

Closed
denny123 opened this issue Mar 21, 2016 · 9 comments
Closed

How setup for bus way? #2125

denny123 opened this issue Mar 21, 2016 · 9 comments

Comments

@denny123
Copy link

I need navigate for bus, what needed for this?

@daniel-j-h
Copy link
Member

"Navigation for bus" in the sense of transit routing? That is, do you have timetables for bus lines and want to optimize routes based on that? Or do you want to provide navigation for the bus driver, say, to prefer safe and still fast roads? Please elaborate!

@denny123
Copy link
Author

All, but begin from only bus for men(in OSRM have only car,foot,bicycle). I dont know how setup for other transport.

@daniel-j-h
Copy link
Member

The profiles determine whitelists / blacklists for road types, road surfaces, how to handle obstacles like barriers and access tags, and of course they determine maxspeeds. You can start by copying the car.lua to a bus.lua profile. You can the adapt for example the speed on certain surface types.

Here are further resources:
http://wiki.openstreetmap.org/wiki/OSM_tags_for_routing
http://wiki.openstreetmap.org/wiki/Map_Features

Note how OSRM does not do transit routing, though. If you check the OSRM-talk mailinglist archives there are posts about bus routing and transit routing coming up ever so often:
https://lists.openstreetmap.org/listinfo/osrm-talk

@denny123
Copy link
Author

Ok, i must create my own bus.lua from car.lua(i dunno how). May be you have your own bus.lua?
And what mean global variables(access_tags*,service_tag_restricted,ignore_in_grid,restriction_exception_tags and other)?

@MoKob
Copy link

MoKob commented Mar 21, 2016

This topic has been discussed already. OSRM is targeted at street-level routing which offers a different setting than public transportation requires.
The most obvious problem is that waiting at an intersection will not result in benefits during car routing, waiting for another bus can end up to be better in the end.
For further information, please consult the already opened/closed issues like #1961.

@MoKob MoKob closed this as completed Mar 21, 2016
@XavierPrudent
Copy link

Hello,
To reopen this subject. Given that OSM includes public transportation through gtfs, can OSRM give the real gtfs-based transport time when going by bus?
Regards,
Xavier

@danpat
Copy link
Member

danpat commented Sep 15, 2017

@XavierPrudent OSRM has no support for GTFS and will likely never have it. The routing information in GTFS is timetable/schedule based, it really requires a completely separate solution.

There are several GTFS routers available, including /~https://github.com/mapbox/nepomuk (which is working-but-incomplete).

mapbox/nepomuk#1 has a survey of open-source GTFS-capable routing engines, which is a good starting point if you're doing research.

@XavierPrudent
Copy link

XavierPrudent commented Sep 15, 2017 via email

@mehdi1171
Copy link

Hi every one
I try to create my bus.lua file and put in the path but i think, i need setup another file such as "test.lua" and etc.
Can you tell me which files need to be changed and modify ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants