apiverve_airportcodeconverter 1.1.14 copy "apiverve_airportcodeconverter: ^1.1.14" to clipboard
apiverve_airportcodeconverter: ^1.1.14 copied to clipboard

Airport Code Converter is a simple tool for converting between IATA (3-letter) and ICAO (4-letter) airport codes. Submit either format and get the corresponding code back.

Airport Code Converter API - Dart/Flutter Client #

Airport Code Converter is a simple tool for converting between IATA (3-letter) and ICAO (4-letter) airport codes. Submit either format and get the corresponding code back.

pub package License: MIT

This is the Dart/Flutter client for the Airport Code Converter API.

Installation #

Add this to your pubspec.yaml:

dependencies:
  apiverve_airportcodeconverter: ^1.1.14

Then run:

dart pub get
# or for Flutter
flutter pub get

Usage #

import 'package:apiverve_airportcodeconverter/apiverve_airportcodeconverter.dart';

void main() async {
  final client = AirportcodeconverterClient('YOUR_API_KEY');

  try {
    final response = await client.execute({
      'code': 'MCI'
    });

    print('Status: ${response.status}');
    print('Data: ${response.data}');
  } catch (e) {
    print('Error: $e');
  }
}

Response #

{
  "status": "ok",
  "error": null,
  "data": {
    "input": "MCI",
    "inputType": "IATA",
    "iata": "MCI",
    "icao": "KMCI",
    "name": "Kansas City International Airport",
    "city": "Kansas City",
    "state": "Missouri",
    "country": "US",
    "found": true
  }
}

API Reference #

Authentication #

All requests require an API key. Get yours at apiverve.com.

License #

MIT License - see LICENSE for details.


Built with Dart for APIVerve

0
likes
130
points
39
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Airport Code Converter is a simple tool for converting between IATA (3-letter) and ICAO (4-letter) airport codes. Submit either format and get the corresponding code back.

Homepage
Repository (GitHub)
View/report issues
Contributing

License

MIT (license)

Dependencies

http, http_parser

More

Packages that depend on apiverve_airportcodeconverter