Giter Club home page Giter Club logo

montreal-snow's Introduction

Clearing Montréal of snow

The goal of this project is to solve a chinese postman problem and to calculate a path to clear the snow in Montréal.

Detailed explanation of how it's done :HERE

Theory:

The theoric part of the solution without any library needed in requirement.txt

python -m unittest theory/Tests/*.py

Real:

The pratical part of the solution using osmnx, networkx, pandas and numpy, plotly

First set up a virtual environment

pip install -r requirements.txt

To launch the solution please launch demo.py and specify --city and --country

Example: python demo.py --city Kremlin-Bicetre --country France

Or for Montreal use the different borough for example Hampstead: python demo.py --city Hampstead --country Canada

If no arguments are given, the default borough is Hampstead

It should open an interactive map and print the statistics for this city and country The order of roads to follow in order to clear the snow is written in the file output.txt

Interactive map:

Interactive map

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.