Project shelved (archived) prior to fully working as I will not own a car for the foreseeable future.
rdfgs-mapper was written purely for the usefulness of the results it provides. The code requires a significant amount of cleanup and basic optimization to be presentable.
A tool to map rdforum.org RDFGS based on a provided route. This tool will tell you the states (including their respective rdfgs data) and counties (rdfgs data in progress) your route passes through
NOTE: currently master is not working. Please use county-dev
for now as a workaround.\
- Download the latest version of python (https://www.python.org/)
- Verify that all the required data is satisfied (including the route of your choosing!)
- Using the terminal, navigate to the rdfgs-mapper main directory 3b. If you are on windows, please follow the "windows" steps at the bottom of the readme before you continue
- run "pip3 install ." in the rdfgs-mapper main directory
rdfgs-mapper [path_to_kml_file.kml]
(States section). 500k is preferred, but smaller should work. https://www.census.gov/geographies/mapping-files/time-series/geo/carto-boundary-file.html
Direct link: https://www2.census.gov/geo/tiger/GENZ2018/shp/cb_2018_us_state_500k.zip a. Unzip this file and place it in the "data" folder, specifically as data/cb_2018_us_state_500k/[unzipped contents]
This is currently provided, but is from 2017, and is primarily for testing rather than accuracy. The current version was taken from https://www.rdforum.org/threads/59672/, then converted to xls to work with python
Here is how it's done:
a. Go to google.com/maps/d
b. click "Create a new map" in the top left. Wait for the map to appear
c. underneath the search bar, near the top of the page, there is an icon that, when hovered, says "Add Directions". Click this, and a new layer should appear
d. On the left side of the screen, there is now a Untitled layer that says "Driving". Modify the start and end to your liking, and a blue line should appear. Add as many stops/destinations as wanted
pro tip: you can drag the line to manually change the route
e. in the top left, to the right of "untitled map" click the 3 dots. A dropdown box should appear. Click "Export to KML/KMZ"
f. Click the box that says "entire map" and change it to Directions from [location] to [location]
g. Check the box that says "Export as KML instead of KMZ"
e. Download it!
This should fix any fiona/geopandas issues:
brew install glad
pip3 install glad
Make sure NONE of the following have older versions installed (you may need to manually remove older versions of python). Once done, do the following commands, in the following order:
pip install wheel
pip install pipwin
pipwin install numpy
pipwin install pandas
pipwin install shapely
pipwin install gdal
pipwin install fiona
pipwin install pyproj
pipwin install descartes
pipwin install geopandas