Skip to content

Instructions

ywei edited this page Oct 24, 2021 · 2 revisions

Usage on a local device with Python

Install dependencies (as listed below). Run run_gui_single.bat (Windows) or run_gui_single.command (Mac) or run_gui_single.sh (Linux).

How to set up an Autorouting web app for your area

Create an Apache web server on a Linux machine and enable Python CGI. Use OSMNX and Pickle to replace the current graph file for that of your area. Add email_config.txt, genmapslink_web.py, graph, onevehicleroutegen_web.py, send_email.py, email_contents.html, and webgui.py to the cgi-bin. Add index.html and style.css to the HTML folder. Create instruction files (routing.mp4 and usageguide.pdf) and add them to the HTML folder. In webgui.py, add your API key and change the Python interpreter (be sure to install dependencies as listed below). Change the contents of email_config.py. In webgui.py, change /var/www/html/delivery/style.css to /var/www/html/style.css.

Dependencies

  • __future__
  • geopy
  • googlemaps
  • networkx
  • osmnx
  • ortools
  • folium (for some of the testing files)

Clone this wiki locally