zbycz / osmapp

Lets make a universal app for OpenStreetMap
https://osmapp.org
GNU General Public License v3.0
199 stars 16 forks source link

clicking on platforms/stops could highlight routes going through #168

Open WebFreak001 opened 1 year ago

WebFreak001 commented 1 year ago

e.g. showing bus lines when clicking on bus stops or train connections when clicking on train stations. OsmAnd has this kind of feature listing all the routes as list, but I think visually showing them all on the map might make sense in certain situations as well, e.g. metro lines in cities. I don't think it makes much sense to visually show all connections on the map though, since sometimes they are connections that only ride once a day and/or go through a lot of cities.

Another idea is that you could show upcoming connections within the next hour or so or by specified time by the user, like done on google maps.

Examples that would benefit from this:

zbycz commented 1 year ago

Thanks, that's a great idea. Can you please share screenshots of the osmand - both the list and the highlighting?

ad upcoming connections) unfortunately, I am not aware of any open source transit database/router. I know I can ask the Prague Integrated Transport and they will send me the GTFS file (which google also uses). But this project doesn't have capacity to create a web service from those files... Maybe there some API already exists?

WebFreak001 commented 1 year ago

OSM also has the needed data in relations, OrganicMaps has introduced public transport routing that works ok right now, fully offline on phone. Will probably only get better with improvements to the data and the algorithms.

When taking the feature from google, it can currently show the routes like this:

image

image

in Google you can then also see the next departing trains when clicking on a train station:

image

OsmAnd has a list of all trains that go through that station: (google has that as well, just as unreadable as OsmAnd for large stations such as Frankfurt Hbf)

Screenshot_20230620-145543_OsmAnd~

zbycz commented 1 year ago

Thanks for the screenshots!

There are two ways how to achive some result: 1) easy, but discutable usefulness - take relations data from OSM (as osmand does i guess), which could possibly render existing relations. Overpass api could serve this data. We cant ever add times of departures with this way.

2) proper - find a service which will gather all available GTFS data and take routes and times from there.

It could perhaps make sense to start with (1) and prepare the UI+renderings. And eventually add/switch to (2). All said, i am not planning to work on that in foreseeable future. Though i would be happy to guide someone else. :)

zbycz commented 1 year ago

The public transport labels are now merged to master branch (thanks to @Dlurak).

Changes are already deployed to osmapp.org Feel free to comment if something doesnt look right 🙂

WebFreak001 commented 1 year ago

wasn't that only a partial fix? I looked at the details in the panel and I think it looks really good, but another point of this issue (which is also in the title and prominent in the description) would be also showing the routes on the map itself, so that you can visually see where trains and stuff are going

zbycz commented 1 year ago

Thanks, my bad. Reopening this issue again :-)