Coder Social home page Coder Social logo

kaihendry / ltabus Goto Github PK

View Code? Open in Web Editor NEW
33.0 5.0 9.0 622 KB

Closest bus stop arrival times for Singapore

Home Page: https://bus.dabase.com

License: MIT License

Go 59.30% Shell 2.88% JavaScript 13.10% CSS 4.29% HTML 14.18% Makefile 6.26%
bus travel singapore transport datamall timings web mobile

ltabus's Introduction

ltabus's People

Contributors

dependabot[bot] avatar kaihendry avatar semgrep-bot avatar yleong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ltabus's Issues

Bus count wrong

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>

Cookie is set twice?

❯ 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

Bus stop data URL has changed

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.

From: http://www.mytransport.sg/content/dam/mytransport/DataMall_StaticData/LTA_DataMall_API_User_Guide.pdf

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.

Introduce a colour hint for the bus stop

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.

Node JS module : Feature Request!

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!

Update to v2 API

Been annoying how LTA cut the early API

{
    "fault": {
        "faultstring": "Raising fault. Fault name : unknown-resource",
        "detail": {
            "errorcode": "messaging.runtime.RaiseFault"
        }
    }
}

What to do with bad requests?

  • path=/apple-touch-icon-precomposed.png size=19 B status=404
  • path=/apple-touch-icon.png size=19 B status=404

Not sure if mux can > /dev/null these or we should do something about them ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.