Skip to content

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.

License

Notifications You must be signed in to change notification settings

Atellas23/igo-ap2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages