KItinerary

airportdb.h
1/*
2 SPDX-FileCopyrightText: 2017 Volker Krause <vkrause@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "kitinerary_export.h"
10#include "countrydb.h"
11#include "iatacode.h"
12#include "knowledgedb.h"
13
14class QString;
15class QTimeZone;
16
17namespace KItinerary {
18namespace KnowledgeDb {
19
20/** Airport information structure as used in the database.
21 * @internal
22 */
23struct Airport {
24 IataCode iataCode;
25 CountryId country;
26 Coordinate coordinate;
27};
28
29/** Returns the geographical coordinates the airport with IATA code @p iataCode is in. */
30KITINERARY_EXPORT Coordinate coordinateForAirport(IataCode iataCode);
31
32/** Returns the timezone the airport with IATA code @p iataCode is in. */
33KITINERARY_EXPORT QTimeZone timezoneForAirport(IataCode iataCode);
34
35/** Returns the country the airport with IATA code @p iataCode is in. */
36KITINERARY_EXPORT CountryId countryForAirport(IataCode iataCode);
37
38/** Returns all possible IATA code candidates for the given airport name. */
39KITINERARY_EXPORT std::vector<IataCode> iataCodesFromName(QStringView name);
40}
41
42}
43
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
std::vector< IataCode > iataCodesFromName(QStringView name)
Returns all possible IATA code candidates for the given airport name.
KnowledgeDb::CountryId countryForAirport(IataCode iataCode)
Returns the country the airport with IATA code iataCode is in.
Definition airportdb.cpp:50
Classes for reservation/travel data models, data extraction and data augmentation.
Definition berelement.h:17
Airport information structure as used in the database.
Definition airportdb.h:23
Geographical coordinate.
Definition knowledgedb.h:27
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 17 2024 11:50:52 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.