KItinerary::KnowledgeDb
Classes | |
struct | Airport |
class | AlphaId |
class | BenerailStationId |
struct | Coordinate |
struct | Country |
class | FiveAlphaId |
class | IBNR |
class | SncfStationId |
struct | TrainStation |
struct | TrainStationIdIndex |
class | TrainStationIndex |
class | UICIdentiferBase |
class | UICStation |
class | UnalignedNumber |
class | VRStationCode |
Typedefs | |
using | AmtrakStationCode = AlphaId<uint16_t, 3> |
using | CountryId = AlphaId<uint16_t, 2> |
using | IataCode = AlphaId<uint16_t, 3> |
typedef QFlags< PowerPlugType > | PowerPlugTypes |
using | UKRailwayStationCode = AlphaId<uint16_t, 3> |
using | ViaRailStationCode = AlphaId<UnalignedNumber<3>, 4> |
Enumerations | |
enum class | DrivingSide : uint8_t { Unknown , Left , Right } |
enum | PowerPlugType : uint16_t { Unknown = 0 , TypeA = 1 << 0 , TypeB = 1 << 1 , TypeC = 1 << 2 , TypeD = 1 << 3 , TypeE = 1 << 4 , TypeF = 1 << 5 , TypeG = 1 << 6 , TypeH = 1 << 7 , TypeI = 1 << 8 , TypeJ = 1 << 9 , TypeK = 1 << 10 , TypeL = 1 << 11 , TypeM = 1 << 12 , TypeN = 1 << 13 } |
Detailed Description
Lookup functions, utilities and data types for the static knowledge database.
The content accessible by this functions is extracted from Wikidata and compiled into this library.
- Note
- The types in this namespace match the binary storage structure and thus are not intended for use in binary compatible APIs.
Typedef Documentation
◆ AmtrakStationCode
using KItinerary::KnowledgeDb::AmtrakStationCode = AlphaId<uint16_t, 3> |
Amtrak staion codes.
Definition at line 130 of file stationidentifier.h.
◆ CountryId
using KItinerary::KnowledgeDb::CountryId = AlphaId<uint16_t, 2> |
ISO 3166-1 alpha 2 country identifier.
Definition at line 22 of file countrydb.h.
◆ IataCode
using KItinerary::KnowledgeDb::IataCode = AlphaId<uint16_t, 3> |
IATA airport code.
Definition at line 17 of file iatacode.h.
◆ PowerPlugTypes
Definition at line 53 of file countrydb.h.
◆ UKRailwayStationCode
using KItinerary::KnowledgeDb::UKRailwayStationCode = AlphaId<uint16_t, 3> |
UK railway station code.
Definition at line 134 of file stationidentifier.h.
◆ ViaRailStationCode
using KItinerary::KnowledgeDb::ViaRailStationCode = AlphaId<UnalignedNumber<3>, 4> |
Via Rail station code.
Definition at line 132 of file stationidentifier.h.
Enumeration Type Documentation
◆ DrivingSide
|
strong |
Driving side.
Definition at line 25 of file countrydb.h.
◆ PowerPlugType
enum KItinerary::KnowledgeDb::PowerPlugType : uint16_t |
Power plug types.
- Note
- This cannot be an enum class due to QTBUG-47652.
Definition at line 35 of file countrydb.h.
Function Documentation
◆ coordinateForAirport()
Coordinate KItinerary::KnowledgeDb::coordinateForAirport | ( | IataCode | iataCode | ) |
Returns the geographical coordinates the airport with IATA code iataCode
is in.
Definition at line 30 of file airportdb.cpp.
◆ countryForAirport()
Returns the country the airport with IATA code iataCode
is in.
Definition at line 50 of file airportdb.cpp.
◆ countryForId()
Look up country information by id.
Definition at line 21 of file countrydb.cpp.
◆ countryIdForUicCode()
KnowledgeDb::CountryId KItinerary::KnowledgeDb::countryIdForUicCode | ( | uint16_t | uicCountryCode | ) |
Look up country ISO code from a UIC country code.
Definition at line 82 of file countrydb.cpp.
◆ iataCodesFromName()
std::vector< KnowledgeDb::IataCode > KItinerary::KnowledgeDb::iataCodesFromName | ( | QStringView | name | ) |
Returns all possible IATA code candidates for the given airport name.
Definition at line 209 of file airportdb.cpp.
◆ incompatiblePowerPlugs()
PowerPlugTypes KItinerary::KnowledgeDb::incompatiblePowerPlugs | ( | PowerPlugTypes | plugs, |
PowerPlugTypes | sockets ) |
Returns the power plugs out of plugs
that won't fit into sockets
.
Definition at line 54 of file countrydb.cpp.
◆ incompatiblePowerSockets()
PowerPlugTypes KItinerary::KnowledgeDb::incompatiblePowerSockets | ( | PowerPlugTypes | plugs, |
PowerPlugTypes | sockets ) |
Returns the power sockets out pf sockets
that are unable to receive plugs out of plugs
, excluding those in plugs
.
Definition at line 68 of file countrydb.cpp.
◆ stationForAmtrakStationCode()
TrainStation KItinerary::KnowledgeDb::stationForAmtrakStationCode | ( | AmtrakStationCode | code | ) |
Lookup train station data by Amtrak station code.
Definition at line 81 of file trainstationdb.cpp.
◆ stationForBenerailId()
TrainStation KItinerary::KnowledgeDb::stationForBenerailId | ( | BenerailStationId | id | ) |
Lookup train station data by Benerail station identifier.
Definition at line 71 of file trainstationdb.cpp.
◆ stationForIataCode()
TrainStation KItinerary::KnowledgeDb::stationForIataCode | ( | IataCode | iataCode | ) |
Lookup train station data by IATA location code.
Definition at line 76 of file trainstationdb.cpp.
◆ stationForIbnr()
TrainStation KItinerary::KnowledgeDb::stationForIbnr | ( | IBNR | ibnr | ) |
Lookup train station data by IBNR.
Definition at line 38 of file trainstationdb.cpp.
◆ stationForIndianRailwaysStationCode()
TrainStation KItinerary::KnowledgeDb::stationForIndianRailwaysStationCode | ( | const QString & | code | ) |
Lookup train station data by Indian Railways station code.
Definition at line 53 of file trainstationdb.cpp.
◆ stationForSncfStationId()
TrainStation KItinerary::KnowledgeDb::stationForSncfStationId | ( | SncfStationId | sncfId | ) |
Lookup train station data by SNCF station id.
Definition at line 48 of file trainstationdb.cpp.
◆ stationForUic()
TrainStation KItinerary::KnowledgeDb::stationForUic | ( | UICStation | uic | ) |
Lookup train station data by UIC station id.
Definition at line 43 of file trainstationdb.cpp.
◆ stationForUkRailwayStationCode()
TrainStation KItinerary::KnowledgeDb::stationForUkRailwayStationCode | ( | UKRailwayStationCode | code | ) |
Lookup train station data by UK railway station code.
Definition at line 91 of file trainstationdb.cpp.
◆ stationForViaRailStationCode()
TrainStation KItinerary::KnowledgeDb::stationForViaRailStationCode | ( | ViaRailStationCode | code | ) |
Lookup train station data by Via Rail station code.
Definition at line 86 of file trainstationdb.cpp.
◆ stationForVRStationCode()
TrainStation KItinerary::KnowledgeDb::stationForVRStationCode | ( | VRStationCode | vrStation | ) |
Lookup train station data by VR (Finland) station code.
Definition at line 66 of file trainstationdb.cpp.
◆ timezoneForAirport()
Returns the timezone the airport with IATA code iataCode
is in.
Definition at line 40 of file airportdb.cpp.
Variable Documentation
◆ offset
uint16_t KItinerary::KnowledgeDb::offset |
Definition at line 128956 of file trainstationdb_data.cpp.
◆ stationIndex
TrainStationIndex KItinerary::KnowledgeDb::stationIndex |
Definition at line 128957 of file trainstationdb_data.cpp.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.