/SOTAFilter

Filter Summits On The Air summits for proximity to a public transport stop

Primary LanguagePythonMIT LicenseMIT

SOTA by Public Transport

This program is used to filter Summits on the Air locations against public transport infrastructure to find summits that are potentially accessible via public transport. The particular use case is my experience with journey planners that will frequently fail to find a public transport route from you to the summit, but if you can locate a nearby public transport stop and ask the planner to navigate to that everything works splendidly.

Please note: The existence of a bus stop does not indicate the existence of a bus. It is vital to verify your travel plans before setting off

Usage

Download the stops data for the desired area:

The program can produce a CSV file from an origin latitude and longitude (these are presently mandatory) and orders the list of summits by distance to that origin location, and then distance to stations in order of distance to that summit. For this mode run the script with:

SOTAfilter.py -f csv [-v] {gb,ni,ie,no} stop_file summit_file region

There is also a index.html file which uses leaflet (https://leafletjs.com/) to display results on an interactive map. To generate the JSON for the map, run the script as follows:

SOTAfilter.py -f json {gb,ni,ie,no} stop_file summit_file region > region.json

Index.html will perform an AJAX request to load in the regions.json file, and from there allow the user to load in region specific data. Clicking on a summit will expand the associated stops.

To do list: