airport-info

1.0.4 • Public • Published

Airport Information

Retrieve detailed information on any airport of your choice, from the country, city, timezone, ICAO and coordinates. The query can be specified with an ICAO or generic airport name.

Example

const airportInfo = require("airport-info")
airportInfo.getAirportInfo("LAX")
    .then(r => console.log(r))
    .catch(e => console.error(e))

Response

{
  name: 'Los Angeles International Airport',
  country: 'United States',
  city: 'Los Angeles',
  timezone: 'America/Los_Angeles',
  icao: 'KLAX',
  latitude: 33.9425028,
  longitude: -118.4071111
}

Package Sidebar

Install

npm i airport-info

Weekly Downloads

2

Version

1.0.4

License

ISC

Unpacked Size

2.19 kB

Total Files

4

Last publish

Collaborators

  • benpaterson