Public Transport Viewer
Posted by austinhuang on 25 July 2018 in English. Last updated on 10 January 2019.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
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 than1),stop_entry_onlyandstop_exit_onlyare rendered as stops instead of being ignored.platformandplatform:1(Or whatever number other than1) 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)
- More transport-specific details! (See Diary 2337)
- Allow you to scroll past the antimeridian AND see the lines. (See Diary 2337)
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=yesto the relation. You may want to use this feature to differentiate types of lines (Rush-hour, Express, Different frequency, etc). - You can change the width of your line by adding
ogf:width=<Number>to the relation. By default, the number is 5. Floats should work. - You can change the opacity of your line by adding
ogf:opacity=<Number>to the relation. By default, the number is 1. Floats should (and have to) work.
Can I improve this?
Sure, it’s on GitHub.
Discussion
Comment from FancyFoxy on 25 July 2018 at 02:47
I think it’s really cool! I made myself a very small bus line just to test it out: https://austinhuang.me/ogf-route-relations.html?map=C/17/-24.08131/24.09233
I think I’ll use this to make a transit system for my cities.
Comment from tule00 on 25 July 2018 at 11:41
Commenting just for mental reminder
Comment from austinhuang on 25 July 2018 at 15:39
I just pushed an update and now you can filter transport type!
Comment from Luciano on 25 July 2018 at 15:49
Brilliant. Thank you for this.
Comment from Leowezy on 25 July 2018 at 15:58
Very cool, thank you :)
Comment from Sarepava on 25 July 2018 at 16:18
I made some relations to show the bus routes in Kanton some years ago, but I think I need to go and modify to show stops and add line colours. https://austinhuang.me/ogf-route-relations.html?map=C/13/52.10988/110.99985
Comment from Taka on 25 July 2018 at 17:09
This is extremely cool, and’ll definitely help out my transit mapping once I get to it. It wasn’t too long ago that I last thought to check if there were many route relations that I could find. The only critique/suggestion I have is that lines colored differently will be displayed over-top each other. It would definitely be really useful if the lines were displayed next to each other. (although I do realize that isn’t quite as easily done as said).
Comment from austinhuang on 25 July 2018 at 17:33
This is not quite possible… However I did add 1 option called “Show only this line”, so:
Comment from wangi on 30 August 2021 at 23:33
I’ve updated the version on the server to use this: https://wiki.opengeofiction.net/util/route_relations.html