This project uses the RTPI API supplied by Transport for Ireland for the Luas. Obviously there are a ton of real time apps out there for iOS and Android, as well as the official Luas website - but my aim with this is to make a clean experience whilst also improving my dev skills.
The RTPI API is available here: http://luasforecasts.rpa.ie/xml/get.ashx?action=forecast&stop=STS&encrypt=false. You can find a list of the three character stop codes here ( to be added ).
The response is XML in the format:
<stopInfo created="2020-02-20T22:55:57" stop="St. Stephen's Green" stopAbv="STS"> <message>Green Line services operating normally</message> <direction name="Inbound"> <tram dueMins="12" destination="Broombridge" /> </direction> <direction name="Outbound"> <tram dueMins="15" destination="Bride's Glen" /> </direction> </stopInfo>
- Mobile and browser icons
- Bulma CSS (WIP)
- Favourite stops
- Line indicator (Green/Red)
- Better line selection options (dynamic search, separate red/green line)
- List in progress...
Check out the live version of the project here.