Giter Club home page Giter Club logo

real-time-bus-tracking's Introduction

Real-time Bus Tracking Visualization

This project aims to visualize real-time bus tracking using the Open Transit Data API provided by the Delhi Government. It retrieves the current positions of public buses using the API and creates a video visualization to showcase the dynamic movements and scale of the transit system in Delhi. By fetching the data using the API, the Python code converts it into a JSON format and extracts the latitude and longitude coordinates of the buses. The Folium library is then used to create a map centered around New Delhi, where small red circle markers are added to represent the bus locations. The resulting map is saved as an HTML file.

To enhance the visualization, the HTML files are converted to PNG images using the Html2Image library. These images are then combined to create a video representation of the bus movements over time. The resulting video provides an engaging view of the bustling transit system in Delhi, showcasing the extensive network of buses and their movements during the day.

YouTube Video

To see the real-time bus tracking visualization in action, check out the following video:

Real-time Bus Tracking on OpenStreetMap

Click on the image to watch the video or click here to open it in a new tab.

The code was running for well over 6 hours for getting all the html files

image

Technologies Used

The project utilizes the following technologies:

  • python3: The programming language used for the implementation.
  • gtfs-realtime-bindings: A library to handle GTFS-realtime data in Python.
  • requests: A library for making HTTP requests to fetch data from the API.
  • folium: A Python library for creating interactive maps and adding markers to represent bus locations.
  • geopy: A library for geocoding and retrieving location details.
  • json: A built-in Python library for working with JSON data.
  • time: A built-in Python library for time-related functions.
  • os: A built-in Python library for interacting with the operating system.
  • html2image: A library to convert HTML files to images.
  • cv2 (OpenCV): A library for image and video processing.

Please refer to the code and instructions provided in the repository to set up and run the project. Feel free to customize and enhance the project based on your specific requirements and preferences.

real-time-bus-tracking's People

Contributors

atharv-patil 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.