🚗📊 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 installExplore 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 traveltimeTo 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_hereReplace your_api_key_here with your real LTA DataMall API key.