Giter Club home page Giter Club logo

project---navigator's Introduction

Route Recommendation Application

Team member: Chuwei Chen, Shuhao Hu, Zhaowen Zhou, Zhaozhong Qi

Boston University SPRG2021 EC504 - Advanced Data Structures - Final Project

With geographical data and shortest pathfinding algorithms, we created an application that can map out the routing paths between two places in real time. For the main idea of this project, diaparte shortest path algorithms has been approached by three different perspectives, they are respectively the classical Dijkstra's, Bell-Ford, and A* algorithms.

We used python packet OSMnx (Credit to Geoff Boeing!) for this project.

Please follow the following instructions (MacOS or Linux) to run the project:

=== Install our project Git repo ===

In terminal, enter:

git clone https://github.com/chenchuw/EC504-Final-Project.git

=== Install the OSMnx package ===

cd into the osmnx package folder

cd EC504-Final-Project/osmnx-main

Install the OSMnx package

pip install -e .
cd ..

=== Install other required packages ===

pip install geopy
pip install scikit-learn
pip install folium
pip install numpy
pip install matplotlib

=== Now, run Navigator.py ===

Enter our folder containing our source codes:

cd Navigator

Note that within this project, all locations has to be located in Back Bay, Boston, USA.

There are two ways to interact with Navigator.py (Please strictly follow the format examples shown below):

  1. Pass departure, destination points by latitude/longitude coordinate
python Navigator.py __coordinateOfDeparture__ __coordinateOfDestination__ 

Feel free to change coordinateOfDeparture coordinateOfDestination to your desired latitude/longitude coordinate.

For example:

python Navigator.py 42.3467236,-71.0796355 42.3546324,-71.0764676

List of nodes (located in Back Bay, Boston) that you can play around with:

42.351513,-71.086995

42.350897,-71.077742

42.351478,-71.075600

42.350843,-71.089478

42.351919,-71.085492

42.346796,-71.085049

42.346233,-71.078573

42.348102,-71.088705

42.347934,-71.078730

42.347609,-71.079021

  1. Pass departure, destination points by name of the location:
python Navigator.py "__NameOfDeparture__" "__NameOfDestination__"

Again, you can change "NameOfDeparture" "NameOfDestination" to your desired location's name.

For example:

python Navigator.py "lolita back bay" "first church in boston"

When the program finished, maps with plotted shortest path are saved in current folder, please open it with your browswer or enter the following command to view the path and distances, etc. Thank you! :)

open astar_map.html | open bellman_map.html| open astar_map.html 

Sample output html files (Black mark as departure and Green mark as destination):

Dijkstra_sampleOutput

Citation info: Boeing, G. 2017. "OSMnx: New Methods for Acquiring, Constructing, Analyzing, and Visualizing Complex Street Networks." Computers, Environment and Urban Systems 65, 126-139. doi:10.1016/j.compenvurbsys.2017.05.004

project---navigator's People

Contributors

chenchuw avatar zhaowenzhou avatar shuhaohu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.