nusmodifications / nusmods

🏫 Official course planning platform for National University of Singapore.
https://nusmods.com
MIT License
588 stars 319 forks source link

Bus timings do not load #3448

Open wilsonwid opened 1 year ago

wilsonwid commented 1 year ago

Describe the bug

Bus timings at available bus stops are not displayed. Furthermore, there seems to be outdated bus services as brought up by #3407.

To Reproduce

Steps to reproduce the behavior:

  1. Go to nusmods.com/venues/
  2. Select any venue close to a bus stop, and select said bus stop.

Expected behavior

The popout should display timings for currently available bus routes.

Screenshots

image

Desktop (please complete the following information):

Additional context

There are also outdated bus stops and new services (service E and K come to mind) are not displayed.

zwliew commented 1 year ago

This issue seems to happen because the old NextBus API that we were using was taken down and replaced by nnextbus.nus.edu.sg.

Also, the new API requires auth.

jloh02 commented 1 year ago

Found an open endpoint that's used by sets.netlify.app. There are other endpoints to get the timings for each bus stop. Not sure if we want to delve into using this though

https://urchin-app-jluem.ondigitalocean.app/api/bustimings/allstops/National%20University%20of%20Singapore

SuibianP commented 1 month ago

https://github.com/SuibianP/nus-nextbus-new-api