This post is a follow-up on my previous effort of improving the tool for visualizing public transport routes (from GTFS data). I wrote that I have added ability to restrict the map area by specifying the maximum allowed distance from the center. The “distance-from-center” restriction was simple to implement and, by definition, it resulted in circular area restrictions. This doesn’t play well, however, with rectangular poster formats, and result in unused space. Thus, I’ve improved implementation by computing bearing for each direction, and now area can by properly restricted with rectangular shapes. A couple posters generated with this approach are here:
Hamburg Berlin Saint-Petersburg
The fork is located here: https://github.com/dragoon/gtfs-visualizations