radar_box_on_demand_api

2.1.56 • Public • Published

radar_box_on_demand_api

RadarBoxOnDemandApi - JavaScript client for radar_box_on_demand_api No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) This SDK is automatically generated by the Swagger Codegen project:

  • API version: 2.1.56
  • Package version: 2.1.56
  • Build package: io.swagger.codegen.v3.generators.javascript.JavaScriptClientCodegen

Installation

For Node.js

npm

To publish the library as a npm, please follow the procedure in "Publishing npm packages".

Then install it via:

npm install radar_box_on_demand_api --save

git

If the library is hosted at a git repository, e.g. https://github.com/GIT_USER_ID/GIT_REPO_ID then install it via:

    npm install GIT_USER_ID/GIT_REPO_ID --save

For browser

The library also works in the browser environment via npm and browserify. After following the above steps with Node.js and installing browserify with npm install -g browserify, perform the following (assuming main.js is your entry file):

browserify main.js > bundle.js

Then include bundle.js in the HTML pages.

Webpack Configuration

Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:

module: {
  rules: [
    {
      parser: {
        amd: false
      }
    }
  ]
}

Getting Started

Please follow the installation instruction and execute the following JS code:

var RadarBoxOnDemandApi = require('radar_box_on_demand_api');
var defaultClient = RadarBoxOnDemandApi.ApiClient.instance;


var api = new RadarBoxOnDemandApi.AircraftApi()
var opts = { 
  'modeS': "modeS_example", // {String} Mode-S code
  'registration': "registration_example" // {String} Registration
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAircraft(opts, callback);

Documentation for API Endpoints

All URIs are relative to https://api.radarbox.com/v2

Class Method HTTP request Description
RadarBoxOnDemandApi.AircraftApi getAircraft GET /aircraft Aircraft by ID
RadarBoxOnDemandApi.AircraftApi searchAircraft GET /aircraft/search Aircraft search
RadarBoxOnDemandApi.AirportsApi getAirport GET /airports/{icaoCode} Airport by code
RadarBoxOnDemandApi.AirportsApi getDatis GET /airports/{icaoCode}/datis Get D-ATIS by airport
RadarBoxOnDemandApi.AirportsApi getMetar GET /airports/{icaoCode}/metar Get METAR by airport
RadarBoxOnDemandApi.AirportsApi getTaf GET /airports/{icaoCode}/taf Get TAF by airport
RadarBoxOnDemandApi.AirportsApi searchAirport GET /airports/search Airport search
RadarBoxOnDemandApi.AirspaceApi getNatTracks GET /airspace/natTracks NAT (North Atlantic Tracks)
RadarBoxOnDemandApi.AirspaceApi getNotams GET /airspace/{icaoCode}/notams Get NOTAMS by airport
RadarBoxOnDemandApi.AirspaceApi getPacTracks GET /airspace/pacTracks PAC (Pacific Organized Track System - PACOTS)
RadarBoxOnDemandApi.BillingApi status GET /billing/status Get the current billing status
RadarBoxOnDemandApi.BillingApi usage GET /billing/usage Get the latest token usage statistics
RadarBoxOnDemandApi.FlightsApi aircraftPosition POST /flights/live Get live flights
RadarBoxOnDemandApi.FlightsApi geosearch POST /flights/geosearch Search flights by geographical area
RadarBoxOnDemandApi.FlightsApi getScheduledFlights GET /flights/schedules Get scheduled flights
RadarBoxOnDemandApi.FlightsApi search POST /flights/search Search flights
RadarBoxOnDemandApi.StatisticsApi getAirlineStatistics GET /statistics/airline/{icaoCode} Statistics for a specific airline
RadarBoxOnDemandApi.StatisticsApi getAirlinesStatistics GET /statistics/airlines Statistics for major airlines
RadarBoxOnDemandApi.StatisticsApi getBusJetModelsStatisticsInternal GET /statistics/flights/business/models Statistics for business jet models
RadarBoxOnDemandApi.StatisticsApi getBusJetOperatorStatisticsInternal GET /statistics/flights/business/operators Statistics for business jet operators
RadarBoxOnDemandApi.StatisticsApi getBusinessAirportStatistics GET /statistics/airports/business Statistics for business flights on major airports
RadarBoxOnDemandApi.StatisticsApi getBusinessFlightsStatistics GET /statistics/flights/business Flights statistics (business)
RadarBoxOnDemandApi.StatisticsApi getCommercialAirportStatistics GET /statistics/airports/commercial Statistics for commercial flights on major airports
RadarBoxOnDemandApi.StatisticsApi getCommercialFlightsStatistics GET /statistics/flights/commercial Flights statistics (commercial)
RadarBoxOnDemandApi.StatisticsApi getFlightsStatistics GET /statistics/flights Statistics for all flights
RadarBoxOnDemandApi.StatisticsApi getMajorAirportStatistics GET /statistics/airports Statistics for major airports

Documentation for Models

Documentation for Authorization

bearerToken

Readme

Keywords

none

Package Sidebar

Install

npm i radar_box_on_demand_api

Weekly Downloads

2

Version

2.1.56

License

Unlicense

Unpacked Size

640 kB

Total Files

188

Last publish

Collaborators

  • jh1park