Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 1.29 KB

File metadata and controls

39 lines (26 loc) · 1.29 KB

Bus Tracker Surat

A live bus tracking app that shows real-time movement along popular routes in Surat, Gujarat. Built with R Shiny and Google Maps to simulate how public transit tracking works in the real world.

What it does

Watch a bus travel from Udhna Darwaja to Sachin GIDC, stopping at 10 major locations along the way. The red marker shows where the bus is right now, updating every 2 seconds. Perfect for understanding how transit apps work behind the scenes.

Quick start

  1. Install R packages:

    install.packages(c("shiny", "shinydashboard", "googleway", "dplyr"))
  2. Get a Google Maps API key:

  3. Add your API key:

    • Update api_key.R with your actual key
    • Keep this file private (never commit to GitHub)
  4. Run the app:

    shiny::runApp()

Hit "Start Bus" and watch it move! The blue line shows the complete route.

Files

  • app.R - The main application
  • bus_routes.csv - Bus stop coordinates
  • api_key.R - Your Google Maps key (keep private)

Built for a data science project, this demonstrates real-world transit tracking concepts using familiar Surat locations.