ππ LTA API Project
This remarkable project introduces a command-line interface (CLI) designed for seamless access to the Singapore Land Transport Authority (LTA) DataMall APIs. Uncover bus arrival details, parking availability, nearest bus stops, and even estimated travel time between two bus stops.
- Clone the repository or download the project files.
- Use npm to install the required dependencies:
npm install
Explore these commands at your fingertips:
- Fetch bus arrival information:
npm run arr
- Access parking availability data:
npm run parking
- Discover the nearest bus stops with latitude and longitude:
npm run nearest
- Estimate travel time between two bus stops:
npm run traveltime
To dive into the LTA DataMall API, secure an API key. Create a .env
file in the project's root directory and set the LTA_API_KEY
environment variable:
LTA_API_KEY=your_api_key_here
Replace your_api_key_here
with your real LTA DataMall API key.