Friday, June 26, 2015

Introduction




Our project is a web site which is capable of giving bus route and details after entering start and destination cities around Colombo city area.


When we consider about people who come to Colombo city everyday, lot of people don't know how the passenger services happen here and how can they find the necessary bus to reach their destination. So they are totally destitute. Let's think the first time when we came to the Colombo. How much it was difficult to find a bus to reach our destination. How much we were destitute. So this is happen to thousands of people who come to the Colombo everyday. Some times they may come from rural areas of the country and have limited time to do their work and have to go their homes before night. So it is really helpful to them if there is method to find details about those routes and buses.

The web site works like this way. If you enter two locations (from - A and to - B) and the system first sees if it can get you from A to B using one bus, by running a simple nested query. It checks if the bus is running in the right direction (i.e. the stop number of B is greater than A) and gives you the result. This is stage 1. If this fails, the system tries to find a bus running from A to a changeover location C, and then another bus from that changeover location to B. These changeover locations are pretty well known, and are hard-coded into the system. This is stage 2, failing which the system attempts to find 3 buses (stage 3) to get you from A to C, C to D, and D to B, where both C and D are changeover locations. If, in stages 2 or 3, multiple combinations of buses are returned, the system chooses the bus combination with the lowest combined number of stops.

As a example if a person want to go to Battaramulla from Campus(near Science Faculty) the system gives results in this way

No comments:

Post a Comment