Comments (12)
Bus routes - Looks like the link has moved to https://uci.nus.edu.sg/oca/transport-logistics-carpark/getting-around-nus/ π€ - also I don't see any routes info with coordinates. This might be a little bit difficult...
I created 2 maps for the nus bus routes. Google My Maps limit layers with driving routes so I had to split to 2. The maps use bus stop coordinates from http://nextbus.comfortdelgro.com.sg/testMethod.asmx/GetBusStops?output=json and the routes are made by manually linking the stops of each one using the "add driving route" feature. Note that the maps were made 10 months ago, so some of the routes might be outdated.
https://drive.google.com/open?id=12_j-wc4SFZ6buYzA5BMopj9iK4H-dbkR&usp=sharing
https://drive.google.com/open?id=111X4zI5LSVSB7eUwNEX3XR6M_NwAm-ZT&usp=sharing
Let me know how I can help π
P.S. Hi fellow CS2103 student @liaujianjie
from busrouter-sg.
Hey guys. I'm the 40th NUSSU EXCO Deputy Welfare Secretary for Internal Shuttle Bus matters. This seems like a very interesting project - do let me know if I can help in any way at [email protected]!
By the way, you guys might want to check out the UCI website. They've updated the maps yesterday, replacing the previous graphic (which was just a list of stops) with an actual diagram overlaying the route and stops onto a street map.
from busrouter-sg.
seemed like not much progress from here, can i work on this one?
from busrouter-sg.
Hmm this looks like a 3-step work @liaujianjie
- Bus stops - can start by writing the scraper script, like
tasks/fetchStopsLTA.js
(or anytasks/fetchStops***
files), which by right should generate a file likedata/3/stops.nus.json
with almost the same data format. I think if these bus stops are not in the current list of stops, maybe will need to put in more info like bus stop names. The rest of the work I'll handle it :) - Bus arrivals - will need to be done on https://github.com/cheeaun/arrivelah instead. Should be straightforward if can map all the values together.
- Bus routes - Looks like the link has moved to https://uci.nus.edu.sg/oca/transport-logistics-carpark/getting-around-nus/ π€ - also I don't see any routes info with coordinates. This might be a little bit difficult...
from busrouter-sg.
@liaujianjie data/3/routes/nus/...
looks good to me π
Seems fine to me also if you use the road name as the stop name, since it's better than no names at all π
from busrouter-sg.
I'm willing to work on this if pointed in the right direction. π
from busrouter-sg.
@hidingmode Thanks, that's super helpful!
@cheeaun Since the routes data isn't provided as an API from elsewhere, should I just plonk the data from @hidingmode into data/3/routes/nus/...
?
Edit:
Also, the data from the API above doesn't provide the road name. So my current implementation re-use the bus stop name for the road name:
{
"LT13-OPP": {
"BusStopCode": "LT13-OPP",
"RoadName": "Ventus (Opp LT13)",
"Description": "Ventus (Opp LT13)",
"Latitude": 1.29530000686646,
"Longitude": 103.770599365234
}
}
Are we ok with this?
from busrouter-sg.
I've been pretty busy with school and work lately, gonna try wrap this up this week!
@RyanChng Hey, thanks for offering to help! I can't seem to find the map you mentioned about on the UCI website. Do you mind sharing the link to it? Also, it would be great if there's an official API for the bus routes, is there any?
from busrouter-sg.
Oh, the link Iβm referring to is https://uci.nus.edu.sg/oca/transport-logistics-carpark/getting-around-nus/ (sorry posting from mobile); youβll need to click βinternal shuttle busβ and then hit the links for the bus routes (uploaded as PDF maps). For API for bus route Iβm still not sure. Might exist but on comfortdelgro's end.
from busrouter-sg.
Also, it would be great if there's an official API for the bus routes, is there any
@liaujianjie looking at http://nextbus.comfortdelgro.com.sg there seems to be an endpoint named GetActiveBus
for routes, but it requires a token to access. Not sure if @RyanChng has access with the token?
from busrouter-sg.
Oh @hidingmode sorry I wouldn't have it, probably only an employee of CDG would!
from busrouter-sg.
Closing this (and the PR).
- The API seems like no longer there?
- The data collection work has been ejected to a separate repository π https://github.com/cheeaun/sgbusdata
- Anyone looking forward to work on this can start a new issue/discussion there.
Thanks π
from busrouter-sg.
Related Issues (20)
- Service 141 has wrong route line HOT 1
- 167e wrong route HOT 3
- Location with Firefox Preview HOT 1
- Debug mode (alt mode) gets stuck when Alt-Tabbing
- Route updates, 2021
- Option/feature to show bus routes in text bubbles/pop-ups, for all bus stops HOT 3
- Freezes on Firefox Android HOT 1
- Multiple bus routes
- Bus stop routes overview: colours distinguishing up/downroute HOT 2
- Allow rotation when interacting with the map HOT 2
- Bus arrivals do not differentiate between directions/visit number HOT 3
- How generate the routes.min.json file HOT 1
- Roads seem to be missing? HOT 6
- Backporting functionalities to the old version HOT 1
- Shareable url for bus stop favourite bus
- Route alignment issues
- Add new NS rides HOT 1
- iOS 16.4 web push notification
- Preview selected route in WhatsApp, Telegram, etc. instead of static map image HOT 1
- Possible feature: Change route colours on multi-route mode
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from busrouter-sg.