Skip to content

Latest commit

 

History

History
58 lines (40 loc) · 1.33 KB

README.md

File metadata and controls

58 lines (40 loc) · 1.33 KB

Dart AISWeb

This project is a library to use DECEA's API-AISWeb from dart scripts (no official)

  • Aeronautical Charts
  • AIP
  • Rotaer
    • rotaer (aerodromes list)
    • rotaer (aerodrome data)
    • infotemp
  • GEILOC
  • NOTAM
  • Sunrise and Sunset Table
  • Airspace
  • Meteorology
  • Routes

Usage

Get your API ID and API Key with Brazilian Air Force Department of Airspace Control (DECEA)

To use this library in your code:

  • add a dependency in your pubspec.yaml :

    dependencies:
    aisweb:
  • add import in your dart code:

    import 'package:aisweb/aisweb.dart';

Example

A very simple example:

```dart
import 'package:aisweb/aisweb.dart' show Rotaer, RotaerData;

void main() async {
    Rotaer rotaer = Rotaer(apiKey: apiKey, apiPass: apiPass);

    RotaerData aiswebResponse = await rotaer.getAerodrome('SNZR');
    
    List<RotaerData> aiswebResponse = await rotaer.getAerodromesList(
      city: 'Paracatu', uf: 'MG', type: AerodromesTypes.AD);
    
    print(aiswebResponse.first);
}
```