Skip to content

kns003/bbus.in

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bbus.in Stories in Ready

BMTC Bus Route Search https://www.bbus.in/

bbus.in API:

GET https://bbus.in/api/v1/search/?from={FROM_STOP}&to={TO_STOP}&how={HOW}

{FROM_STOP} & {TO_STOP} can be any of the values here:
  https://bbus.in/static/bus_list.json

{HOW} can be any of the following values:

  Minimum Number of Hops
  Maximum Bus Route Availability
  Via Terminal Bus Stations Only
  Direct Routes Only
  Shortest Distance

Example: Open below url in browser:

https://www.bbus.in/api/v1/search/?from=Banashankari%201st%20Stage/Mysore%20Bank%20Colony&to=Bande%20Nallasandra&how=Minimum%20Number%20of%20Hops

Sample Response:

{
  route5: [
      {
        bus_nos: "34D, 34F, 34H, 34S, 43, 188, 188B, 314K, TR7",
        Hop: "1",
        From: "Banashankari 1st Stage/Mysore Bank Colony",
        To: "Urvashi Talkies"
      },
      {
        bus_nos: "346F",
        Hop: "2",
        From: "Urvashi Talkies",
        To: "Bande Nallasandra"
      }
  ],
  route4: [],
  route3: [],
  route2: [],
  route1: []
}

Local Setup:

pip install -r requirements.txt
python manage.py runserver

Todo:

  • Show map of bus route on clicking any bus no.
  • Show timings of bus at the particualr bus stop

Thanks to:

Narasimha Datta: bbus.in is very much based on https://www.narasimhadatta.info/bmtc_query.html

About

BMTC Bus Route Search API & Web App

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 84.3%
  • Python 12.5%
  • CSS 3.2%