Git Product home page Git Product logo

atellas23 / igo-ap2 Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 14.55 MB

University course (AP2) programming project. Implemented a route planner that works within the city of Barcelona, Catalonia, optimizing routes based on the real time congestion state of every tracked street in a Barcelona OpenData dataset. This project also counts with a Telegram bot to assist in the usage of the python module.

Home Page: https://t.me/AlexPereSuperbot

License: MIT License

Python 100.00%
python route-planning real-time-database telegram-bot

igo-ap2's Introduction

iGo

Drive in no time through the city.

DescriptionHow To UseDownloadCreditsRelated

Description

iGo is designed to calculate time-saving car routes through the streets of a city. It can calculate these routes by using only the length and maximum speed of a street, but you will make the most of it if the city in question has an open data policy about street congestion state.

This project was originally designed and intended to work with data from Barcelona, Catalonia.

How to use

You can use iGo either through the igo.py module or through the Telegram bot implemented in bot.py, in the following link (if the bot is running).

iGo

iGo is the heart of the interface, every function has been thoroughly documented in the igo.py file plus we consider our code to be very understandable for every user.

Bot

At first, the Bot downloads all the information needed which may take a few seconds. If two go or map type commands are executed within a time gap greater than five minutes a new download of the traffic data will be performed. bot.py has the following functions:

  • start: start the conversation with the bot.
  • help : returns a help message containing the utility of all commands.
  • go : + Location. Returns the shortest path from your current position to the location specified. In the generated image, the red dot represents the destination and the green dot represents the origin.
  • map: returns a map that resumes the current traffic information of the city.
  • pos: + Location. secret command to fake your position.
  • pos: + “reset” erases the fake position.
  • where : returns the users current location.
  • author: returns information of the authors.

Download

Make sure you can run python commands, copy the following lines in your terminal and execute.

git clone https://www.github.com/Atellas23/igo-ap2
cd igo-ap2
pip install -r requirements.txt

Credits

This interface is created by Àlex Batlle and Pere Cornellà.

Related

Jordi Cortadella and Jordi Petit: https://github.com/jordi-petit/ap2-igo-2021

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.