Proving that a Web application sucks less than a native App to get bus arrival time given a bus stop!
Request for API access from https://www.mytransport.sg/content/mytransport/home/dataMall/request-for-api.html
Closest bus stop arrival times for Singapore
Home Page: https://bus.dabase.com
License: MIT License
Proving that a Web application sucks less than a native App to get bus arrival time given a bus stop!
Request for API access from https://www.mytransport.sg/content/mytransport/home/dataMall/request-for-api.html
Bus stop count: 5086 is reported in the action
❯ curl -s https://bus.dabase.com/?id=25269 | grep "bus stops in Singapore"
<li>There are 5043 bus stops in Singapore</li>
https://landtransportguru.net/bus-stops/
Perhaps advertise direction based on bus stop id's last digit?
❯ curl -si https://bus.dabase.com | grep ^set
set-cookie: visitor=visitor-1676379394424; Expires=Wed, 14 Feb 2024 12:56:34 GMT
set-cookie: visitor=visitor-1676379394424; Expires=Wed, 14 Feb 2024 12:56:34 GMT
FYI, this URL referenced in the README now returns a 404: http://www.mytransport.sg/content/dam/mytransport/DataMall_StaticData/Geospatial/BusStops.zip
It's possible that this data has now moved into the "dynamic"/API section and requires an API key.
Dataset URL http://datamall.mytransport.sg/ltaodataservice.svc/BusStopCodeSet
Description Lists details for all bus stops in Singapore (code, road, description).
When I query that though, I get a result with only 50 stops. Not sure if their API is broken or I am sandboxed.
https://developers.google.com/web/updates/2018/10/intl-relativetimeformat
Might want to rip out the JS to a separate file too and inline with a template. However I do mix in template conditional which should also be coded out.
Problem is sometimes I get confused as to which bus stop I'm at. I feel like a need a visual cue to remind me if I'm looking at the right time table. Often enough, after working out, I'm so tired, I don't realise I'm looking at the bus stop that's showing me the bus stop at home, as opposed to the one that will take me home.
Proposal, hash the bus stop and create a unique color:
There is a risk that the color choice might be unreadable or potentially too similar to the bus stops you care about.
Hi @kaihendry ,
Thank you for this. I have been using LTA bus for a while. Works really well. I am working on a project, using google maps/transit API to query BUS arrival times. But the way LTA bus works is much much better. I like the way it shows all bus in that particular stop.
I was wondering if i could request another feature/variation of this. Would you be interested in creating a node.js module for this so it can be easily imported in one of these projects?
https://github.com/MichMich/MagicMirror
https://github.com/MichMich/MagicMirror/tree/develop/modules
Cheers!
I think this would mean dropping Travis CI ....
99p latency / response time
Been annoying how LTA cut the early API
{
"fault": {
"faultstring": "Raising fault. Fault name : unknown-resource",
"detail": {
"errorcode": "messaging.runtime.RaiseFault"
}
}
}
Not sure if mux can > /dev/null these or we should do something about them ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.