Skip to content

node.js wrapper for the KVV (Karlsruher Verkehrsverbund) live API. πŸš„

Notifications You must be signed in to change notification settings

TobiasRoeddiger/node-kvv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

18 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

node-kvv npm version

Node.js wrapper for the KVV (Karlsruher Verkehrsverbund) live API. πŸš„

Installation

Navigate to your node.js project over the command line and install the npm package using the following command.

npm install node-kvv --save

Usage

var nodeKvv = require('node-kvv');

// Searching stops by name
nodeKvv.searchStopsByName('Karlsruhe Marktplatz');

// Searching stops by latitude and longitude
nodeKvv.searchStopsByLatLong(48.34342, 7.234234); // lat, long

// Search stop by id
nodeKvv.searchStopByStopId('de:123:er');

// Search departures from stop by stop ID
nodeKvv.getDepartures('de:123:er'); // default will return the next 4 departures
nodeKvv.getDepartures('de:123:er', 8); // will return the next 8 departures

About

node.js wrapper for the KVV (Karlsruher Verkehrsverbund) live API. πŸš„

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published