Youtube Link - https://youtu.be/XCsMBFTELJ8
Demo Link - https://orangebusv1-38083.firebaseapp.com
Accepted City Input ->
Ajmer
Delhi
Jaipur
Kota
Mount Abu
Udaipur
Ajmer -> Mount Abu --> won't show any result, Its open for further development to show up 3 buses (2-hop) indirect routes.
DB json -> https://jsonblob.com/3bba1389-508a-11e9-9863-51660718419d
A Vue.js project
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
For detailed explanation on how things work, checkout the guide and docs for vue-loader.
Algorithms -
Dijkstra's Algorithm, Hashing Algorithm, Haversine Formula
Efficiency -
O(1) - Direct Buses
o(n) - Indirect Buses (n represents no. of cities connected directly to a particular city)
o(1) - Others Details (Fetching Bus Time, Next Schedule etc from DB)