/themobilitybox-js

JavaScript Library to access The Mobilitybox API

Primary LanguageJavaScriptApache License 2.0Apache-2.0

@themobilitybox/themobilitybox

JavaScript Library to Access The Mobilitybox.

Install

$ npm install @themobilitybox/themobilitybox

Usage

// Use your API key to validate the requests
const { Mobilitybox } = require('@themobilitybox/themobilitybox');
const api = new Mobilitybox("YOUR_API_KEY");

api.find_stations_by_name("Alexanderplatz", function (stations) {
  stations.forEach(function(station) {
    console.log(station.name);
  });
});