Git Product home page Git Product logo

route-engine's Introduction

Route engine

For Developer

brew install python python3 -V pip list pip install wheel six ortools pip install polyline requests numpy pip install Flask waitress gunicorn pip freeze > requirements.txt

Running

export FLASK_ENV=development export FLASK_APP=app.py python -m flask run -h 0.0.0.0 -p 5000

Deploy to vercel

npm i -g vercel vercel --prod

Deploy on Ubuntu

wget -qO - https://raw.githubusercontent.com/yarnpkg/releases/gh-pages/debian/pubkey.gpg | sudo apt-key add - sudo apt update sudo apt install software-properties-common sudo add-apt-repository ppa:deadsnakes/ppa sudo apt update sudo apt install python3.9 python3.9 -V

sudo apt-get install python3.9-distutils curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py python3.9 get-pip.py

git clone https://github.com/lucastruong/route-engine.git cd route-engine

sudo apt-get install python3.9-venv python3.9 -m venv ./venv tree venv

source ./venv/bin/activate deactivate pip install wheel six ortools pip install polyline requests numpy pip install Flask waitress pip list

Running on Ubuntu

cd route-engine source ./venv/bin/activate python app.py &

ps -ef | grep app.py kill 25071

Tools

Python Online: https://www.programiz.com/python-programming/online-compiler/ Calculator: https://www.calculatorsoup.com/calculators/math/speed-distance-time-calculator.php HHMMSS: https://www.tools4noobs.com/online_tools/seconds_to_hh_mm_ss/ Polyline Decode: https://developers.google.com/maps/documentation/utilities/polylineutility Polyline Decode: https://open-polyline-decoder.60devs.com/ Distance: https://www.geodatasource.com/distance-calculator

Refs

https://developers.google.com/optimization/routing/vrp https://github.com/google/or-tools/blob/stable/ortools/constraint_solver/doc/VRP.md#drop-nodes-constraints https://stackoverflow.com/questions/63112611/vehicle-routing-with-different-vehicle-speed-google-or-tools https://stackoverflow.com/questions/62756122/how-to-limit-number-of-locations-for-each-vehicle-in-google-or-tools-route-optim https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/

Ubuntu 18.04

sudo apt update python3 -V sudo apt install -y python3-pip sudo apt install -y python3-venv python3 -m venv ./venv source ./venv/bin/activate deactivate

pip freeze | xargs pip uninstall -y pip install -r requirements.txt pip list

export FLASK_APP=app.py flask run python app.py &

route-engine's People

Contributors

lucastruong avatar

Stargazers

 avatar

Watchers

 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.