Socket
Socket
Sign inDemoInstall

flightplandb

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

flightplandb

An API wrapper for the website FlightPlanDatabase's API


Version published
Maintainers
1
Weekly downloads
5
increased by66.67%

Weekly downloads

Readme

Source

FlightPlanDB.js

An API wrapper for the website FlightPlanDatabase.com
WARNING: THIS IS FOR SIMULATION USE ONLY. DO NOT USE FOR REAL WORLD NAVIGATION.

Use

To use the wrapper, simply import the FlightPlanDB module, and set a variable to a new instance of FlightPlanDB. Call one of the attached methods, provide it the options it needs, and it will return the JSON object of the response. For example: const flightPlanDb = import('FlightPlanDB'); const db = new flightPlanDb({API KEY HERE}); db.getWeather('KCLE', function(result) { console.log(result); });

Methods

getFlightPlan(id, callback)-- Gets the flight plan from the database with the corresponding ID
getAirport(icao, callback)-- Gets the airport information for a given ICAO code
getWeather(icao, callback)-- Gets the METAR and TAF (if available) for the given ICAO airport
flightPlanQuery(query, callback)-- Retrieves a search of all flightplans matching a query, including ICAOs, airport names, username, tags, or flight number
flightPlanFromTo(from, to, callback)-- Retrieves a search of all flightplans from a location, to another
flightPlanIcaoFromTo(fromIcao, toIcao, callback)-- Retrieves a search of all flightplans from a specific ICAO airport, to another
flightPlanFlightNumber(flightNumber, callback)-- Retrieves a search of all flightplans with a given flight number
generateFlightPlan(fromIcao, toIcao, callback, useNat: true, usePacot: true, useAwylo: true, useAwyhi: true, cruiseAlt: 35000, cruiseSpeed: 420, ascentRate: 2500, ascentSpeed: 250, descentRate: 1500, descentSpeed: 250)-- Generates a flight plan with the given parameters. All parameters after the callback function are optional, and defaults are shown.

Keywords

FAQs

Last updated on 09 Jul 2019

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc