ANUSHKA BAONI AYUSHI AGARWAL ARJUN DABRA SHUBHAM KHANDELWAL CHALOBEST PROJECT ANUSHKA BAONI AYUSHI AGARWAL ARJUN DABRA SHUBHAM KHANDELWAL
BEST The Brihanmumbai Electricity Supply and Transport (BEST) Undertaking is the civic transport and electricity provider public body based in Mumbai, India.
BEST DATABASE
ROUTE ATLAS
ROUTE DETAILS
ROUTE MASTER
DATA WRANGLING
OUR WORKFLOW ER Diagram Data Validation and pre-filling the missing data Joining Route Atlas and Route Master Generating valid GTFS Deploying Open Trip Planner
E-R DIAGRAM
E-R DIAGRAM
DATA VALIDATION
-removes entries with extra decimal points. QUERIES select span from routeatlas where span like ('%.%.'); -removes entries with extra decimal points. select time from route_at where time similar to '%([a-z]|[A-Z])%'; -checks for random strings in the ‘time’ column.
JOINING THE TABLES
We applied ‘SOUNDEX’ algorithm to join Route Atlas with Route Master. DIFFERENCE FUNCTION
SOUNDEX FUNCTION
GTFS
WHAT IS GTFS? A data standard developed by Google used to describe a public transportation system. WHY GTFS? We are using gtfs as it is a standard tool used by many API’s like OTP.
Structure of GTFS Agency_id Agency_name Agency_url Timezone Stops.txt: Collection of csv files with .txt format. Agency.txt: Agency_id Agency_name Agency_url Timezone Stops.txt: Stop_id Stop_name Stop_lat Stop_lon
Routes.txt: Route_id Route_shrt_name Route_long_name Route_type Trips.txt: Trip_id Route_id Service_id Calendar.txt: Service_id Monday Tuesday ….. Sunday Start_date End_date
Stops.txt Stop_times.txt: Trips.txt Trip_id Arrival_time Departure_time Stop_id Stop_sequence Trips.txt Stops.txt
VALIDATION REPORT OF GTFS FEED
PLAYING WITH API’s
GTFS TOOLS There are many API’s that use gtfs feed as source and help in routing and scheduling possible easily. Some of them are open-trip- planner,Graphhopper, Timetablepublisher etc.
DEPLOYING OTP
WHAT IS OPEN TRIP PLANNER? An open source platform for multi-modal and multi-agency journey planning. OTP relies on open data standards including GTFS for transit and OpenStreetMap for street networks. Requirements : GTFS . .osm file of city
How to deploy OTP? For depoloying otp, you have to follow just 3 steps: Install an otp instance (or jar file) in the respective directory containing .osm file and gtfs. Form the graph.obj file. Run the following command : java -Xmx2G -jar otp-0.18.0-shaded.jar –build /home/username/otp --inMemory
OTP INSTANCE
DJANGO APP
DJANGO APP-ADMIN PAGE
NEW FUNCTIONALITIES ADDED
FUTURE SCOPE
New data models for incorporating data for shelter codes . Android app for the project. Updating all the variants of chalobest.in website like dev.chalobest.in,chalobest.in/sta ts etc. Extending the GTFS to include other optional files also like Frequencies.txt Giving data about transfer points in the gtfs by means of transfers.txt