Used begin/end geocoded lat/lng to get directions for DOT data
thequbit opened this issue · comments
Use MQ to get directions for geocoded lat/lng pairs. The output will be 64bit encoded strings. These will need to be converted into lat/lng lists.
I know we had some trouble with encoding and decoding mapquests, directions data but it looks like they have a web page doing this with out most of the trouble that we had to go to. Given, they are doing some funky script injection so it may take some time to figure out exactly what they are doing but they are showing the geojson that we want so it may be worth looking into.
We went down this path - it didn't return the data we were interested in (for some reason...). This script works: https://github.com/hhroc/traffairious/blob/develop/tools/mqroute.py
Need to split it out into different scrips to take things one step at a time (issue #23, #24, #25).
Done. Data cane be found here:
https://github.com/hhroc/traffairious/blob/develop/data/routes2011shapepoints.json
Script here:
https://github.com/hhroc/traffairious/blob/develop/tools/createdirections.py
Closing.