airportsjs

0.3.1 • Public • Published

airportsjs

Circle CI

A library to help you search and obtain airport codes.

Install

npm install airportsjs --save

Usage

index.lookupByIataCode('EWR')

{ name: 'Newark Liberty Intl',
  city: 'Newark',
  country: 'United States',
  iata: 'EWR',
  latitude: 40.6925,
  longitude: -74.168667 }
index.searchByAirportName('Newark')

[ { name: 'Newark Liberty Intl',
    city: 'Newark',
    country: 'United States',
    iata: 'EWR',
    latitude: 40.6925,
    longitude: -74.168667 },
  { name: 'Newark Penn Station',
    city: 'Newark',
    country: 'United States',
    iata: 'ZRP',
    latitude: 40.734722,
    longitude: -74.164167 } ]

License

MIT.

Readme

Keywords

Package Sidebar

Install

npm i airportsjs

Weekly Downloads

73

Version

0.3.1

License

MIT

Unpacked Size

1.14 MB

Total Files

9

Last publish

Collaborators

  • sjlu