Transportr icon indicating copy to clipboard operation
Transportr copied to clipboard

Update map style to show transport lines from OSM

Open bbastin opened this issue 6 years ago • 3 comments

Acknowledgments Please check the following boxes with an x if they apply:

  • [x] The feature I want to propose would be useful for the majority of users, not only for me personally.
  • [x] I am aware that Transportr is mostly developed by one person in their unpaid spare time.
  • [x] I can help myself to get this feature implemented or know someone who wants to do it.
  • [ ] If I want to add support for a new region or country, I checked that this is already available in public-transport-enabler and know the process described on the Transportr homepage.

Is your feature request related to a problem? Please describe. The map does not feature much information regarding public transit lines. You can find railway lines when looking closely, but subway and bus lines are completely hidden.

Describe the solution you'd like

The map should feature the line data (this is available in OpenStreetMap for the most part, also often times with the appropiate colours). There are multiple map styles that feature better transit information (e.g. ÖPNVKarte, transit map from openstreetmap.org); only OSMTransport features coloured line information, though it seems very broken and also probably only displays the information over the map instead of rendering it into it.

Describe alternatives you've considered

Additional context

With a bit of guidance I might be able to implement it myself, though I am neither familiar with the structure of the app nor with Android app development past Android 4.4.

I really like the view and UX flow Google Maps provides regarding this feature. Stations that appear on the map with an icon are always clickable, and lines are rendered onto the map (at least trams, subways, light and commuter rail and heavy rail). This should be extended to busses as they often times are the only way to reach many destinations.

Laying lines over the map is already embedded into the app in the map view when navigation is active, this component could be reused. But I believe that this uses the information of the network provider/pte, this would then have to be swapped for OpenStreetMap input.

I really like the map style, adding line and station information to it would certainly increase the usefulness to me.

bbastin avatar Aug 02 '18 16:08 bbastin

Thanks for this proposal! I agree that it would be nice to have more public transport information rendered on the map.

You are right that the data from the APIs that Transportr uses is different from the map data. Let's focus here on improving the map style. Thanks for offering to help with this. It is actually not so difficult and you don't need to know programming. I left a note in ticket #467 (which is similar) for how to start. The skills you learn by working with map styles would be quite useful also for #467 if you feel like contributing twice ;)

Would you mind splitting out the proposal of clickable stations into a dedicated ticket? It is essentially a different feature (due to the two kinds of data) and should be implemented and discussed separately. Thanks!

grote avatar Aug 02 '18 21:08 grote

Yes, I will split that out today or in the next few days.

I will look into contributing to #467 :-)

bbastin avatar Aug 09 '18 11:08 bbastin

How about OpenRailwayMap?

erebion avatar Jan 22 '24 14:01 erebion