This is an Unoffical Wrapper and this repo has no relation nor endorsement with/from LTA ####v0.0.7 Library Features:
- Sync/Async
- Lightweight
- Easy to Use
- Open Source
>>> pip install LTADatamall
>>> pip3 install LTADatamall
-
Bus Related
- Bus Arrival
- Bus Stop
- Bus Route
-
Passenger Volume
- Train Station
- Bus Stop
-
Taxi
- Taxi Stop/Stand
- Avaliable Taxis
-
Train Service Alert
- Train Service Alert Messages
- Asynchronous
from LTADatamall import BusManager
import asyncio
async def main():
client = BusManager('APIKEY')
fav = await client.async_get_services([3,68])
print(fav)
asyncio.run(main())
- Synchronous (Normal)
from LTADatamall import BusManager
client = BusManager('APIKEY')
fav_timings = client.get_bus_arrival(12345,[3,68])
print(fav_timings)