Structure modelling a (geographical) location. More...
#include <opentrep/Location.hpp>
Public Member Functions | |
const LocationKey & | getKey () const |
const IATACode_T & | getIataCode () const |
const IATAType & | getIataType () const |
const GeonamesID_T & | getGeonamesID () const |
const IsGeonames_T & | isGeonames () const |
const ICAOCode_T & | getIcaoCode () const |
const FAACode_T & | getFaaCode () const |
const UNLOCodeList_T & | getUNLOCodeList () const |
const UICCodeList_T & | getUICCodeList () const |
const CommonName_T & | getCommonName () const |
const ASCIIName_T & | getAsciiName () const |
const AltNameShortListString_T & | getAltNameShortListString () const |
const TvlPORListString_T & | getTvlPORListString () const |
const EnvelopeID_T & | getEnvelopeID () const |
const Date_T & | getDateFrom () const |
const Date_T & | getDateEnd () const |
const Comment_T & | getComment () const |
const CityDetailsList_T & | getCityList () const |
const StateCode_T & | getStateCode () const |
const CountryCode_T & | getCountryCode () const |
const AltCountryCode_T & | getAltCountryCode () const |
const CountryName_T & | getCountryName () const |
const WAC_T & | getWAC () const |
const WACName_T & | getWACName () const |
const CurrencyCode_T & | getCurrencyCode () const |
const ContinentCode_T & | getContinentCode () const |
const ContinentName_T & | getContinentName () const |
const TimeZone_T & | getTimeZone () const |
const GMTOffset_T & | getGMTOffset () const |
const DSTOffset_T & | getDSTOffset () const |
const RawOffset_T & | getRawOffset () const |
const Latitude_T & | getLatitude () const |
const Longitude_T & | getLongitude () const |
const FeatureClass_T & | getFeatureClass () const |
const FeatureCode_T & | getFeatureCode () const |
const Admin1Code_T & | getAdmin1Code () const |
const Admin1UTFName_T & | getAdmin1UtfName () const |
const Admin1ASCIIName_T & | getAdmin1AsciiName () const |
const Admin2Code_T & | getAdmin2Code () const |
const Admin2UTFName_T & | getAdmin2UtfName () const |
const Admin2ASCIIName_T & | getAdmin2AsciiName () const |
const Admin3Code_T & | getAdmin3Code () const |
const Admin4Code_T & | getAdmin4Code () const |
const Population_T & | getPopulation () const |
const Elevation_T & | getElevation () const |
const GTopo30_T & | getGTopo30 () const |
const PageRank_T & | getPageRank () const |
const Date_T & | getModificationDate () const |
const WikiLink_T & | getWikiLink () const |
const Latitude_T & | getGeonameLatitude () const |
const Longitude_T & | getGeonameLongitude () const |
const NameMatrix & | getNameMatrix () const |
bool | getNameList (const LanguageCode_T &iLanguageCode, NameList_T &ioNameList) const |
const std::string & | getOriginalKeywords () const |
const std::string & | getCorrectedKeywords () const |
const MatchingPercentage_T & | getPercentage () const |
const NbOfErrors_T & | getEditDistance () const |
const NbOfErrors_T & | getAllowableEditDistance () const |
const LocationList_T & | getExtraLocationList () const |
const LocationList_T & | getAlternateLocationList () const |
const RawDataString_T & | getRawDataString () 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 |
Structure modelling a (geographical) location.
Definition at line 25 of file Location.hpp.
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.
References _itLanguageCode, and _itLanguageCodeNum.
Referenced by addAlternateLocation(), addExtraLocation(), Location(), and toString().
OPENTREP::Location::Location | ( | ) |
Default Constructor.
Definition at line 17 of file Location.cpp.
References _itLanguageCode, _itLanguageCodeNum, and OPENTREP::K_DEFAULT_PAGE_RANK.
OPENTREP::Location::Location | ( | const Location & | iLocation | ) |
Default copy constructor.
Definition at line 57 of file Location.cpp.
References _itLanguageCode, _itLanguageCodeNum, getComment(), getDateEnd(), getDateFrom(), getEnvelopeID(), and Location().
OPENTREP::Location::~Location | ( | ) |
Destructor.
Definition at line 193 of file Location.cpp.
|
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::DBManager::getPORByIATACode(), OPENTREP::DBManager::getPORByUNLOCode(), and OPENTREP::Result::getPrimaryKey().
|
inline |
Get the IATA code.
Definition at line 38 of file Location.hpp.
Referenced by OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the IATA location type (e.g., A for airport).
Definition at line 45 of file Location.hpp.
|
inline |
Get the Geonames ID.
Definition at line 52 of file Location.hpp.
Referenced by OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
State whether that POR is referenced by Geonames.
Definition at line 59 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation().
|
inline |
Get the ICAO code.
Definition at line 66 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the FAA code.
Definition at line 73 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the list of UN/LOCODE five-letter codes.
Definition at line 80 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the list of UIC codes.
Definition at line 87 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation().
|
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(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the ASCII name (not necessarily in English).
Definition at line 102 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the short list of alternate names (without language codes).
Definition at line 109 of file Location.hpp.
|
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().
|
inline |
Get the envelope ID.
Definition at line 123 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), OPENTREP::Result::getEnvelopeID(), OPENTREP::BomJSONExport::jsonExportLocation(), and Location().
|
inline |
Get the beginning date of the validity period
Definition at line 130 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), OPENTREP::BomJSONExport::jsonExportLocation(), and Location().
|
inline |
Get the end date of the validity period
Definition at line 137 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), OPENTREP::BomJSONExport::jsonExportLocation(), and Location().
|
inline |
Get the commentaries.
Definition at line 144 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), and Location().
|
inline |
Get the list of served cities.
Definition at line 151 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the state code.
Definition at line 158 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the country code.
Definition at line 165 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the alternative country code.
Definition at line 172 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the country name.
Definition at line 179 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the US DOT World Area Code (WAC).
Definition at line 186 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the US DOT World Area Code (WAC) name.
Definition at line 193 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the currency code.
Definition at line 200 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the continent code.
Definition at line 207 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the continent name.
Definition at line 214 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the time-zone.
Definition at line 221 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the GMT offset (e.g., 1)
Definition at line 228 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the DST offset (e.g., 2)
Definition at line 235 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the raw offset (e.g., 1)
Definition at line 242 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the latitude.
Definition at line 249 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the longitude.
Definition at line 256 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the feature class (e.g., S for spot).
Definition at line 263 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the feature code (e.g., AIRP for airport).
Definition at line 270 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
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(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
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(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
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(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the administrative code of rank 2.
Definition at line 298 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
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(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
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(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the administrative code of rank 3.
Definition at line 319 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the administrative code of rank 4.
Definition at line 326 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the population (number of inhabitants).
Definition at line 333 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the elevation.
Definition at line 340 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the GTopo30.
Definition at line 347 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the PageRank/importance.
Definition at line 354 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), OPENTREP::getBestMatchingLocation(), OPENTREP::Result::getPageRank(), OPENTREP::DBManager::getPORByIATACode(), OPENTREP::DBManager::getPORByUNLOCode(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the modification date.
Definition at line 361 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the Wikipedia link.
Definition at line 368 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the Geonames latitude.
Definition at line 375 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the Geonames longitude.
Definition at line 382 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the map of name lists.
Definition at line 389 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get, for a given language (code), the corresponding list of names.
const | LanguageCode_T& Language code. |
NameList_T& | Empty list of names, which will be filled by the method if a list exists for that language code. |
Definition at line 402 of file Location.hpp.
|
inline |
Get the original keywords.
Definition at line 410 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the corrected keywords.
Definition at line 417 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the matching percentage.
Definition at line 424 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the allowed edit distance/error.
Definition at line 431 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
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(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
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().
|
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().
|
inline |
Get the raw data string, as stored and retrieved by Xapian.
Definition at line 460 of file Location.hpp.
|
inline |
Set the primary key (IATA and ICAO codes, Geonames ID) of that location.
Definition at line 470 of file Location.hpp.
|
inline |
Set the IATA code.
Definition at line 477 of file Location.hpp.
|
inline |
Set the IATA location type (e.g., A for airport).
Definition at line 484 of file Location.hpp.
|
inline |
Set the Geonames ID.
Definition at line 491 of file Location.hpp.
|
inline |
Set the ICAO code.
Definition at line 498 of file Location.hpp.
|
inline |
Set the FAA code.
Definition at line 505 of file Location.hpp.
|
inline |
Add a UN/LOCODE five-letter code to the underlying list.
Definition at line 512 of file Location.hpp.
|
inline |
Add a UIC code to the underlying list.
Definition at line 519 of file Location.hpp.
|
inline |
Set the common name (usually in American English, but not necessarily in ASCII).
Definition at line 527 of file Location.hpp.
|
inline |
Set the ASCII name (not necessarily in English).
Definition at line 534 of file Location.hpp.
|
inline |
Set the short list of alternate names (without language codes).
Definition at line 541 of file Location.hpp.
Referenced by consolidateAltNameShortListString().
|
inline |
Set the list of IATA codes of the travel-related POR.
Definition at line 548 of file Location.hpp.
Referenced by consolidateTvlPORListString().
|
inline |
Set the envelope ID.
Definition at line 555 of file Location.hpp.
|
inline |
Set the beginning date of the validity period
Definition at line 562 of file Location.hpp.
|
inline |
Set the end date of the validity period
Definition at line 569 of file Location.hpp.
|
inline |
Set the commentaries.
Definition at line 576 of file Location.hpp.
|
inline |
Set the list of served cities.
Definition at line 583 of file Location.hpp.
|
inline |
Set the country code.
Definition at line 590 of file Location.hpp.
|
inline |
Set the alternative country code.
Definition at line 597 of file Location.hpp.
|
inline |
Set the country name.
Definition at line 604 of file Location.hpp.
|
inline |
Set the state code.
Definition at line 611 of file Location.hpp.
|
inline |
Set the US DOT World Area Code (WAC).
Definition at line 618 of file Location.hpp.
|
inline |
Set the US DOT World Area Code (WAC) name.
Definition at line 625 of file Location.hpp.
|
inline |
Set the currency code.
Definition at line 632 of file Location.hpp.
|
inline |
Set the continent code.
Definition at line 639 of file Location.hpp.
|
inline |
Set the continent name.
Definition at line 646 of file Location.hpp.
|
inline |
Set the time-zone.
Definition at line 653 of file Location.hpp.
|
inline |
Set the GMT offset (e.g., 1)
Definition at line 660 of file Location.hpp.
|
inline |
Set the DST offset (e.g., 2)
Definition at line 667 of file Location.hpp.
|
inline |
Set the raw offset (e.g., 1)
Definition at line 674 of file Location.hpp.
|
inline |
Set the geographical latitude.
Definition at line 681 of file Location.hpp.
|
inline |
Set the geographical longitude.
Definition at line 688 of file Location.hpp.
|
inline |
Set the feature class (e.g., S for spot).
Definition at line 695 of file Location.hpp.
|
inline |
Set the feature code (e.g., AIRP for airport).
Definition at line 702 of file Location.hpp.
|
inline |
Set the administrative code of rank 1 (e.g., IL for Illinois).
Definition at line 709 of file Location.hpp.
|
inline |
Set the administrative UTF8 name of rank 1 (e.g., Illinois).
Definition at line 716 of file Location.hpp.
|
inline |
Set the administrative ASCII name of rank 1 (e.g., Illinois).
Definition at line 723 of file Location.hpp.
|
inline |
Set the administrative code of rank 2.
Definition at line 730 of file Location.hpp.
|
inline |
Set the administrative UTF8 name of rank 2 (e.g., Alpes-Maritimes).
Definition at line 737 of file Location.hpp.
|
inline |
Set the administrative ASCII name of rank 2 (e.g., Alpes-Maritimes).
Definition at line 744 of file Location.hpp.
|
inline |
Set the administrative code of rank 3.
Definition at line 751 of file Location.hpp.
|
inline |
Set the administrative code of rank 4.
Definition at line 758 of file Location.hpp.
|
inline |
Set the population (number of inhabitants).
Definition at line 765 of file Location.hpp.
|
inline |
Set the elevation.
Definition at line 772 of file Location.hpp.
|
inline |
Set the GTopo30.
Definition at line 779 of file Location.hpp.
|
inline |
Set the PageRank.
Definition at line 786 of file Location.hpp.
|
inline |
Set the modification date.
Definition at line 793 of file Location.hpp.
|
inline |
Set the Wikipedia link.
Definition at line 800 of file Location.hpp.
|
inline |
Set the Geonames latitude.
Definition at line 807 of file Location.hpp.
|
inline |
Set the Geonames longitude.
Definition at line 814 of file Location.hpp.
|
inline |
Add a name for that location.
const | LanguageCode_T& Language in which to add the name. |
const | std::string& Name to be added. |
Definition at line 824 of file Location.hpp.
|
inline |
Reset the map of name lists.
Definition at line 832 of file Location.hpp.
|
inline |
Set the original keywords.
Definition at line 839 of file Location.hpp.
|
inline |
Set the corrected keywords.
Definition at line 846 of file Location.hpp.
Referenced by OPENTREP::DBManager::getPORByFAACode(), OPENTREP::DBManager::getPORByGeonameID(), OPENTREP::DBManager::getPORByIATACode(), OPENTREP::DBManager::getPORByICAOCode(), OPENTREP::DBManager::getPORByUICCode(), and OPENTREP::DBManager::getPORByUNLOCode().
|
inline |
Set the Xapian matching percentage.
Definition at line 853 of file Location.hpp.
|
inline |
Set the allowed edit distance/error.
Definition at line 860 of file Location.hpp.
|
inline |
Set the maxiaml allowable edit distance/error, with which the matching has been made.
Definition at line 868 of file Location.hpp.
|
inline |
Add an extra matching location.
Definition at line 875 of file Location.hpp.
References Location().
Referenced by OPENTREP::Place::completeLocation().
|
inline |
Add an alternate matching location.
Definition at line 882 of file Location.hpp.
References Location().
Referenced by OPENTREP::Place::completeLocation().
|
inline |
Set the raw data string, as stored and retrieved by Xapian.
Definition at line 889 of file Location.hpp.
Date_T OPENTREP::Location::calculateDate | ( | ) | const |
Calculate the date from the staging details.
Definition at line 320 of file Location.cpp.
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.
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().
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().
|
static |
Derive a list from a (Geonames) feature code. For instance, the 'AIRP' feature code provides:
const | FeatureCode_T& The feature code. |
Definition at line 421 of file Location.cpp.
Referenced by OPENTREP::Place::addNameToXapianSets().
|
virtual |
Dump a structure into an output stream.
ostream& | the output stream. |
Implements OPENTREP::OPENTREP_Abstract.
Definition at line 197 of file Location.cpp.
References toString().
|
virtual |
Read a structure from an input stream.
istream& | the input stream. |
Implements OPENTREP::OPENTREP_Abstract.
Definition at line 202 of file Location.cpp.
|
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 Location(), toShortString(), and toSingleLocationString().
Referenced by main(), and toStream().
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().
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.
Referenced by describeKey(), and 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().
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().
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().
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().
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().
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().
year_t OPENTREP::Location::_itYear |
month_t OPENTREP::Location::_itMonth |
Definition at line 1424 of file Location.hpp.
Referenced by calculateDate().
day_t OPENTREP::Location::_itDay |
Definition at line 1425 of file Location.hpp.
Referenced by calculateDate().
Language::EN_Language OPENTREP::Location::_itLanguageCodeNum |
Staging alternate names.
Definition at line 1430 of file Location.hpp.
Referenced by Location(), Location(), and Location().
LanguageCode_T OPENTREP::Location::_itLanguageCode |
Definition at line 1431 of file Location.hpp.
Referenced by Location(), Location(), and Location().
std::string OPENTREP::Location::_itLangCode2Char |
Definition at line 1432 of file Location.hpp.
std::string OPENTREP::Location::_itLangCodeExt |
Definition at line 1433 of file Location.hpp.
std::string OPENTREP::Location::_itLangCodeHist |
Definition at line 1434 of file Location.hpp.
AltNameShortList_T OPENTREP::Location::_itAltNameShortList |
Definition at line 1435 of file Location.hpp.
Referenced by consolidateAltNameShortListString().
IATACodeList_T OPENTREP::Location::_itTvlPORList |
Staging travel-related POR
Definition at line 1440 of file Location.hpp.
Referenced by consolidateTvlPORListString().
std::string OPENTREP::Location::_itCityIataCode |
Staging served cities
Definition at line 1445 of file Location.hpp.
Referenced by consolidateCityDetailsList().
GeonamesID_T OPENTREP::Location::_itCityGeonamesID |
Definition at line 1446 of file Location.hpp.
Referenced by consolidateCityDetailsList().
std::string OPENTREP::Location::_itCityUtfName |
Definition at line 1447 of file Location.hpp.
Referenced by consolidateCityDetailsList().
std::string OPENTREP::Location::_itCityAsciiName |
Definition at line 1448 of file Location.hpp.
Referenced by consolidateCityDetailsList().
std::string OPENTREP::Location::_itCityCountryCode |
Definition at line 1449 of file Location.hpp.
Referenced by consolidateCityDetailsList().
std::string OPENTREP::Location::_itCityStateCode |
Definition at line 1450 of file Location.hpp.
Referenced by consolidateCityDetailsList().