nutorbit / route-sidewalk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Route sidewalk from map image

This is just a mini-project. I created it for finding a shortest sidewalk path from some point to another point (lat, long coordinate) and it can help you to count the number of cross-road that you need if you follow this path.

Getting Started

Setup environment

  • Python environment
$ pip install -r requirements.txt
  • Selenium docker
$ docker-compose up

Running the code

$ python -m route_sidewalk.scripts.route --lat1 18.31628 --lng1 99.39592 --lat2 18.3154363 --lng2 99.3968025

Example result

  • target

  • path

  • cross-road

the number of cross-road is 4.

TODO

  • Add some result to README
  • Smooth the path
  • Support more color road

About

License:MIT License


Languages

Language:Python 100.0%