Bus Route Identification Algorithms and Services
Bus Route Identification Algorithms and Services
Services
Akshaya Srivatsa, Student,
th
6 Semester Telecommunication Engineering,
Vishweswaraya Technological University, PESIT, Bangalore
Problem Statement
The Algorithm
Requirements
III. All the bus routes and bus stop information must This is a table that contains a subset of all the stops
be present in a database having the following tables in the city. This table has those stops in the city
where many different bus routes intersect and these
Bus routes stops are ideal places to change buses.
This table has complete information on the different The schema is as follows
bus routes in the city. The schema is given as 1. Bus stop or Interchange point name.
follows. Assume that A is the starting point for a 2. Grid location of the stop.
bus.
1. Bus Number or the Route Number, say B The Routes table (Table III) is based on the fact that
2. Total time of journey between Bus Stand A a given bus in many cities in India (like Bangalore
and Bus Stand B. city) keeps shuttling between the same two bus
3. Total distance of the journey between Bus stands all day (Bus Stand A and Bus Stand B) and
Stand A and Bus Stand B. visits all the stops in its route in its journey.
4. Average time between the buses leaving the
bus stand A (avg_to). Every bus stop is best understood when viewed as a
5. Average time between the buses leaving the point in a 2-dimensional space, where the space is
bus stand B(avg_fro). the city itself. We can either associate a co-ordinate
6. All the time-ordered stops the bus B visits as with every stop or employ a “Grid Square
it plies between bus stand A and bus stand B map”[04]. To identify the routes and stops visited
all day. between a starting point and an ending point, it is
better to employ the latter system.
Example: For route number ‘10’, “K R Market” is A simple definition of Grid Square map is given
Bus stand A and “JP Nagar 6Th Phase” is Bus stand below.
B and all the stops it visits are stored as shown “A Grid is a set of numbered rows and lettered
below columns (or vice versa) superimposed on a map to
identify a given small area on the map or the
:K R MARKET:MAHILA features of the map”[05] .
SAMAJ/OKKALIGARA ‘Picture 3’ is an example of a grid square map for
SANGHA:TAXI STAND:SOUTH END Bangalore city.
CIRCLE:JAYANAGAR 5TH
BLOCK:JP NAGAR 24TH MAIN 9TH Bounding
Rectangle
CROSS:JP NAGAR 6TH PHASE:
ROUTE 2
12 , 211J , 22.9 , 12E , 14A , 210CA , 210E , 211B , 211L , 213N , 215G
, 215J , 215N , 215O , 215R , J14 , P21 ,
The Buses From "BINNY LAYOUT" To "SWASTHIK" are as follows
>>>
The routes where you have to change once are as follows. 63A ,
The Buses From "SWASTHIK" To "KEMPEGOWD BUS STATION" The Buses From "BINNY LAYOUT" To "NAYANDA HALLI" are as
are as follows >>> follows >>>
104 , 105A , 276N , 98E , TR6 , 87B ,
ROUTE 3
ROUTE 1
ROUTE 2
Conclusion References
India is a country of a billion people. This is one of [01] Bangalore Metropolitan Transport Corporation
the biggest economies in the world. As a matter of Official Website.
fact, the number of commuters by bus or any other http://www.bmtcinfo.com/
public transport system in India exceeds the numbers [02] Grid Plan Wikipedia, the free encyclopedia
of other developed and developing countries. This http://en.wikipedia.org/wiki/Grid_plan
country needs solutions for mass transport systems. [03] Short Message Service, Wikipedia the free
For bus transport systems, we have created prototype encyclopedia
server software for providing bus route information http://en.wikipedia.org/wiki/Short_message_service
to travel from point A to point B using Bus Services [04] Grid Square Map Definition-
within the city. The solution becomes highly useful thefreedictionary.com
when integrated with SMS services, because SMS http://www.thefreedictionary.com/grid+coordinate+s
has taken over the mobile market by a storm and the ystem
future of many services lies in mobile integration. [05] Grid Square Map Definition
The solution can be extended in many ways with http://en.mimi.hu/gis/grid.html
additional features and can be applied to similar [06] Minimum Bounding Rectangle- CLIM
problems such as car sharing, pooling, GPS tracking http://www.mikemac.com/mikemac/clim/bboxes.ht
etc. The next logical step would be build a robust, ml
high performance system that can serve the hapless [07] Metric- Wikipeida the free encyclopedia
commuters of any large city making their daily http://en.wikipedia.org/wiki/Metrics
experience more acceptable. [08] Wikipedia, free encyclopedia
http://en.wikipedia.org
[09] Soundex Algorithm Wikipedia
Acknowledgement http://en.wikipedia.org/wiki/soundex
I would like to thank my friend Anush Shetty, (CS [10] Metaphone Spelling Algorithm Wikipedia
8th Semester PESIT), for introducing me to the http://en.wikipedia.org/wiki/Metaphone
problem. I would also like to thank Mr Bhosekar, [11] Creating GUI with JFC Swing
(Former Division Controller Of BMTC), for giving http://java.sun.com/docs/books/tutorial/uiswing/
me insight into the grid system and BMTC for [12] Screem Scraping Wikipedia
providing me with the bus route information of http://en.wikipedia.org/wiki/Screen_scraping
[13] NowSMS SMS/MMS Gateway
Bangalore city. I would also like to thank Mr.R
www.nowsms.com/
Vekat Varadhan (Senior Architect, Hewlett Packard) [14] MySQL OpenSource DBMS
for helping me with coding techniques and tips. www.mysql.com/
Lastly and most importantly, I would like to thank [15] Dijkstra’s Algorithm
late.Bhanu Bhaskar ( Professor, PESIT) and Dr.
Picture 4 – BMTC’s Route Map Of Bangalore
Courtesy: BMTC and Integra Systems
(Black Mark Over A Stop means that there is no Information about the Stop in the database’)
Screen Shots Using Swing Interface