Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lta-api-project

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lta-api-project

This project is a command-line interface (CLI) for accessing the Singapore Land Transport Authority (LTA) DataMall APIs. It allows users to fetch bus arrival information, parking availability, nearest bus stops, and estimated travel time between two bus s

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

LTA API Project

This project is a command-line interface (CLI) for accessing the Singapore Land Transport Authority (LTA) DataMall APIs. It allows users to fetch bus arrival information, parking availability, nearest bus stops, and estimated travel time between two bus stops.

Installation

  1. Clone the repository or download the project files.

  2. Install the required dependencies using npm:

npm install

Usage

The following commands are available:

  1. Get bus arrival information:
npm run arr
  1. Get parking availability information:
npm run parking
  1. Find the nearest bus stops based on latitude and longitude:
npm run nearest
  1. Estimate the travel time between two bus stops:
npm run traveltime

Configuration

To use the LTA DataMall API, you need an API key. Create a .env file in the root directory of the project and set the LTA_API_KEY environment variable:

LTA_API_KEY=your_api_key_here

Replace your_api_key_here with your actual LTA DataMall API key.

Dependencies

  • axios - Promise-based HTTP client for Node.js
  • dotenv - Loads environment variables from a .env file
  • yargs - A command-line argument parser for Node.js

Keywords

FAQs

Package last updated on 06 Apr 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc