New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

auckland-transport

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

auckland-transport

A simplified interface for the Auckland Transport API.

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

auckland-transport Travis CI Build Status

A simplified interface for the Auckland Transport API.

NPM Badge

Install

npm install auckland-transport

Usage

const at = require("auckland-transport");

(async () => {
	const data = await at("gtfs/routes/geosearch", {
		key: "some api key",
		data: {
			lat: -36.8483957,
			lng: 174.7600113,
			distance: 100,
		},
	});

	const {route_short_name, route_long_name} = data[0]

	console.log(`Bus ${route_short_name} - ${route_long_name}`)
})();

API

aucklandTransport(method, options)

method

Type: string

The API method to call.

options

Type: object

key

Type: string

The api key to use.

data

Type: object
Default: {}

The options to pass to the api.

Keywords

FAQs

Package last updated on 21 Jun 2020

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