airportinfo

Creator: coderz1093

Last updated:

0 purchases

airportinfo Image
airportinfo Images
Add to Cart

Description:

airportinfo

AirportInfo #

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 #

Get an API key from the Airport Info API page.

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.');
}
copied to clipboard
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.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.