[OSM-dev] OpenStreetBrowser: Improved public transport map and other route relations

Stephan Bösch-Plepelits skunk at xover.mud.at
Wed Aug 8 20:13:38 UTC 2018


Before starting my project OpenStreetBrowser (which was a long time ago
in autumn of 2008) I just wanted to create a public transport map
(short: PT map).  Creating a PT map is really difficult and creating a
usable map is even more difficult. There are several reasons for this,
including that OpenStreetMap itself adds a lot of complexity. But it is
possible. Back then, my efforts resulted in OpenStreetBrowser 1, but the
PT map code didn't last long.

History repeated itself 8 years later, as in autumn 2016 - at a time
after OpenStreetBrowser has been shut down - I made another attempt to
create a PT map (you can still see the result on ptmap.plepe.at). From
this code, OpenStreetBrowser 3 (the current version) was born - though
with very rudimentary support for route relations: All visible relations
would be loaded with their full geometries and displayed on top of each
other - regardless of their priority. Now, only the visible parts of
relations will be loaded once (even when they are part of several
relations) and shown with their relation memberships.

So, finally I can present another iteration of public transport maps,
this time included in OpenStreetBrowser:

Many things already work:
- Ways are colored by type of the route relations
- Popups of stops and ways show list of routes
- Separate lists for visible stops and visible routes
- Route popups and details show list of stops

Still, there are some missing features:
- Stops with the same name should be grouped and labeled.
- Directions of routes are not shown.
- Hide routes which are currently out of service (derived from the
  opening_hours tag).
- Take scale of route into account.
- In route view, stops are not named when the name has to be read from a
  stop_area relation.
- Performance optimizations.

-> https://openstreetbrowser.org/#categories=pt

Other route relations
---------------------
As a by-product, also other route relations (cycle routes, hiking, ...)
are now much better supported.

The following categories have been improved / newly created:

- Leisure, Sport and Shopping -> Outdoor activities -> Mountain bike routes
-> https://openstreetbrowser.org/#categories=mtb-routes
- Transportation -> Walking -> Hiking routes
-> https://openstreetbrowser.org/#categories=hiking_routes
- Transportation -> Cycling -> Cycle routes
-> https://openstreetbrowser.org/#categories=cycle_routes
- Transportation -> Individual Traffic -> Road routes
-> https://openstreetbrowser.org/#categories=car_routes
- Infrastructure -> Railway -> Railway routes
-> https://openstreetbrowser.org/#categories=railway-routes

Please post ideas and bug reports to the Github issue page!
-> https://github.com/plepe/openstreetbrowser/issues

Find pictures on the blog:
-> https://blog.openstreetbrowser.org/node/52

greetings,
	Stephan
-- 
Seid unbequem, seid Sand, nicht Öl im Getriebe der Welt! - Günther Eich
,----------------------------------------------------------------------.
| Stephan Bösch-Plepelits  ❤ code ❤ urbanism ❤ free software ❤ cycling |
| Projects:                                                            |
| > OpenStreetMap: openstreetbrowser.org > openstreetmap.at            |
| > Urbanism: Radlobby Wien 15                                         |
| Contact:                                                             |
| > Mail: skunk at xover.mud.at > Blog: plepe.at > Code: github.com/plepe |
| > Twitter: twitter.com/plepe > Jabber: skunk at jabber.at               |
`----------------------------------------------------------------------'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 811 bytes
Desc: Digital signature
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20180808/f888e133/attachment.sig>


More information about the dev mailing list