KItinerary

airportdb.h
1 /*
2  SPDX-FileCopyrightText: 2017 Volker Krause <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #ifndef AIRPORTDB_H
8 #define AIRPORTDB_H
9 
10 #include "kitinerary_export.h"
11 #include "countrydb.h"
12 #include "iatacode.h"
13 #include "knowledgedb.h"
14 #include "timezonedb.h"
15 
16 class QString;
17 class QTimeZone;
18 
19 namespace KItinerary {
20 namespace KnowledgeDb {
21 
25 struct Airport {
26  IataCode iataCode;
27  CountryId country;
28  Coordinate coordinate;
29 };
30 
32 KITINERARY_EXPORT Coordinate coordinateForAirport(IataCode iataCode);
33 
35 KITINERARY_EXPORT QTimeZone timezoneForAirport(IataCode iataCode);
36 
38 KITINERARY_EXPORT CountryId countryForAirport(IataCode iataCode);
39 
41 KITINERARY_EXPORT IataCode iataCodeFromName(const QString &name);
43 KITINERARY_EXPORT std::vector<IataCode> iataCodesFromName(const QString &name);
44 }
45 
46 }
47 
48 #endif // AIRPORTDB_H
Geographical coordinate.
Definition: knowledgedb.h:28
Classes for reservation/travel data models, data extraction and data augmentation.
Airport information structure as used in the database.
Definition: airportdb.h:25
KnowledgeDb::CountryId countryForAirport(IataCode iataCode)
Returns the country the airport with IATA code iataCode is in.
Definition: airportdb.cpp:50
QTimeZone timezoneForAirport(IataCode iataCode)
Returns the timezone the airport with IATA code iataCode is in.
Definition: airportdb.cpp:40
Coordinate coordinateForAirport(IataCode iataCode)
Returns the geographical coordinates the airport with IATA code iataCode is in.
Definition: airportdb.cpp:30
IataCode iataCodeFromName(const QString &name)
Attempts to find the unique IATA code for the given airport name.
Definition: airportdb.cpp:237
std::vector< IataCode > iataCodesFromName(const QString &name)
Returns all possible IATA code candidates for the given airport name.
Definition: airportdb.cpp:201
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Fri Jul 10 2020 23:11:51 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.