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
Public Transport support for Navigation #1236
Comments
I suggest Osmand developers to use Navitia.io APIs in order to add support to public transport to the app. You could also contact Transportr developers as they are building an open source app just for public transport. |
I would also like public transport support, specifically transloc. |
Could be done hastily plugin which Transportr required? |
For Moscow buses/trolleybuses/trams you can get live info about their position by reversing ru.yandex.yandexbus API (they have an agreement with Moscow government to get such kind of info from gps/glonass trackers on transport). |
Transpotr also had once plans / ideas to implement these publictransport infos offline, which would also be very cool to have |
What about it? It would be very nice option |
Project Dead? I think first you should implement transportr, then get an API to work with bus / train routes in OSM. |
How would that work? |
might be worth mentioning, transportr for the most part uses navitia, so really the important task seems to be getting navitia support built in. thus we can't really implement transportr (being a whole app) but we can implement navitia, which is the main data source they use (they seem to suggest you can contibute data sources to navitia as needed too). they also detail a bit about the process to get transport service logos, which may be desirable. here is the link anyway, to read: https://transportr.app/contribute/ after a bit more looking into it, it turns out they use https://github.com/schildbach/public-transport-enabler/ which is presumably for the most part a wrapper for navitia? |
Another source of data than Navitia is https://transit.land. I noticed that this one is more community-based than Navitia, which often doesn't add data you found |
done some research; see #5540 #5230 #4431 #4787 #3504 looking through these issues and this one we have as data sources: navitia , transitland , travic we have as potentially useful wrappers: public transport enabler we have as potentially useful example implentations/contacts: transportr |
I don't think we need data sources, the app already has enough information from Open Streets Map. The code for the actual public transport navigation is what should be added (IMO). |
i'm pretty sure that's what we need the data sources for. one of the most important things to have, is the timetable. does openstreetmap support the addition of timetables? if we wanted to use it like that wouldn't we need to help create a standard for adding in timetables? even if we had that, there are lots of buses now, that broadcast their location and any delays, i don't think osm supports live data like that... it would be good, but i don't think it does as far as i know it has to all be static data. so external data sources are most important for live delay information |
Has this advanced at all? |
unsubscribe me
…On Wed, Dec 5, 2018, 7:53 PM Jordan Maris ***@***.*** wrote:
Has this advanced at all?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1236 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AZfEBWtz3l0GVPDGJGzDiezy45E2tZYQks5u2Hh_gaJpZM4EbtvZ>
.
|
Maybe this could be done together with https://github.com/grote/Transportr or https://gitlab.com/oeffi/oeffi |
unsubscribe me
…On Wed, Dec 5, 2018, 7:58 PM utack ***@***.*** wrote:
Maybe this could be done together with https://github.com/grote/Transportr
or https://gitlab.com/oeffi/oeffi
Either of those apps could implement an api (brouter style) and send
results to Osmand?
@schildbach <https://github.com/schildbach> also already seems to have a
project to easily implement public transport routing into any app
https://github.com/schildbach/public-transport-enabler
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1236 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AZfEBXrxv93joWxeqbie4UDWc6E9oBMLks5u2HmtgaJpZM4EbtvZ>
.
|
Use the Unsubscribe button on the right. |
It's amazing to see this get some activity! 😃 Could anyone involved please tell us if it will use OSM PT data like MAPS.ME does, or other sources, like Transportr does? |
The data is already available for last years in Public Transport, it is coming only from OpenStreetMap, so navigation will use the current data which you can see by clicking on the transport lines |
Maybe supporting external data sources in the future? |
This is also a concern for me. |
Nowadays most of Europe is covered by Hafas, which is very well supported by https://github.com/schildbach/public-transport-enabler/ |
Before including this in Osmand (very nice function) maybe it should be solved problems like #6176 because public transport navigation is more helpfull if subway and train stops shows its lines properly |
Would be nice to have also Japan transports. |
Can this be provided by something like BRouter, the bicycle routing support app? I'm asking because the Osmand team could offload the dev work to some third party developer, one that might charge for their app if need be. public-transport-enabler mentioned by @schildbach could be adapted as a support app without much effort I think; I live in the US though so that solution won't help me. |
looks promising. i hope documentation is released on what tags osmand looks for, that would probably be a great help. does it only use offline data or does it use something else to add live feed support where available? oh! also what is the save feature like, does it save the route so it can easily be searched again or does it just save that particular instance of the route? |
Only offline data which is a bit annoying
|
progress all the same. obviously there are already implementations of live routing for both osm and other services, however there's not really any example of offline routing floating around so i guess naturally offline would be a priority to firstly fill a gap and secondly because osmand already has strong offline routing |
Basic implementation is done and Public Transport now in Beta. From this point this issue will split into many other issues some of them will be must have some of them nice to have.
|
I'll move this to the related issue if/when one is made but for now without looking at the code (because I'm unfamiliar with it) this is what I seem to gather by locating and studying the example shown earlier:
|
I think routing don’t require stop positions to be present |
where i live the route relation has no stop positions and it says route is empty. the working example seen above is in an area with stop positions, so it's a guess until i've updated the local route and seen if it makes a difference |
Osmand works fine with relations without stop positions. Logically, if there are no stop positions there must be platforms |
well, i added in the stop positions and it still doesn't route, it's mystifying... it's a full v2 relation with stops and stop positions. i'll have to compare again to see what's missing. now with the stop positions rather than saying route is empty it just stalls. |
I feel that osmands stalling is unlikely to be a map issue. It just stalls (routing never completes) and slows down your phone.
BTW, does routing use "duration" ,"interval" and "opening_hours" tags on public transport relations ? Those tags are critical for good public transport.
|
well, the example place still works on the same app/map version and device... i wasn't aware opening_hours was ever used on the relations, but it makes sense. as i have no experience of how osmand is coded i couldn't give an exact answer. it LOOKS like 3.3.6 has gained some ability to process public transport duration though, but keep in mind they could just be using a profile designed to emulate a bus' speed and such. someone else may know for sure, you could also see if you get lucky searching commit history, it doesn't look like any commit detailed how the implementation works though. |
Now it is 2023, the public transportation navigation is much easier to use, but they still don't support opening_hours, so recommending night buses during the day or holiday buses during weekdays is still happening, as introduced in #6700 (also #9395) (And this kind of problem is still being reported, but I don't know how to modify the routing.xml file to solve this problem, I want to know how I can get guidance to add this feature) |
This is the only thing I'm missing in the app.
Also, thanks for all your effort. v2 looks really good :)
The text was updated successfully, but these errors were encountered: