Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lemonpi/pathtreker

Find shortest path inside Toronto
https://github.com/lemonpi/pathtreker

Last synced: 6 days ago
JSON representation

Find shortest path inside Toronto

Awesome Lists containing this project

README

        

## Pathtreker

### Setup

Download the Toronto Centerlines dataset and extract it to centerlines/

Download the Intersections dataset and extract it to centerline-intersection/

Download the Address Points dataset and extract it to address/

Download the Bikeways dataset and extract it to bikeways/

Run `pip install -r requirements.txt` to install required modules

Run these commands to serialize the datasets:
```
python picklegraph.py
python pickleaddress.py
python picklestreet.py
python picklegraph_bike.py
```

### Running Part 1

Copy `input11_short` and `input12_long` to the directory

Run `python solve.py`

### Running Part 2

Run `python return_directions.py` to start the server

Go to http://localhost:5000/static/index.html for the interface