apiverve_airportcodeconverter 1.1.14
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.
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 #
- API Home: Airport Code Converter API
- Documentation: docs.apiverve.com/ref/airportcodeconverter
Authentication #
All requests require an API key. Get yours at apiverve.com.
License #
MIT License - see LICENSE for details.
Built with Dart for APIVerve