Quantcast
Channel: OpenGeofiction diary entries
Viewing all articles
Browse latest Browse all 2382

Public Transport Viewer

$
0
0

In this comment I mentioned that I altered the Route viewer to make it more suitable to public transit. Since it's getting messy I decided to put everything on a separate diary entry.

Using the PTV

https://austinhuang.me/ogf-route-relations.html?map=C/10/-10.15050/167.09314

The Skype and Share buttons are just there - You can adblock it if you want.

Differences from the original

  • No non-public transport routes - That means no highway routes, no electric lines, no ferry. Bus, Train, Tram, Light Rail, and Subway only.
  • Works from Zoom 8 instead of 10!
  • stop:1 (Or whatever number other than 1), stop_entry_only and stop_exit_only are rendered as stops instead of being ignored.
  • platform and platform:1 (Or whatever number other than 1) are ignored instead of being rendered.
  • Displays parent relations - That means you can see what lines are available at a stop/station!
  • Show lines of specific transport types!
  • Option to show 1 specific line! (Press "Reload" to restore to all lines)

Special tags

When you click a stop, it shows all the lines, with their background coloured by default. If you want to colour the text instead (Invert the colour), you may add ogf:invert=yes to the relation. You may want to use this feature to differentiate types of lines (Rush-hour, Express, Different frequency, etc).

Can I improve this?

Sure, it's on GitHub.


Viewing all articles
Browse latest Browse all 2382

Trending Articles