A simple application that reads public transit stops from a given stops.txt file, creates a GeoJson file, and plots them on Google Maps.
Run the geojson_generator.py
script to generate stops_geojson_output.js
file.
python geojson_generator.py stops.txt
- Python3
- SciPy package
Once the stops_geojson_output.js
is generated successfully by the Python script, just open the display_geojson_in_map.html
file in a browser.
You should see a google map with stops marked and a Polygon drawn around the marked stops.
A number of improvements could be done. For example, instead of loading GeoJson as a JavaScript callback, we could load it as plain GeoJson.