airportinfo 1.0.1 copy "airportinfo: ^1.0.1" to clipboard
airportinfo: ^1.0.1 copied to clipboard

Library for retrieving data from the 'Airport Info' API by Active API available via the RapidAPI service.

AirportInfo #

Dart

Library for retrieving data from the Airport Info API by Active API available via the RapidAPI service.

Features #

  • Gets airport information in an easy to use format.

Getting Started #

Usage #

import 'package:airportinfo/airportinfo.dart';

var key = ApiKey("<host>", "<API key>");

try {
    var airport = await AirportInfo.fetch(key, RequestType, "<airport code>");

    if (airport != null) {
        // Do whatever is needed with the data.
    } else {
        // Handle 
    }
} on InvalidCodeException {
print('Code length is invalid.');
}

RequestType can be either:

  • RequestType.iata for three letter codes provided by the International Air Transport Association.
  • RequestType.icao for four letter codes provided by the International Civil Aviation Organization.

Issues #

Issues can be submitted to the GitHub repository.

0
likes
150
points
44
downloads

Documentation

API reference

Publisher

verified publisher28left.dev

Weekly Downloads

Library for retrieving data from the 'Airport Info' API by Active API available via the RapidAPI service.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

http

More

Packages that depend on airportinfo