Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stayfe

Flask server for computing safest path between two points. Provides a web interface for users as well as an API endpoint for programmers to compute the safest path.

Requirements

  • python 3
  • flask
  • googlemaps
  • polyline
  • numpy
  • pandas
  • scikit-learn
  • flask-googlemaps

Endpoints

Run the server:

python run.py

Get crime data between two points:

GET /crimes/:src&:dst
e.g. http://host:port/crimes?src=-122.445,37.74&dst=-122.42,37.715

Find the safest path between two points:

GET /path/:src&:dst
e.g. http://host:port/path?src="Hillegaas Avenue, Berkeley, CA"&dst="Soda Hall, Berkeley, CA"

About

Finding safest path between two points

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages