One minute
Telegram Bicing bot
TheRealBicingBot, is a Telegram bot capable of retrieving real time information of the Bicing service. Bicing is the Barcelona bike sharing service. It is concieved as a way to help maintenance workers keep of a good bike distribucion among the different city areas.
The application is used via direct chat with the bot. The network of stations is modeled as a graph, that is created on demand based on user input specifications. The bot is capable of calculating fastest routes between origin and destination points, printing a map with the path. It’s also capable of calculating the redistribution of bikes, given the number of required bikes per station returns the cost of doing a transaction to solve it.
The bot was developed with Python, the NetworkX library was used to model the graph and StaticMap to plot the maps.
TheRealBicingBot was developed as a final project for AA2-GCED class. The complete code, with more detailed documentation and testing functions can be found at this github repository (in Catalan).