OpenTREP Logo  0.07.9
C++ Open Travel Request Parsing Library
OPENTREP::Location Struct Reference

Structure modelling a (geographical) location. More...

#include <opentrep/Location.hpp>

+ Inheritance diagram for OPENTREP::Location:

Public Member Functions

const LocationKeygetKey () const
 
const IATACode_TgetIataCode () const
 
const IATATypegetIataType () const
 
const GeonamesID_TgetGeonamesID () const
 
const IsGeonames_TisGeonames () const
 
const ICAOCode_TgetIcaoCode () const
 
const FAACode_TgetFaaCode () const
 
const UNLOCodeList_TgetUNLOCodeList () const
 
const UICCodeList_TgetUICCodeList () const
 
const CommonName_TgetCommonName () const
 
const ASCIIName_TgetAsciiName () const
 
const AltNameShortListString_TgetAltNameShortListString () const
 
const TvlPORListString_TgetTvlPORListString () const
 
const EnvelopeID_TgetEnvelopeID () const
 
const Date_TgetDateFrom () const
 
const Date_TgetDateEnd () const
 
const Comment_TgetComment () const
 
const CityDetailsList_TgetCityList () const
 
const StateCode_TgetStateCode () const
 
const CountryCode_TgetCountryCode () const
 
const AltCountryCode_TgetAltCountryCode () const
 
const CountryName_TgetCountryName () const
 
const WAC_TgetWAC () const
 
const WACName_TgetWACName () const
 
const CurrencyCode_TgetCurrencyCode () const
 
const ContinentCode_TgetContinentCode () const
 
const ContinentName_TgetContinentName () const
 
const TimeZone_TgetTimeZone () const
 
const GMTOffset_TgetGMTOffset () const
 
const DSTOffset_TgetDSTOffset () const
 
const RawOffset_TgetRawOffset () const
 
const Latitude_TgetLatitude () const
 
const Longitude_TgetLongitude () const
 
const FeatureClass_TgetFeatureClass () const
 
const FeatureCode_TgetFeatureCode () const
 
const Admin1Code_TgetAdmin1Code () const
 
const Admin1UTFName_TgetAdmin1UtfName () const
 
const Admin1ASCIIName_TgetAdmin1AsciiName () const
 
const Admin2Code_TgetAdmin2Code () const
 
const Admin2UTFName_TgetAdmin2UtfName () const
 
const Admin2ASCIIName_TgetAdmin2AsciiName () const
 
const Admin3Code_TgetAdmin3Code () const
 
const Admin4Code_TgetAdmin4Code () const
 
const Population_TgetPopulation () const
 
const Elevation_TgetElevation () const
 
const GTopo30_TgetGTopo30 () const
 
const PageRank_TgetPageRank () const
 
const Date_TgetModificationDate () const
 
const WikiLink_TgetWikiLink () const
 
const Latitude_TgetGeonameLatitude () const
 
const Longitude_TgetGeonameLongitude () const
 
const NameMatrixgetNameMatrix () const
 
bool getNameList (const LanguageCode_T &iLanguageCode, NameList_T &ioNameList) const
 
const std::string & getOriginalKeywords () const
 
const std::string & getCorrectedKeywords () const
 
const MatchingPercentage_TgetPercentage () const
 
const NbOfErrors_TgetEditDistance () const
 
const NbOfErrors_TgetAllowableEditDistance () const
 
const LocationList_TgetExtraLocationList () const
 
const LocationList_TgetAlternateLocationList () const
 
const RawDataString_TgetRawDataString () const
 
void setKey (const LocationKey &iKey)
 
void setIataCode (const std::string &iIataCode)
 
void setIataType (const IATAType &iIATAType)
 
void setGeonamesID (const GeonamesID_T &iGeonamesID)
 
void setIcaoCode (const std::string &iIcaoCode)
 
void setFaaCode (const std::string &iFaaCode)
 
void addUNLOCode (const UNLOCode_T &iUNLOCode)
 
void addUICCode (const UICCode_T &iUICCode)
 
void setCommonName (const std::string &iName)
 
void setAsciiName (const std::string &iName)
 
void setAltNameShortListString (const std::string &iNameListString)
 
void setTvlPORListString (const std::string &iPORListString)
 
void setEnvelopeID (const EnvelopeID_T &iEnvelopeID)
 
void setDateFrom (const Date_T &iDate)
 
void setDateEnd (const Date_T &iDate)
 
void setComment (const std::string &iComment)
 
void setCityList (const CityDetailsList_T &iCityList)
 
void setCountryCode (const std::string &iCountryCode)
 
void setAltCountryCode (const std::string &iCountryCode)
 
void setCountryName (const std::string &iCountryName)
 
void setStateCode (const std::string &iStateCode)
 
void setWAC (const WAC_T &iWAC)
 
void setWACName (const std::string &iWACName)
 
void setCurrencyCode (const std::string &iCurrencyCode)
 
void setContinentCode (const std::string &iContinentCode)
 
void setContinentName (const std::string &iContinentName)
 
void setTimeZone (const std::string &iTimeZone)
 
void setGMTOffset (const GMTOffset_T &iOffset)
 
void setDSTOffset (const DSTOffset_T &iOffset)
 
void setRawOffset (const RawOffset_T &iOffset)
 
void setLatitude (const Latitude_T &iLatitude)
 
void setLongitude (const Longitude_T &iLongitude)
 
void setFeatureClass (const std::string &iFeatClass)
 
void setFeatureCode (const std::string &iFeatCode)
 
void setAdmin1Code (const std::string &iAdminCode)
 
void setAdmin1UtfName (const std::string &iAdminName)
 
void setAdmin1AsciiName (const std::string &iAdminName)
 
void setAdmin2Code (const std::string &iAdminCode)
 
void setAdmin2UtfName (const std::string &iAdminName)
 
void setAdmin2AsciiName (const std::string &iAdminName)
 
void setAdmin3Code (const std::string &iAdminCode)
 
void setAdmin4Code (const std::string &iAdminCode)
 
void setPopulation (const Population_T &iPopulation)
 
void setElevation (const Elevation_T &iElevation)
 
void setGTopo30 (const GTopo30_T &iGTopo30)
 
void setPageRank (const PageRank_T &iPageRank)
 
void setModificationDate (const Date_T &iModDate)
 
void setWikiLink (const std::string &iWikiLink)
 
void setGeonameLatitude (const Latitude_T &iLatitude)
 
void setGeonameLongitude (const Longitude_T &iLongitude)
 
void addName (const LanguageCode_T &iLanguageCode, const std::string &iName)
 
void resetMatrix ()
 
void setOriginalKeywords (const std::string &iOriginalKeywords)
 
void setCorrectedKeywords (const std::string &iCorrectedKeywords)
 
void setPercentage (const MatchingPercentage_T &iPercentage)
 
void setEditDistance (const NbOfErrors_T &iEditDistance)
 
void setAllowableEditDistance (const NbOfErrors_T &iAllowableEditDistance)
 
void addExtraLocation (const Location &iExtraLocation)
 
void addAlternateLocation (const Location &iAlternateLocation)
 
void setRawDataString (const std::string &iRawDataString)
 
Date_T calculateDate () const
 
void consolidateCityDetailsList ()
 
void consolidateAltNameShortListString ()
 
void consolidateTvlPORListString ()
 
void toStream (std::ostream &) const
 
void fromStream (std::istream &)
 
std::string toString () const
 
std::string describeKey () const
 
std::string describeShortKey () const
 
std::string toBasicString () const
 
std::string toShortString () const
 
std::string toSingleLocationString () const
 
std::string describeUNLOCodeList () const
 
std::string describeUICCodeList () const
 
std::string describeCityDetailsList () const
 
 Location (const IATACode_T &, const IATAType &, const GeonamesID_T &, const ICAOCode_T &, const FAACode_T &, const CommonName_T &, const ASCIIName_T &, const EnvelopeID_T &, const Date_T &iDateFrom, const Date_T &iDateEnd, const Comment_T &, const CityDetailsList_T &, const StateCode_T &, const CountryCode_T &, const AltCountryCode_T &, const CountryName_T &, const WAC_T &, const WACName_T &, const CurrencyCode_T &, const ContinentName_T &, const Latitude_T &, const Longitude_T &, const FeatureClass_T &, const FeatureCode_T &, const Admin1Code_T &, const Admin1UTFName_T &, const Admin1ASCIIName_T &, const Admin2Code_T &, const Admin2UTFName_T &, const Admin2ASCIIName_T &, const Admin3Code_T &, const Admin4Code_T &, const Population_T &, const Elevation_T &, const GTopo30_T &, const TimeZone_T &, const GMTOffset_T &, const DSTOffset_T &, const RawOffset_T &, const Date_T &iModDate, const TvlPORListString_T &, const WikiLink_T &, const Latitude_T &, const Longitude_T &, const PageRank_T &, const std::string &iOriginalKeywords, const std::string &iCorrectedKeywords, const MatchingPercentage_T &iPercentage, const NbOfErrors_T &iEditDistance, const NbOfErrors_T &iAllowableEditDistance, const RawDataString_T &)
 
 Location ()
 
 Location (const Location &)
 
 ~Location ()
 

Static Public Member Functions

static FeatureNameList_T getFeatureList (const FeatureCode_T &)
 

Public Attributes

year_t _itYear
 
month_t _itMonth
 
day_t _itDay
 
Language::EN_Language _itLanguageCodeNum
 
LanguageCode_T _itLanguageCode
 
std::string _itLangCode2Char
 
std::string _itLangCodeExt
 
std::string _itLangCodeHist
 
AltNameShortList_T _itAltNameShortList
 
IATACodeList_T _itTvlPORList
 
std::string _itCityIataCode
 
GeonamesID_T _itCityGeonamesID
 
std::string _itCityUtfName
 
std::string _itCityAsciiName
 
std::string _itCityCountryCode
 
std::string _itCityStateCode
 

Detailed Description

Structure modelling a (geographical) location.

Definition at line 25 of file Location.hpp.

Constructor & Destructor Documentation

◆ Location() [1/3]

OPENTREP::Location::Location ( const IATACode_T iIataCode,
const IATAType iIataType,
const GeonamesID_T iGeonamesID,
const ICAOCode_T iIcaoCode,
const FAACode_T iFaaCode,
const CommonName_T iCommonName,
const ASCIIName_T iASCIIName,
const EnvelopeID_T iEnvelopeID,
const Date_T iDateFrom,
const Date_T iDateEnd,
const Comment_T iComment,
const CityDetailsList_T iCityDetailsList,
const StateCode_T iStateCode,
const CountryCode_T iCountryCode,
const AltCountryCode_T iAltCountryCode,
const CountryName_T iCountryName,
const WAC_T iWAC,
const WACName_T iWACName,
const CurrencyCode_T iCurrencyCode,
const ContinentName_T iContinentName,
const Latitude_T iLatitude,
const Longitude_T iLongitude,
const FeatureClass_T iFeatureClass,
const FeatureCode_T iFeatureCode,
const Admin1Code_T iAdmin1Code,
const Admin1UTFName_T iAdmin1UtfName,
const Admin1ASCIIName_T iAdmin1AsciiName,
const Admin2Code_T iAdmin2Code,
const Admin2UTFName_T iAdmin2UtfName,
const Admin2ASCIIName_T iAdmin2AsciiName,
const Admin3Code_T iAdmin3Code,
const Admin4Code_T iAdmin4Code,
const Population_T iPopulation,
const Elevation_T iElevation,
const GTopo30_T iGTopo30,
const TimeZone_T iTimeZone,
const GMTOffset_T iGMTOffset,
const DSTOffset_T iDSTOffset,
const RawOffset_T iRawOffset,
const Date_T iModDate,
const TvlPORListString_T iTvlPORListString,
const WikiLink_T iWikiLink,
const Latitude_T iPageRank,
const Longitude_T iGeonameLatitude,
const PageRank_T iGeonameLongitude,
const std::string &  iOriginalKeywords,
const std::string &  iCorrectedKeywords,
const MatchingPercentage_T iPercentage,
const NbOfErrors_T iEditDistance,
const NbOfErrors_T iAllowableEditDistance,
const RawDataString_T iRawDataString 
)

Main Constructor.

Definition at line 108 of file Location.cpp.

◆ Location() [2/3]

OPENTREP::Location::Location ( )

Default Constructor.

Definition at line 17 of file Location.cpp.

◆ Location() [3/3]

OPENTREP::Location::Location ( const Location iLocation)

Default copy constructor.

Definition at line 57 of file Location.cpp.

◆ ~Location()

OPENTREP::Location::~Location ( )

Destructor.

Definition at line 193 of file Location.cpp.

Member Function Documentation

◆ getKey()

const LocationKey& OPENTREP::Location::getKey ( ) const
inline

Get the primary key (IATA and ICAO codes, Geonames ID) of that location.

Definition at line 31 of file Location.hpp.

Referenced by OPENTREP::LocationExchange::exportLocation(), OPENTREP::Place::getKey(), OPENTREP::DBManager::getPORByIATACode(), OPENTREP::DBManager::getPORByUNLOCode(), and OPENTREP::Result::getPrimaryKey().

◆ getIataCode()

const IATACode_T& OPENTREP::Location::getIataCode ( ) const
inline

Get the IATA code.

Definition at line 38 of file Location.hpp.

References OPENTREP::LocationKey::getIataCode().

Referenced by OPENTREP::Place::getIataCode(), and OPENTREP::BomJSONExport::jsonExportLocation().

◆ getIataType()

const IATAType& OPENTREP::Location::getIataType ( ) const
inline

Get the IATA location type (e.g., A for airport).

Definition at line 45 of file Location.hpp.

References OPENTREP::LocationKey::getIataType().

Referenced by OPENTREP::Place::getIataType().

◆ getGeonamesID()

const GeonamesID_T& OPENTREP::Location::getGeonamesID ( ) const
inline

Get the Geonames ID.

Definition at line 52 of file Location.hpp.

References OPENTREP::LocationKey::getGeonamesID().

Referenced by OPENTREP::Place::getGeonamesID(), and OPENTREP::BomJSONExport::jsonExportLocation().

◆ isGeonames()

const IsGeonames_T& OPENTREP::Location::isGeonames ( ) const
inline

State whether that POR is referenced by Geonames.

Definition at line 59 of file Location.hpp.

References OPENTREP::LocationKey::isGeonames().

Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::Place::isGeonames().

◆ getIcaoCode()

const ICAOCode_T& OPENTREP::Location::getIcaoCode ( ) const
inline

◆ getFaaCode()

const FAACode_T& OPENTREP::Location::getFaaCode ( ) const
inline

◆ getUNLOCodeList()

const UNLOCodeList_T& OPENTREP::Location::getUNLOCodeList ( ) const
inline

Get the list of UN/LOCODE five-letter codes.

Definition at line 80 of file Location.hpp.

Referenced by OPENTREP::LocationExchange::exportLocation(), OPENTREP::Place::getUNLOCodeList(), and OPENTREP::BomJSONExport::jsonExportLocation().

◆ getUICCodeList()

const UICCodeList_T& OPENTREP::Location::getUICCodeList ( ) const
inline

Get the list of UIC codes.

Definition at line 87 of file Location.hpp.

Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::Place::getUICCodeList().

◆ getCommonName()

const CommonName_T& OPENTREP::Location::getCommonName ( ) const
inline

Get the common name (usually in American English, but not necessarily in ASCII).

Definition at line 95 of file Location.hpp.

Referenced by OPENTREP::LocationExchange::exportLocation(), OPENTREP::Place::getCommonName(), and OPENTREP::BomJSONExport::jsonExportLocation().

◆ getAsciiName()

const ASCIIName_T& OPENTREP::Location::getAsciiName ( ) const
inline

Get the ASCII name (not necessarily in English).

Definition at line 102 of file Location.hpp.

Referenced by OPENTREP::LocationExchange::exportLocation(), OPENTREP::Place::getAsciiName(), and OPENTREP::BomJSONExport::jsonExportLocation().

◆ getAltNameShortListString()

const AltNameShortListString_T& OPENTREP::Location::getAltNameShortListString ( ) const
inline

Get the short list of alternate names (without language codes).

Definition at line 109 of file Location.hpp.

Referenced by OPENTREP::Place::getAltNameShortListString().

◆ getTvlPORListString()

const TvlPORListString_T& OPENTREP::Location::getTvlPORListString ( ) const
inline

Get the list of IATA codes of the travel-related POR.

Definition at line 116 of file Location.hpp.

Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::BomJSONExport::jsonExportLocation().

◆ getEnvelopeID()

const EnvelopeID_T& OPENTREP::Location::getEnvelopeID ( ) const
inline

◆ getDateFrom()

const Date_T& OPENTREP::Location::getDateFrom ( ) const
inline

Get the beginning date of the validity period

Definition at line 130 of file Location.hpp.

Referenced by OPENTREP::LocationExchange::exportLocation(), OPENTREP::Place::getDateFrom(), and OPENTREP::BomJSONExport::jsonExportLocation().

◆ getDateEnd()

const Date_T& OPENTREP::Location::getDateEnd ( ) const
inline

Get the end date of the validity period

Definition at line 137 of file Location.hpp.

Referenced by OPENTREP::LocationExchange::exportLocation(), OPENTREP::Place::getDateEnd(), and OPENTREP::BomJSONExport::jsonExportLocation().

◆ getComment()

const Comment_T& OPENTREP::Location::getComment ( ) const
inline

Get the commentaries.

Definition at line 144 of file Location.hpp.

Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::Place::getComment().

◆ getCityList()

const CityDetailsList_T& OPENTREP::Location::getCityList ( ) const
inline

◆ getStateCode()

const StateCode_T& OPENTREP::Location::getStateCode ( ) const
inline

◆ getCountryCode()

const CountryCode_T& OPENTREP::Location::getCountryCode ( ) const
inline

◆ getAltCountryCode()

const AltCountryCode_T& OPENTREP::Location::getAltCountryCode ( ) const
inline

◆ getCountryName()

const CountryName_T& OPENTREP::Location::getCountryName ( ) const
inline

◆ getWAC()

const WAC_T& OPENTREP::Location::getWAC ( ) const
inline

◆ getWACName()

const WACName_T& OPENTREP::Location::getWACName ( ) const
inline

Get the US DOT World Area Code (WAC) name.

Definition at line 193 of file Location.hpp.

Referenced by OPENTREP::LocationExchange::exportLocation(), OPENTREP::Place::getWACName(), and OPENTREP::BomJSONExport::jsonExportLocation().

◆ getCurrencyCode()

const CurrencyCode_T& OPENTREP::Location::getCurrencyCode ( ) const
inline

◆ getContinentCode()

const ContinentCode_T& OPENTREP::Location::getContinentCode ( ) const
inline

◆ getContinentName()

const ContinentName_T& OPENTREP::Location::getContinentName ( ) const
inline

◆ getTimeZone()

const TimeZone_T& OPENTREP::Location::getTimeZone ( ) const
inline

◆ getGMTOffset()

const GMTOffset_T& OPENTREP::Location::getGMTOffset ( ) const
inline

◆ getDSTOffset()

const DSTOffset_T& OPENTREP::Location::getDSTOffset ( ) const
inline

◆ getRawOffset()

const RawOffset_T& OPENTREP::Location::getRawOffset ( ) const
inline

◆ getLatitude()

const Latitude_T& OPENTREP::Location::getLatitude ( ) const
inline

◆ getLongitude()

const Longitude_T& OPENTREP::Location::getLongitude ( ) const
inline

◆ getFeatureClass()

const FeatureClass_T& OPENTREP::Location::getFeatureClass ( ) const
inline

Get the feature class (e.g., S for spot).

Definition at line 263 of file Location.hpp.

Referenced by OPENTREP::LocationExchange::exportLocation(), OPENTREP::Place::getFeatureClass(), and OPENTREP::BomJSONExport::jsonExportLocation().

◆ getFeatureCode()

const FeatureCode_T& OPENTREP::Location::getFeatureCode ( ) const
inline

Get the feature code (e.g., AIRP for airport).

Definition at line 270 of file Location.hpp.

Referenced by OPENTREP::LocationExchange::exportLocation(), OPENTREP::Place::getFeatureCode(), and OPENTREP::BomJSONExport::jsonExportLocation().

◆ getAdmin1Code()

const Admin1Code_T& OPENTREP::Location::getAdmin1Code ( ) const
inline

Get the administrative code of rank 1 (e.g., IL for Illinois).

Definition at line 277 of file Location.hpp.

Referenced by OPENTREP::LocationExchange::exportLocation(), OPENTREP::Place::getAdmin1Code(), and OPENTREP::BomJSONExport::jsonExportLocation().

◆ getAdmin1UtfName()

const Admin1UTFName_T& OPENTREP::Location::getAdmin1UtfName ( ) const
inline

Get the administrative UTF8 name of rank 1 (e.g., Illinois).

Definition at line 284 of file Location.hpp.

Referenced by OPENTREP::LocationExchange::exportLocation(), OPENTREP::Place::getAdmin1UtfName(), and OPENTREP::BomJSONExport::jsonExportLocation().

◆ getAdmin1AsciiName()

const Admin1ASCIIName_T& OPENTREP::Location::getAdmin1AsciiName ( ) const
inline

Get the administrative ASCII name of rank 1 (e.g., Illinois).

Definition at line 291 of file Location.hpp.

Referenced by OPENTREP::LocationExchange::exportLocation(), OPENTREP::Place::getAdmin1AsciiName(), and OPENTREP::BomJSONExport::jsonExportLocation().

◆ getAdmin2Code()

const Admin2Code_T& OPENTREP::Location::getAdmin2Code ( ) const
inline

Get the administrative code of rank 2.

Definition at line 298 of file Location.hpp.

Referenced by OPENTREP::LocationExchange::exportLocation(), OPENTREP::Place::getAdmin2Code(), and OPENTREP::BomJSONExport::jsonExportLocation().

◆ getAdmin2UtfName()

const Admin2UTFName_T& OPENTREP::Location::getAdmin2UtfName ( ) const
inline

Get the administrative UTF8 name of rank 2 (e.g., Alpes-Maritimes).

Definition at line 305 of file Location.hpp.

Referenced by OPENTREP::LocationExchange::exportLocation(), OPENTREP::Place::getAdmin2UtfName(), and OPENTREP::BomJSONExport::jsonExportLocation().

◆ getAdmin2AsciiName()

const Admin2ASCIIName_T& OPENTREP::Location::getAdmin2AsciiName ( ) const
inline

Get the administrative ASCII name of rank 2 (e.g., Alpes-Maritimes).

Definition at line 312 of file Location.hpp.

Referenced by OPENTREP::LocationExchange::exportLocation(), OPENTREP::Place::getAdmin2AsciiName(), and OPENTREP::BomJSONExport::jsonExportLocation().

◆ getAdmin3Code()

const Admin3Code_T& OPENTREP::Location::getAdmin3Code ( ) const
inline

Get the administrative code of rank 3.

Definition at line 319 of file Location.hpp.

Referenced by OPENTREP::LocationExchange::exportLocation(), OPENTREP::Place::getAdmin3Code(), and OPENTREP::BomJSONExport::jsonExportLocation().

◆ getAdmin4Code()

const Admin4Code_T& OPENTREP::Location::getAdmin4Code ( ) const
inline

Get the administrative code of rank 4.

Definition at line 326 of file Location.hpp.

Referenced by OPENTREP::LocationExchange::exportLocation(), OPENTREP::Place::getAdmin4Code(), and OPENTREP::BomJSONExport::jsonExportLocation().

◆ getPopulation()

const Population_T& OPENTREP::Location::getPopulation ( ) const
inline

Get the population (number of inhabitants).

Definition at line 333 of file Location.hpp.

Referenced by OPENTREP::LocationExchange::exportLocation(), OPENTREP::Place::getPopulation(), and OPENTREP::BomJSONExport::jsonExportLocation().

◆ getElevation()

const Elevation_T& OPENTREP::Location::getElevation ( ) const
inline

◆ getGTopo30()

const GTopo30_T& OPENTREP::Location::getGTopo30 ( ) const
inline

◆ getPageRank()

◆ getModificationDate()

const Date_T& OPENTREP::Location::getModificationDate ( ) const
inline

◆ getWikiLink()

const WikiLink_T& OPENTREP::Location::getWikiLink ( ) const
inline

◆ getGeonameLatitude()

const Latitude_T& OPENTREP::Location::getGeonameLatitude ( ) const
inline

◆ getGeonameLongitude()

const Longitude_T& OPENTREP::Location::getGeonameLongitude ( ) const
inline

◆ getNameMatrix()

const NameMatrix& OPENTREP::Location::getNameMatrix ( ) const
inline

◆ getNameList()

bool OPENTREP::Location::getNameList ( const LanguageCode_T iLanguageCode,
NameList_T ioNameList 
) const
inline

Get, for a given language (code), the corresponding list of names.

Parameters
constLanguageCode_T& Language code.
NameList_T&Empty list of names, which will be filled by the method if a list exists for that language code.
Returns
bool Whether or not such a list exists for the given language.

Definition at line 402 of file Location.hpp.

References OPENTREP::NameMatrix::getNameList().

Referenced by OPENTREP::Place::getNameList().

◆ getOriginalKeywords()

const std::string& OPENTREP::Location::getOriginalKeywords ( ) const
inline

◆ getCorrectedKeywords()

const std::string& OPENTREP::Location::getCorrectedKeywords ( ) const
inline

◆ getPercentage()

const MatchingPercentage_T& OPENTREP::Location::getPercentage ( ) const
inline

◆ getEditDistance()

const NbOfErrors_T& OPENTREP::Location::getEditDistance ( ) const
inline

Get the allowed edit distance/error.

Definition at line 431 of file Location.hpp.

Referenced by OPENTREP::LocationExchange::exportLocation(), OPENTREP::Place::getEditDistance(), and OPENTREP::BomJSONExport::jsonExportLocation().

◆ getAllowableEditDistance()

const NbOfErrors_T& OPENTREP::Location::getAllowableEditDistance ( ) const
inline

Get the maximal allowable edit distance/error, with which the matching has been made.

Definition at line 439 of file Location.hpp.

Referenced by OPENTREP::LocationExchange::exportLocation(), OPENTREP::Place::getAllowableEditDistance(), and OPENTREP::BomJSONExport::jsonExportLocation().

◆ getExtraLocationList()

const LocationList_T& OPENTREP::Location::getExtraLocationList ( ) const
inline

Get the list of extra matching (similar) locations.

Definition at line 446 of file Location.hpp.

Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::BomJSONExport::jsonExportLocationList().

◆ getAlternateLocationList()

const LocationList_T& OPENTREP::Location::getAlternateLocationList ( ) const
inline

Get the list of alternate matching (less similar) locations.

Definition at line 453 of file Location.hpp.

Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::BomJSONExport::jsonExportLocationList().

◆ getRawDataString()

const RawDataString_T& OPENTREP::Location::getRawDataString ( ) const
inline

Get the raw data string, as stored and retrieved by Xapian.

Definition at line 460 of file Location.hpp.

Referenced by OPENTREP::Place::getRawDataString().

◆ setKey()

void OPENTREP::Location::setKey ( const LocationKey iKey)
inline

Set the primary key (IATA and ICAO codes, Geonames ID) of that location.

Definition at line 470 of file Location.hpp.

Referenced by OPENTREP::Place::setKey().

◆ setIataCode()

void OPENTREP::Location::setIataCode ( const std::string &  iIataCode)
inline

◆ setIataType()

void OPENTREP::Location::setIataType ( const IATAType iIATAType)
inline

Set the IATA location type (e.g., A for airport).

Definition at line 484 of file Location.hpp.

References OPENTREP::LocationKey::setIataType().

Referenced by OPENTREP::PorParserHelper::storePORType::operator()(), and OPENTREP::Place::setIataType().

◆ setGeonamesID()

void OPENTREP::Location::setGeonamesID ( const GeonamesID_T iGeonamesID)
inline

◆ setIcaoCode()

void OPENTREP::Location::setIcaoCode ( const std::string &  iIcaoCode)
inline

Set the ICAO code.

Definition at line 498 of file Location.hpp.

Referenced by OPENTREP::PorParserHelper::storeIcaoCode::operator()(), and OPENTREP::Place::setIcaoCode().

◆ setFaaCode()

void OPENTREP::Location::setFaaCode ( const std::string &  iFaaCode)
inline

Set the FAA code.

Definition at line 505 of file Location.hpp.

Referenced by OPENTREP::PorParserHelper::storeFaaCode::operator()(), and OPENTREP::Place::setFaaCode().

◆ addUNLOCode()

void OPENTREP::Location::addUNLOCode ( const UNLOCode_T iUNLOCode)
inline

Add a UN/LOCODE five-letter code to the underlying list.

Definition at line 512 of file Location.hpp.

Referenced by OPENTREP::Place::addUNLOCode(), and OPENTREP::PorParserHelper::storeUNLOCode::operator()().

◆ addUICCode()

void OPENTREP::Location::addUICCode ( const UICCode_T iUICCode)
inline

Add a UIC code to the underlying list.

Definition at line 519 of file Location.hpp.

Referenced by OPENTREP::Place::addUICCode(), and OPENTREP::PorParserHelper::storeUICCode::operator()().

◆ setCommonName()

void OPENTREP::Location::setCommonName ( const std::string &  iName)
inline

Set the common name (usually in American English, but not necessarily in ASCII).

Definition at line 527 of file Location.hpp.

Referenced by OPENTREP::PorParserHelper::storeCommonName::operator()(), and OPENTREP::Place::setCommonName().

◆ setAsciiName()

void OPENTREP::Location::setAsciiName ( const std::string &  iName)
inline

Set the ASCII name (not necessarily in English).

Definition at line 534 of file Location.hpp.

Referenced by OPENTREP::PorParserHelper::storeAsciiName::operator()(), and OPENTREP::Place::setAsciiName().

◆ setAltNameShortListString()

void OPENTREP::Location::setAltNameShortListString ( const std::string &  iNameListString)
inline

Set the short list of alternate names (without language codes).

Definition at line 541 of file Location.hpp.

Referenced by consolidateAltNameShortListString(), and OPENTREP::Place::setAltNameShortListString().

◆ setTvlPORListString()

void OPENTREP::Location::setTvlPORListString ( const std::string &  iPORListString)
inline

Set the list of IATA codes of the travel-related POR.

Definition at line 548 of file Location.hpp.

Referenced by consolidateTvlPORListString().

◆ setEnvelopeID()

void OPENTREP::Location::setEnvelopeID ( const EnvelopeID_T iEnvelopeID)
inline

Set the envelope ID.

Definition at line 555 of file Location.hpp.

Referenced by OPENTREP::PorParserHelper::storeEnvelopeID::operator()(), and OPENTREP::Place::setEnvelopeID().

◆ setDateFrom()

void OPENTREP::Location::setDateFrom ( const Date_T iDate)
inline

Set the beginning date of the validity period

Definition at line 562 of file Location.hpp.

Referenced by OPENTREP::PorParserHelper::storeDateFrom::operator()(), and OPENTREP::Place::setDateFrom().

◆ setDateEnd()

void OPENTREP::Location::setDateEnd ( const Date_T iDate)
inline

Set the end date of the validity period

Definition at line 569 of file Location.hpp.

Referenced by OPENTREP::PorParserHelper::storeDateEnd::operator()(), and OPENTREP::Place::setDateEnd().

◆ setComment()

void OPENTREP::Location::setComment ( const std::string &  iComment)
inline

Set the commentaries.

Definition at line 576 of file Location.hpp.

Referenced by OPENTREP::Place::setComment().

◆ setCityList()

void OPENTREP::Location::setCityList ( const CityDetailsList_T iCityList)
inline

Set the list of served cities.

Definition at line 583 of file Location.hpp.

Referenced by OPENTREP::Place::setCityList().

◆ setCountryCode()

void OPENTREP::Location::setCountryCode ( const std::string &  iCountryCode)
inline

Set the country code.

Definition at line 590 of file Location.hpp.

Referenced by OPENTREP::PorParserHelper::storeCountryCode::operator()(), and OPENTREP::Place::setCountryCode().

◆ setAltCountryCode()

void OPENTREP::Location::setAltCountryCode ( const std::string &  iCountryCode)
inline

Set the alternative country code.

Definition at line 597 of file Location.hpp.

Referenced by OPENTREP::PorParserHelper::storeAltCountryCode::operator()(), and OPENTREP::Place::setAltCountryCode().

◆ setCountryName()

void OPENTREP::Location::setCountryName ( const std::string &  iCountryName)
inline

Set the country name.

Definition at line 604 of file Location.hpp.

Referenced by OPENTREP::PorParserHelper::storeCountryName::operator()(), and OPENTREP::Place::setCountryName().

◆ setStateCode()

void OPENTREP::Location::setStateCode ( const std::string &  iStateCode)
inline

Set the state code.

Definition at line 611 of file Location.hpp.

Referenced by OPENTREP::PorParserHelper::storeStateCode::operator()(), and OPENTREP::Place::setStateCode().

◆ setWAC()

void OPENTREP::Location::setWAC ( const WAC_T iWAC)
inline

Set the US DOT World Area Code (WAC).

Definition at line 618 of file Location.hpp.

Referenced by OPENTREP::PorParserHelper::storeWAC::operator()(), and OPENTREP::Place::setWAC().

◆ setWACName()

void OPENTREP::Location::setWACName ( const std::string &  iWACName)
inline

Set the US DOT World Area Code (WAC) name.

Definition at line 625 of file Location.hpp.

Referenced by OPENTREP::PorParserHelper::storeWACName::operator()(), and OPENTREP::Place::setWACName().

◆ setCurrencyCode()

void OPENTREP::Location::setCurrencyCode ( const std::string &  iCurrencyCode)
inline

Set the currency code.

Definition at line 632 of file Location.hpp.

Referenced by OPENTREP::PorParserHelper::storeCurrencyCode::operator()().

◆ setContinentCode()

void OPENTREP::Location::setContinentCode ( const std::string &  iContinentCode)
inline

Set the continent code.

Definition at line 639 of file Location.hpp.

Referenced by OPENTREP::Place::setContinentCode().

◆ setContinentName()

void OPENTREP::Location::setContinentName ( const std::string &  iContinentName)
inline

Set the continent name.

Definition at line 646 of file Location.hpp.

Referenced by OPENTREP::PorParserHelper::storeContinentName::operator()(), and OPENTREP::Place::setContinentName().

◆ setTimeZone()

void OPENTREP::Location::setTimeZone ( const std::string &  iTimeZone)
inline

Set the time-zone.

Definition at line 653 of file Location.hpp.

Referenced by OPENTREP::PorParserHelper::storeTimeZone::operator()(), and OPENTREP::Place::setTimeZone().

◆ setGMTOffset()

void OPENTREP::Location::setGMTOffset ( const GMTOffset_T iOffset)
inline

Set the GMT offset (e.g., 1)

Definition at line 660 of file Location.hpp.

Referenced by OPENTREP::PorParserHelper::storeGMTOffset::operator()(), and OPENTREP::Place::setGMTOffset().

◆ setDSTOffset()

void OPENTREP::Location::setDSTOffset ( const DSTOffset_T iOffset)
inline

Set the DST offset (e.g., 2)

Definition at line 667 of file Location.hpp.

Referenced by OPENTREP::PorParserHelper::storeDSTOffset::operator()(), and OPENTREP::Place::setDSTOffset().

◆ setRawOffset()

void OPENTREP::Location::setRawOffset ( const RawOffset_T iOffset)
inline

Set the raw offset (e.g., 1)

Definition at line 674 of file Location.hpp.

Referenced by OPENTREP::PorParserHelper::storeRawOffset::operator()(), and OPENTREP::Place::setRawOffset().

◆ setLatitude()

void OPENTREP::Location::setLatitude ( const Latitude_T iLatitude)
inline

Set the geographical latitude.

Definition at line 681 of file Location.hpp.

Referenced by OPENTREP::PorParserHelper::storeLatitude::operator()(), and OPENTREP::Place::setLatitude().

◆ setLongitude()

void OPENTREP::Location::setLongitude ( const Longitude_T iLongitude)
inline

Set the geographical longitude.

Definition at line 688 of file Location.hpp.

Referenced by OPENTREP::PorParserHelper::storeLongitude::operator()(), and OPENTREP::Place::setLongitude().

◆ setFeatureClass()

void OPENTREP::Location::setFeatureClass ( const std::string &  iFeatClass)
inline

Set the feature class (e.g., S for spot).

Definition at line 695 of file Location.hpp.

Referenced by OPENTREP::PorParserHelper::storeFeatureClass::operator()(), and OPENTREP::Place::setFeatureClass().

◆ setFeatureCode()

void OPENTREP::Location::setFeatureCode ( const std::string &  iFeatCode)
inline

Set the feature code (e.g., AIRP for airport).

Definition at line 702 of file Location.hpp.

Referenced by OPENTREP::PorParserHelper::storeFeatureCode::operator()(), and OPENTREP::Place::setFeatureCode().

◆ setAdmin1Code()

void OPENTREP::Location::setAdmin1Code ( const std::string &  iAdminCode)
inline

Set the administrative code of rank 1 (e.g., IL for Illinois).

Definition at line 709 of file Location.hpp.

Referenced by OPENTREP::PorParserHelper::storeAdm1Code::operator()(), and OPENTREP::Place::setAdmin1Code().

◆ setAdmin1UtfName()

void OPENTREP::Location::setAdmin1UtfName ( const std::string &  iAdminName)
inline

Set the administrative UTF8 name of rank 1 (e.g., Illinois).

Definition at line 716 of file Location.hpp.

Referenced by OPENTREP::PorParserHelper::storeAdm1UtfName::operator()(), and OPENTREP::Place::setAdmin1UtfName().

◆ setAdmin1AsciiName()

void OPENTREP::Location::setAdmin1AsciiName ( const std::string &  iAdminName)
inline

Set the administrative ASCII name of rank 1 (e.g., Illinois).

Definition at line 723 of file Location.hpp.

Referenced by OPENTREP::PorParserHelper::storeAdm1AsciiName::operator()(), and OPENTREP::Place::setAdmin1AsciiName().

◆ setAdmin2Code()

void OPENTREP::Location::setAdmin2Code ( const std::string &  iAdminCode)
inline

Set the administrative code of rank 2.

Definition at line 730 of file Location.hpp.

Referenced by OPENTREP::PorParserHelper::storeAdm2Code::operator()(), and OPENTREP::Place::setAdmin2Code().

◆ setAdmin2UtfName()

void OPENTREP::Location::setAdmin2UtfName ( const std::string &  iAdminName)
inline

Set the administrative UTF8 name of rank 2 (e.g., Alpes-Maritimes).

Definition at line 737 of file Location.hpp.

Referenced by OPENTREP::PorParserHelper::storeAdm2UtfName::operator()(), and OPENTREP::Place::setAdmin2UtfName().

◆ setAdmin2AsciiName()

void OPENTREP::Location::setAdmin2AsciiName ( const std::string &  iAdminName)
inline

Set the administrative ASCII name of rank 2 (e.g., Alpes-Maritimes).

Definition at line 744 of file Location.hpp.

Referenced by OPENTREP::PorParserHelper::storeAdm2AsciiName::operator()(), and OPENTREP::Place::setAdmin2AsciiName().

◆ setAdmin3Code()

void OPENTREP::Location::setAdmin3Code ( const std::string &  iAdminCode)
inline

Set the administrative code of rank 3.

Definition at line 751 of file Location.hpp.

Referenced by OPENTREP::PorParserHelper::storeAdm3Code::operator()(), and OPENTREP::Place::setAdmin3Code().

◆ setAdmin4Code()

void OPENTREP::Location::setAdmin4Code ( const std::string &  iAdminCode)
inline

Set the administrative code of rank 4.

Definition at line 758 of file Location.hpp.

Referenced by OPENTREP::PorParserHelper::storeAdm4Code::operator()(), and OPENTREP::Place::setAdmin4Code().

◆ setPopulation()

void OPENTREP::Location::setPopulation ( const Population_T iPopulation)
inline

Set the population (number of inhabitants).

Definition at line 765 of file Location.hpp.

Referenced by OPENTREP::PorParserHelper::storePopulation::operator()(), and OPENTREP::Place::setPopulation().

◆ setElevation()

void OPENTREP::Location::setElevation ( const Elevation_T iElevation)
inline

Set the elevation.

Definition at line 772 of file Location.hpp.

Referenced by OPENTREP::PorParserHelper::storeElevation::operator()(), and OPENTREP::Place::setElevation().

◆ setGTopo30()

void OPENTREP::Location::setGTopo30 ( const GTopo30_T iGTopo30)
inline

Set the GTopo30.

Definition at line 779 of file Location.hpp.

Referenced by OPENTREP::PorParserHelper::storeGTopo30::operator()(), and OPENTREP::Place::setGTopo30().

◆ setPageRank()

void OPENTREP::Location::setPageRank ( const PageRank_T iPageRank)
inline

Set the PageRank.

Definition at line 786 of file Location.hpp.

Referenced by OPENTREP::PorParserHelper::storePageRank::operator()(), and OPENTREP::Place::setPageRank().

◆ setModificationDate()

void OPENTREP::Location::setModificationDate ( const Date_T iModDate)
inline

Set the modification date.

Definition at line 793 of file Location.hpp.

Referenced by OPENTREP::PorParserHelper::storeModDate::operator()(), and OPENTREP::Place::setModificationDate().

◆ setWikiLink()

void OPENTREP::Location::setWikiLink ( const std::string &  iWikiLink)
inline

Set the Wikipedia link.

Definition at line 800 of file Location.hpp.

Referenced by OPENTREP::PorParserHelper::storeWikiLink::operator()(), and OPENTREP::Place::setWikiLink().

◆ setGeonameLatitude()

void OPENTREP::Location::setGeonameLatitude ( const Latitude_T iLatitude)
inline

Set the Geonames latitude.

Definition at line 807 of file Location.hpp.

Referenced by OPENTREP::PorParserHelper::storeGeonameLatitude::operator()(), and OPENTREP::Place::setGeonameLatitude().

◆ setGeonameLongitude()

void OPENTREP::Location::setGeonameLongitude ( const Longitude_T iLongitude)
inline

Set the Geonames longitude.

Definition at line 814 of file Location.hpp.

Referenced by OPENTREP::PorParserHelper::storeGeonameLongitude::operator()(), and OPENTREP::Place::setGeonameLongitude().

◆ addName()

void OPENTREP::Location::addName ( const LanguageCode_T iLanguageCode,
const std::string &  iName 
)
inline

Add a name for that location.

Parameters
constLanguageCode_T& Language in which to add the name.
conststd::string& Name to be added.

Definition at line 824 of file Location.hpp.

References OPENTREP::NameMatrix::addName().

Referenced by OPENTREP::Place::addName(), and OPENTREP::PorParserHelper::storeAltName::operator()().

◆ resetMatrix()

void OPENTREP::Location::resetMatrix ( )
inline

Reset the map of name lists.

Definition at line 832 of file Location.hpp.

References OPENTREP::NameMatrix::reset().

Referenced by OPENTREP::Place::resetMatrix().

◆ setOriginalKeywords()

void OPENTREP::Location::setOriginalKeywords ( const std::string &  iOriginalKeywords)
inline

Set the original keywords.

Definition at line 839 of file Location.hpp.

Referenced by OPENTREP::Place::setOriginalKeywords().

◆ setCorrectedKeywords()

◆ setPercentage()

void OPENTREP::Location::setPercentage ( const MatchingPercentage_T iPercentage)
inline

Set the Xapian matching percentage.

Definition at line 853 of file Location.hpp.

Referenced by OPENTREP::Place::setPercentage().

◆ setEditDistance()

void OPENTREP::Location::setEditDistance ( const NbOfErrors_T iEditDistance)
inline

Set the allowed edit distance/error.

Definition at line 860 of file Location.hpp.

Referenced by OPENTREP::Place::setEditDistance().

◆ setAllowableEditDistance()

void OPENTREP::Location::setAllowableEditDistance ( const NbOfErrors_T iAllowableEditDistance)
inline

Set the maxiaml allowable edit distance/error, with which the matching has been made.

Definition at line 868 of file Location.hpp.

Referenced by OPENTREP::Place::setAllowableEditDistance().

◆ addExtraLocation()

void OPENTREP::Location::addExtraLocation ( const Location iExtraLocation)
inline

Add an extra matching location.

Definition at line 875 of file Location.hpp.

Referenced by OPENTREP::Place::completeLocation().

◆ addAlternateLocation()

void OPENTREP::Location::addAlternateLocation ( const Location iAlternateLocation)
inline

Add an alternate matching location.

Definition at line 882 of file Location.hpp.

Referenced by OPENTREP::Place::completeLocation().

◆ setRawDataString()

void OPENTREP::Location::setRawDataString ( const std::string &  iRawDataString)
inline

Set the raw data string, as stored and retrieved by Xapian.

Definition at line 889 of file Location.hpp.

Referenced by OPENTREP::Place::setRawDataString().

◆ calculateDate()

◆ consolidateCityDetailsList()

void OPENTREP::Location::consolidateCityDetailsList ( )

Add the details of the served city into the dedicated list.

The staging _itCityXxx items are used to create a CityDetails object, which is then added (copied) into the underlying _cityList member object.

Definition at line 374 of file Location.cpp.

References _itCityAsciiName, _itCityCountryCode, _itCityGeonamesID, _itCityIataCode, _itCityStateCode, and _itCityUtfName.

Referenced by OPENTREP::PorParserHelper::storeCityDetailList::operator()().

◆ consolidateAltNameShortListString()

void OPENTREP::Location::consolidateAltNameShortListString ( )

Aggregate the temporary alternate names into the short list of alternate names.

Definition at line 385 of file Location.cpp.

References _itAltNameShortList, and setAltNameShortListString().

Referenced by OPENTREP::PorParserHelper::storeAltNameShortListString::operator()().

◆ consolidateTvlPORListString()

void OPENTREP::Location::consolidateTvlPORListString ( )

Aggregate the temporary IATA codes into the list of travel-related POR.

Definition at line 403 of file Location.cpp.

References _itTvlPORList, and setTvlPORListString().

Referenced by OPENTREP::PorParserHelper::storeTvlPORListString::operator()().

◆ getFeatureList()

FeatureNameList_T OPENTREP::Location::getFeatureList ( const FeatureCode_T iFeatureCode)
static

Derive a list from a (Geonames) feature code. For instance, the 'AIRP' feature code provides:

  • airport
  • airdrome
  • aerodrome
  • airfield
  • airstrip
  • airbase
Parameters
constFeatureCode_T& The feature code.
Returns
const FeatureNameList_T The list of feature names.

Definition at line 421 of file Location.cpp.

◆ toStream()

void OPENTREP::Location::toStream ( std::ostream &  ioOut) const
virtual

Dump a structure into an output stream.

Parameters
ostream&the output stream.

Implements OPENTREP::OPENTREP_Abstract.

Definition at line 197 of file Location.cpp.

References toString().

◆ fromStream()

void OPENTREP::Location::fromStream ( std::istream &  )
virtual

Read a structure from an input stream.

Parameters
istream&the input stream.

Implements OPENTREP::OPENTREP_Abstract.

Definition at line 202 of file Location.cpp.

◆ toString()

std::string OPENTREP::Location::toString ( ) const
virtual

Display of the Location structure with its associated names.

The alternate and extra matches are also fully displayed.

Implements OPENTREP::OPENTREP_Abstract.

Definition at line 282 of file Location.cpp.

References OPENTREP::NameMatrix::describe(), toShortString(), and toSingleLocationString().

Referenced by main(), and toStream().

◆ describeKey()

std::string OPENTREP::Location::describeKey ( ) const

Get a string describing the whole key (IATA and ICAO codes, Geonames ID).

Definition at line 213 of file Location.cpp.

References describeShortKey().

Referenced by OPENTREP::Place::describeKey().

◆ describeShortKey()

std::string OPENTREP::Location::describeShortKey ( ) const

Get a string describing the whole key (IATA and ICAO codes, Geonames ID).

Definition at line 206 of file Location.cpp.

References OPENTREP::LocationKey::describe().

Referenced by describeKey(), OPENTREP::Place::describeShortKey(), and toBasicString().

◆ toBasicString()

std::string OPENTREP::Location::toBasicString ( ) const

Basic display of the Location structure.

The names are not displayed. No information is displayed about alternate and extra matches.

Definition at line 218 of file Location.cpp.

References describeCityDetailsList(), describeShortKey(), describeUICCodeList(), and describeUNLOCodeList().

Referenced by toShortString(), and toSingleLocationString().

◆ toShortString()

std::string OPENTREP::Location::toShortString ( ) const

Short display of the Location structure.

The names are not displayed. Basic information is displayed about alternate and extra matches.

Definition at line 258 of file Location.cpp.

References toBasicString().

Referenced by toString().

◆ toSingleLocationString()

std::string OPENTREP::Location::toSingleLocationString ( ) const

Display of the Location structure with its associated names.

Contrary to the toString() method, the alternate and extra matches are not displayed.

Definition at line 275 of file Location.cpp.

References toBasicString().

Referenced by toString().

◆ describeUNLOCodeList()

std::string OPENTREP::Location::describeUNLOCodeList ( ) const

Display of the list of UN/LOCODE five-letter codes.

For instance, for Atlantic City, New Jersey (NJ), United States (US), it displays "USACX,USAIY"

Definition at line 326 of file Location.cpp.

Referenced by toBasicString().

◆ describeUICCodeList()

std::string OPENTREP::Location::describeUICCodeList ( ) const

Display of the list of UIC codes.

For instance, for Gare de Grenoble, Auvergne-Rhône-Alpes (ARA), France (FR), it displays "87747006"

Definition at line 342 of file Location.cpp.

Referenced by toBasicString().

◆ describeCityDetailsList()

std::string OPENTREP::Location::describeCityDetailsList ( ) const

Display of the served cities.

For instance, for Bradley International Airport, Connecticut (CT), United States (US), it displays "HFD,BDL,SFY"

Definition at line 358 of file Location.cpp.

Referenced by toBasicString().

Member Data Documentation

◆ _itYear

year_t OPENTREP::Location::_itYear

◆ _itMonth

month_t OPENTREP::Location::_itMonth

◆ _itDay

day_t OPENTREP::Location::_itDay

◆ _itLanguageCodeNum

Language::EN_Language OPENTREP::Location::_itLanguageCodeNum

Staging alternate names.

Definition at line 1430 of file Location.hpp.

◆ _itLanguageCode

◆ _itLangCode2Char

◆ _itLangCodeExt

std::string OPENTREP::Location::_itLangCodeExt

◆ _itLangCodeHist

std::string OPENTREP::Location::_itLangCodeHist

◆ _itAltNameShortList

AltNameShortList_T OPENTREP::Location::_itAltNameShortList

◆ _itTvlPORList

IATACodeList_T OPENTREP::Location::_itTvlPORList

Staging travel-related POR

Definition at line 1440 of file Location.hpp.

Referenced by consolidateTvlPORListString(), and OPENTREP::PorParserHelper::storeTvlPORCode::operator()().

◆ _itCityIataCode

std::string OPENTREP::Location::_itCityIataCode

Staging served cities

Definition at line 1445 of file Location.hpp.

Referenced by consolidateCityDetailsList(), and OPENTREP::PorParserHelper::storeCityCode::operator()().

◆ _itCityGeonamesID

GeonamesID_T OPENTREP::Location::_itCityGeonamesID

◆ _itCityUtfName

std::string OPENTREP::Location::_itCityUtfName

◆ _itCityAsciiName

std::string OPENTREP::Location::_itCityAsciiName

◆ _itCityCountryCode

std::string OPENTREP::Location::_itCityCountryCode

◆ _itCityStateCode

std::string OPENTREP::Location::_itCityStateCode

The documentation for this struct was generated from the following files: