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 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 CityCode_T & | getCityCode () const |
const CityUTFName_T & | getCityUtfName () const |
const CityASCIIName_T & | getCityAsciiName () const |
const GeonamesID_T & | getCityGeonamesID () const |
const StateCode_T & | getStateCode () const |
const CountryCode_T & | getCountryCode () const |
const AltCountryCode_T & | getAltCountryCode () const |
const CountryName_T & | getCountryName () 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 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 | 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 | setCityCode (const std::string &iCityCode) |
void | setCityUtfName (const std::string &iCityUtfName) |
void | setCityAsciiName (const std::string &iCityAsciiName) |
void | setCityGeonamesID (const GeonamesID_T &iGeonamesID) |
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 | 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 | 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 | 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 |
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 CityCode_T &, const CityUTFName_T &, const CityASCIIName_T &, const GeonamesID_T &, const StateCode_T &, const CountryCode_T &, const AltCountryCode_T &, const CountryName_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 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 |
TvlPORList_T | _itTvlPORList |
Structure modelling a (geographical) location.
Definition at line 24 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 CityCode_T & | iCityCode, | ||
const CityUTFName_T & | iCityUtfName, | ||
const CityASCIIName_T & | iCityAsciiName, | ||
const GeonamesID_T & | iCityGeonamesID, | ||
const StateCode_T & | iStateCode, | ||
const CountryCode_T & | iCountryCode, | ||
const AltCountryCode_T & | iAltCountryCode, | ||
const CountryName_T & | iCountryName, | ||
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 PageRank_T & | iPageRank, | ||
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 102 of file Location.cpp.
OPENTREP::Location::Location | ( | ) |
Default Constructor.
Definition at line 16 of file Location.cpp.
OPENTREP::Location::Location | ( | const Location & | iLocation | ) |
Default copy constructor.
Definition at line 55 of file Location.cpp.
OPENTREP::Location::~Location | ( | ) |
Destructor.
Definition at line 184 of file Location.cpp.
|
inline |
Get the primary key (IATA and ICAO codes, Geonames ID) of that location.
Definition at line 30 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), OPENTREP::Place::getKey(), and OPENTREP::Result::getPrimaryKey().
|
inline |
Get the IATA code.
Definition at line 37 of file Location.hpp.
References OPENTREP::LocationKey::getIataCode().
Referenced by OPENTREP::Place::buildIndexSets(), OPENTREP::Place::getIataCode(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the IATA location type (e.g., A for airport).
Definition at line 44 of file Location.hpp.
References OPENTREP::LocationKey::getIataType().
Referenced by OPENTREP::Place::getIataType().
|
inline |
Get the Geonames ID.
Definition at line 51 of file Location.hpp.
References OPENTREP::LocationKey::getGeonamesID().
Referenced by OPENTREP::Place::buildIndexSets(), OPENTREP::Place::getGeonamesID(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
State whether that POR is referenced by Geonames.
Definition at line 58 of file Location.hpp.
References OPENTREP::LocationKey::isGeonames().
Referenced by OPENTREP::Place::isGeonames().
|
inline |
Get the ICAO code.
Definition at line 65 of file Location.hpp.
Referenced by OPENTREP::Place::buildIndexSets(), OPENTREP::LocationExchange::exportLocation(), OPENTREP::Place::getIcaoCode(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the FAA code.
Definition at line 72 of file Location.hpp.
Referenced by OPENTREP::Place::buildIndexSets(), OPENTREP::LocationExchange::exportLocation(), OPENTREP::Place::getFaaCode(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the common name (usually in American English, but not necessarily in ASCII).
Definition at line 80 of file Location.hpp.
Referenced by OPENTREP::Place::buildIndexSets(), OPENTREP::LocationExchange::exportLocation(), and OPENTREP::Place::getCommonName().
|
inline |
Get the ASCII name (not necessarily in English).
Definition at line 87 of file Location.hpp.
Referenced by OPENTREP::Place::buildIndexSets(), OPENTREP::LocationExchange::exportLocation(), and OPENTREP::Place::getAsciiName().
|
inline |
Get the short list of alternate names (without language codes).
Definition at line 94 of file Location.hpp.
Referenced by OPENTREP::Place::getAltNameShortListString().
|
inline |
Get the list of IATA codes of the travel-related POR.
Definition at line 101 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the envelope ID.
Definition at line 108 of file Location.hpp.
Referenced by OPENTREP::Place::getEnvelopeID(), and OPENTREP::Result::getEnvelopeID().
|
inline |
Get the beginning date of the validity period
Definition at line 115 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::Place::getDateFrom().
|
inline |
Get the end date of the validity period
Definition at line 122 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::Place::getDateEnd().
|
inline |
Get the commentaries.
Definition at line 129 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::Place::getComment().
|
inline |
Get the city code.
Definition at line 136 of file Location.hpp.
Referenced by OPENTREP::Place::buildIndexSets(), OPENTREP::LocationExchange::exportLocation(), OPENTREP::Place::getCityCode(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the city name in UTF8.
Definition at line 143 of file Location.hpp.
Referenced by OPENTREP::Place::buildIndexSets(), OPENTREP::LocationExchange::exportLocation(), OPENTREP::Place::getCityUtfName(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the city name in ASCII (not necessarily in English).
Definition at line 150 of file Location.hpp.
Referenced by OPENTREP::Place::buildIndexSets(), OPENTREP::LocationExchange::exportLocation(), OPENTREP::Place::getCityAsciiName(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the city Geonames ID (may be 0 if unknown).
Definition at line 157 of file Location.hpp.
Referenced by OPENTREP::Place::getCityGeonamesID().
|
inline |
Get the state code.
Definition at line 164 of file Location.hpp.
Referenced by OPENTREP::Place::buildIndexSets(), OPENTREP::LocationExchange::exportLocation(), OPENTREP::Place::getStateCode(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the country code.
Definition at line 171 of file Location.hpp.
Referenced by OPENTREP::Place::buildIndexSets(), OPENTREP::LocationExchange::exportLocation(), OPENTREP::Place::getCountryCode(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the alternative country code.
Definition at line 178 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::Place::getAltCountryCode().
|
inline |
Get the country name.
Definition at line 185 of file Location.hpp.
Referenced by OPENTREP::Place::buildIndexSets(), OPENTREP::LocationExchange::exportLocation(), OPENTREP::Place::getCountryName(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the continent code.
Definition at line 192 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::Place::getContinentCode().
|
inline |
Get the continent name.
Definition at line 199 of file Location.hpp.
Referenced by OPENTREP::Place::buildIndexSets(), OPENTREP::LocationExchange::exportLocation(), OPENTREP::Place::getContinentName(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the time-zone.
Definition at line 206 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), OPENTREP::Place::getTimeZone(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the GMT offset (e.g., 1)
Definition at line 213 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::Place::getGMTOffset().
|
inline |
Get the DST offset (e.g., 2)
Definition at line 220 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::Place::getDSTOffset().
|
inline |
Get the raw offset (e.g., 1)
Definition at line 227 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::Place::getRawOffset().
|
inline |
Get the latitude.
Definition at line 234 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), OPENTREP::Place::getLatitude(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the longitude.
Definition at line 241 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), OPENTREP::Place::getLongitude(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the feature class (e.g., S for spot).
Definition at line 248 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::Place::getFeatureClass().
|
inline |
Get the feature code (e.g., AIRP for airport).
Definition at line 255 of file Location.hpp.
Referenced by OPENTREP::Place::buildIndexSets(), OPENTREP::LocationExchange::exportLocation(), and OPENTREP::Place::getFeatureCode().
|
inline |
Get the administrative code of rank 1 (e.g., IL for Illinois).
Definition at line 262 of file Location.hpp.
Referenced by OPENTREP::Place::buildIndexSets(), OPENTREP::LocationExchange::exportLocation(), OPENTREP::Place::getAdmin1Code(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the administrative UTF8 name of rank 1 (e.g., Illinois).
Definition at line 269 of file Location.hpp.
Referenced by OPENTREP::Place::buildIndexSets(), OPENTREP::LocationExchange::exportLocation(), OPENTREP::Place::getAdmin1UtfName(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the administrative ASCII name of rank 1 (e.g., Illinois).
Definition at line 276 of file Location.hpp.
Referenced by OPENTREP::Place::buildIndexSets(), OPENTREP::LocationExchange::exportLocation(), OPENTREP::Place::getAdmin1AsciiName(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the administrative code of rank 2.
Definition at line 283 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), OPENTREP::Place::getAdmin2Code(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the administrative UTF8 name of rank 2 (e.g., Alpes-Maritimes).
Definition at line 290 of file Location.hpp.
Referenced by OPENTREP::Place::buildIndexSets(), OPENTREP::LocationExchange::exportLocation(), OPENTREP::Place::getAdmin2UtfName(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the administrative ASCII name of rank 2 (e.g., Alpes-Maritimes).
Definition at line 297 of file Location.hpp.
Referenced by OPENTREP::Place::buildIndexSets(), OPENTREP::LocationExchange::exportLocation(), OPENTREP::Place::getAdmin2AsciiName(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the administrative code of rank 3.
Definition at line 304 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), OPENTREP::Place::getAdmin3Code(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the administrative code of rank 4.
Definition at line 311 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), OPENTREP::Place::getAdmin4Code(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the population (number of inhabitants).
Definition at line 318 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::Place::getPopulation().
|
inline |
Get the elevation.
Definition at line 325 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::Place::getElevation().
|
inline |
Get the GTopo30.
Definition at line 332 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::Place::getGTopo30().
|
inline |
Get the PageRank/importance.
Definition at line 339 of file Location.hpp.
Referenced by OPENTREP::Place::buildIndexSets(), OPENTREP::LocationExchange::exportLocation(), OPENTREP::Result::getPageRank(), OPENTREP::Place::getPageRank(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the modification date.
Definition at line 346 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::Place::getModificationDate().
|
inline |
Get the Wikipedia link.
Definition at line 353 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), OPENTREP::Place::getWikiLink(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the map of name lists.
Definition at line 360 of file Location.hpp.
Referenced by OPENTREP::Place::buildIndexSets(), OPENTREP::LocationExchange::exportLocation(), OPENTREP::Place::getNameMatrix(), 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 373 of file Location.hpp.
References OPENTREP::NameMatrix::getNameList().
Referenced by OPENTREP::Place::getNameList().
|
inline |
Get the original keywords.
Definition at line 381 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), OPENTREP::Place::getOriginalKeywords(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the corrected keywords.
Definition at line 388 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), OPENTREP::Place::getCorrectedKeywords(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the matching percentage.
Definition at line 395 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), OPENTREP::Place::getPercentage(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the allowed edit distance/error.
Definition at line 402 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), OPENTREP::Place::getEditDistance(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the maximal allowable edit distance/error, with which the matching has been made.
Definition at line 410 of file Location.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), OPENTREP::Place::getAllowableEditDistance(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the list of extra matching (similar) locations.
Definition at line 417 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 424 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 431 of file Location.hpp.
Referenced by OPENTREP::Place::getRawDataString().
|
inline |
Set the primary key (IATA and ICAO codes, Geonames ID) of that location.
Definition at line 441 of file Location.hpp.
Referenced by OPENTREP::Place::setKey().
|
inline |
Set the IATA code.
Definition at line 448 of file Location.hpp.
References OPENTREP::LocationKey::setIataCode().
Referenced by OPENTREP::PorParserHelper::storeIataCode::operator()(), and OPENTREP::Place::setIataCode().
|
inline |
Set the IATA location type (e.g., A for airport).
Definition at line 455 of file Location.hpp.
References OPENTREP::LocationKey::setIataType().
Referenced by OPENTREP::PorParserHelper::storePORType::operator()(), and OPENTREP::Place::setIataType().
|
inline |
Set the Geonames ID.
Definition at line 462 of file Location.hpp.
References OPENTREP::LocationKey::setGeonamesID().
Referenced by OPENTREP::PorParserHelper::storeGeonamesID::operator()(), and OPENTREP::Place::setGeonamesID().
|
inline |
Set the ICAO code.
Definition at line 469 of file Location.hpp.
Referenced by OPENTREP::PorParserHelper::storeIcaoCode::operator()(), and OPENTREP::Place::setIcaoCode().
|
inline |
Set the FAA code.
Definition at line 476 of file Location.hpp.
Referenced by OPENTREP::PorParserHelper::storeFaaCode::operator()(), and OPENTREP::Place::setFaaCode().
|
inline |
Set the common name (usually in American English, but not necessarily in ASCII).
Definition at line 484 of file Location.hpp.
Referenced by OPENTREP::PorParserHelper::storeCommonName::operator()(), and OPENTREP::Place::setCommonName().
|
inline |
Set the ASCII name (not necessarily in English).
Definition at line 491 of file Location.hpp.
Referenced by OPENTREP::PorParserHelper::storeAsciiName::operator()(), and OPENTREP::Place::setAsciiName().
|
inline |
Set the short list of alternate names (without language codes).
Definition at line 498 of file Location.hpp.
Referenced by consolidateAltNameShortListString(), and OPENTREP::Place::setAltNameShortListString().
|
inline |
Set the list of IATA codes of the travel-related POR.
Definition at line 505 of file Location.hpp.
Referenced by consolidateTvlPORListString().
|
inline |
Set the envelope ID.
Definition at line 512 of file Location.hpp.
Referenced by OPENTREP::PorParserHelper::storeEnvelopeID::operator()(), and OPENTREP::Place::setEnvelopeID().
|
inline |
Set the beginning date of the validity period
Definition at line 519 of file Location.hpp.
Referenced by OPENTREP::Place::setDateFrom().
|
inline |
Set the end date of the validity period
Definition at line 526 of file Location.hpp.
Referenced by OPENTREP::Place::setDateEnd().
|
inline |
Set the commentaries.
Definition at line 533 of file Location.hpp.
Referenced by OPENTREP::Place::setComment().
|
inline |
Set the related/served IATA city code.
Definition at line 540 of file Location.hpp.
Referenced by OPENTREP::PorParserHelper::storeCityCode::operator()(), and OPENTREP::Place::setCityCode().
|
inline |
Set the city name in UTF8.
Definition at line 547 of file Location.hpp.
Referenced by OPENTREP::PorParserHelper::storeCityUtfName::operator()(), and OPENTREP::Place::setCityUtfName().
|
inline |
Set the city name in ASCII (not necessarily in English).
Definition at line 554 of file Location.hpp.
Referenced by OPENTREP::PorParserHelper::storeCityAsciiName::operator()(), and OPENTREP::Place::setCityAsciiName().
|
inline |
Set the city Geonames ID (may be 0 if unknown).
Definition at line 561 of file Location.hpp.
Referenced by OPENTREP::PorParserHelper::storeCityGeonamesID::operator()(), and OPENTREP::Place::setCityGeonamesID().
|
inline |
Set the country code.
Definition at line 568 of file Location.hpp.
Referenced by OPENTREP::PorParserHelper::storeCountryCode::operator()(), and OPENTREP::Place::setCountryCode().
|
inline |
Set the alternative country code.
Definition at line 575 of file Location.hpp.
Referenced by OPENTREP::PorParserHelper::storeAltCountryCode::operator()(), and OPENTREP::Place::setAltCountryCode().
|
inline |
Set the country name.
Definition at line 582 of file Location.hpp.
Referenced by OPENTREP::PorParserHelper::storeCountryName::operator()(), and OPENTREP::Place::setCountryName().
|
inline |
Set the state code.
Definition at line 589 of file Location.hpp.
Referenced by OPENTREP::PorParserHelper::storeStateCode::operator()(), and OPENTREP::Place::setStateCode().
|
inline |
Set the continent code.
Definition at line 596 of file Location.hpp.
Referenced by OPENTREP::Place::setContinentCode().
|
inline |
Set the continent name.
Definition at line 603 of file Location.hpp.
Referenced by OPENTREP::PorParserHelper::storeContinentName::operator()(), and OPENTREP::Place::setContinentName().
|
inline |
Set the time-zone.
Definition at line 610 of file Location.hpp.
Referenced by OPENTREP::PorParserHelper::storeTimeZone::operator()(), and OPENTREP::Place::setTimeZone().
|
inline |
Set the GMT offset (e.g., 1)
Definition at line 617 of file Location.hpp.
Referenced by OPENTREP::PorParserHelper::storeGMTOffset::operator()(), and OPENTREP::Place::setGMTOffset().
|
inline |
Set the DST offset (e.g., 2)
Definition at line 624 of file Location.hpp.
Referenced by OPENTREP::PorParserHelper::storeDSTOffset::operator()(), and OPENTREP::Place::setDSTOffset().
|
inline |
Set the raw offset (e.g., 1)
Definition at line 631 of file Location.hpp.
Referenced by OPENTREP::PorParserHelper::storeRawOffset::operator()(), and OPENTREP::Place::setRawOffset().
|
inline |
Set the geographical latitude.
Definition at line 638 of file Location.hpp.
Referenced by OPENTREP::PorParserHelper::storeLatitude::operator()(), and OPENTREP::Place::setLatitude().
|
inline |
Set the geographical longitude.
Definition at line 645 of file Location.hpp.
Referenced by OPENTREP::PorParserHelper::storeLongitude::operator()(), and OPENTREP::Place::setLongitude().
|
inline |
Set the feature class (e.g., S for spot).
Definition at line 652 of file Location.hpp.
Referenced by OPENTREP::PorParserHelper::storeFeatureClass::operator()(), and OPENTREP::Place::setFeatureClass().
|
inline |
Set the feature code (e.g., AIRP for airport).
Definition at line 659 of file Location.hpp.
Referenced by OPENTREP::PorParserHelper::storeFeatureCode::operator()(), and OPENTREP::Place::setFeatureCode().
|
inline |
Set the administrative code of rank 1 (e.g., IL for Illinois).
Definition at line 666 of file Location.hpp.
Referenced by OPENTREP::PorParserHelper::storeAdm1Code::operator()(), and OPENTREP::Place::setAdmin1Code().
|
inline |
Set the administrative UTF8 name of rank 1 (e.g., Illinois).
Definition at line 673 of file Location.hpp.
Referenced by OPENTREP::PorParserHelper::storeAdm1UtfName::operator()(), and OPENTREP::Place::setAdmin1UtfName().
|
inline |
Set the administrative ASCII name of rank 1 (e.g., Illinois).
Definition at line 680 of file Location.hpp.
Referenced by OPENTREP::PorParserHelper::storeAdm1AsciiName::operator()(), and OPENTREP::Place::setAdmin1AsciiName().
|
inline |
Set the administrative code of rank 2.
Definition at line 687 of file Location.hpp.
Referenced by OPENTREP::PorParserHelper::storeAdm2Code::operator()(), and OPENTREP::Place::setAdmin2Code().
|
inline |
Set the administrative UTF8 name of rank 2 (e.g., Alpes-Maritimes).
Definition at line 694 of file Location.hpp.
Referenced by OPENTREP::PorParserHelper::storeAdm2UtfName::operator()(), and OPENTREP::Place::setAdmin2UtfName().
|
inline |
Set the administrative ASCII name of rank 2 (e.g., Alpes-Maritimes).
Definition at line 701 of file Location.hpp.
Referenced by OPENTREP::PorParserHelper::storeAdm2AsciiName::operator()(), and OPENTREP::Place::setAdmin2AsciiName().
|
inline |
Set the administrative code of rank 3.
Definition at line 708 of file Location.hpp.
Referenced by OPENTREP::PorParserHelper::storeAdm3Code::operator()(), and OPENTREP::Place::setAdmin3Code().
|
inline |
Set the administrative code of rank 4.
Definition at line 715 of file Location.hpp.
Referenced by OPENTREP::PorParserHelper::storeAdm4Code::operator()(), and OPENTREP::Place::setAdmin4Code().
|
inline |
Set the population (number of inhabitants).
Definition at line 722 of file Location.hpp.
Referenced by OPENTREP::PorParserHelper::storePopulation::operator()(), and OPENTREP::Place::setPopulation().
|
inline |
Set the elevation.
Definition at line 729 of file Location.hpp.
Referenced by OPENTREP::PorParserHelper::storeElevation::operator()(), and OPENTREP::Place::setElevation().
|
inline |
Set the GTopo30.
Definition at line 736 of file Location.hpp.
Referenced by OPENTREP::PorParserHelper::storeGTopo30::operator()(), and OPENTREP::Place::setGTopo30().
|
inline |
Set the PageRank.
Definition at line 743 of file Location.hpp.
Referenced by OPENTREP::PorParserHelper::storePageRank::operator()(), and OPENTREP::Place::setPageRank().
|
inline |
Set the modification date.
Definition at line 750 of file Location.hpp.
Referenced by OPENTREP::PorParserHelper::storeModDate::operator()(), and OPENTREP::Place::setModificationDate().
|
inline |
Set the Wikipedia link.
Definition at line 757 of file Location.hpp.
Referenced by OPENTREP::PorParserHelper::storeWikiLink::operator()(), and OPENTREP::Place::setWikiLink().
|
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 767 of file Location.hpp.
References OPENTREP::NameMatrix::addName().
Referenced by OPENTREP::Place::addName(), and OPENTREP::PorParserHelper::storeAltName::operator()().
|
inline |
Reset the map of name lists.
Definition at line 775 of file Location.hpp.
References OPENTREP::NameMatrix::reset().
Referenced by OPENTREP::Place::resetMatrix().
|
inline |
Set the original keywords.
Definition at line 782 of file Location.hpp.
Referenced by OPENTREP::Place::setOriginalKeywords().
|
inline |
Set the corrected keywords.
Definition at line 789 of file Location.hpp.
Referenced by OPENTREP::Place::setCorrectedKeywords().
|
inline |
Set the Xapian matching percentage.
Definition at line 796 of file Location.hpp.
Referenced by OPENTREP::Place::setPercentage().
|
inline |
Set the allowed edit distance/error.
Definition at line 803 of file Location.hpp.
Referenced by OPENTREP::Place::setEditDistance().
|
inline |
Set the maxiaml allowable edit distance/error, with which the matching has been made.
Definition at line 811 of file Location.hpp.
Referenced by OPENTREP::Place::setAllowableEditDistance().
|
inline |
Add an extra matching location.
Definition at line 818 of file Location.hpp.
Referenced by OPENTREP::Place::completeLocation().
|
inline |
Add an alternate matching location.
Definition at line 825 of file Location.hpp.
Referenced by OPENTREP::Place::completeLocation().
|
inline |
Set the raw data string, as stored and retrieved by Xapian.
Definition at line 832 of file Location.hpp.
Referenced by OPENTREP::Place::setRawDataString().
Date_T OPENTREP::Location::calculateDate | ( | ) | const |
Calculate the date from the staging details.
Definition at line 307 of file Location.cpp.
References _itDay, _itMonth, _itYear, OPENTREP::date_time_element< MIN, MAX >::_value, and OPENTREP::date_time_element< MIN, MAX >::check().
Referenced by OPENTREP::PorParserHelper::storeModDate::operator()().
void OPENTREP::Location::consolidateAltNameShortListString | ( | ) |
Aggregate the temporary alternate names into the short list of alternate names.
Definition at line 313 of file Location.cpp.
References _itAltNameShortList, and setAltNameShortListString().
Referenced by OPENTREP::PorParserHelper::storeAltNameShortListString::operator()().
void OPENTREP::Location::consolidateTvlPORListString | ( | ) |
Aggregate the temporary IATA codes into the list of travel-related POR.
Definition at line 331 of file Location.cpp.
References _itTvlPORList, and setTvlPORListString().
Referenced by OPENTREP::PorParserHelper::storeTvlPORListString::operator()().
|
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 349 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 188 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 193 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 269 of file Location.cpp.
References OPENTREP::NameMatrix::describe(), toShortString(), and toSingleLocationString().
Referenced by toStream(), and OPENTREP::Place::toString().
std::string OPENTREP::Location::describeKey | ( | ) | const |
Get a string describing the whole key (IATA and ICAO codes, Geonames ID).
Definition at line 204 of file Location.cpp.
References describeShortKey().
Referenced by OPENTREP::Place::describeKey().
std::string OPENTREP::Location::describeShortKey | ( | ) | const |
Get a string describing the whole key (IATA and ICAO codes, Geonames ID).
Definition at line 197 of file Location.cpp.
References OPENTREP::LocationKey::describe().
Referenced by describeKey(), OPENTREP::Place::describeShortKey(), 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 209 of file Location.cpp.
References describeShortKey().
Referenced by OPENTREP::Place::shortDisplay(), 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 245 of file Location.cpp.
References toBasicString().
Referenced by OPENTREP::Place::toShortString(), and 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 262 of file Location.cpp.
References toBasicString().
Referenced by toString().
year_t OPENTREP::Location::_itYear |
Staging Date.
Definition at line 1275 of file Location.hpp.
Referenced by calculateDate(), and OPENTREP::PorParserHelper::LocationParser< Iterator >::LocationParser().
month_t OPENTREP::Location::_itMonth |
Definition at line 1276 of file Location.hpp.
Referenced by calculateDate(), and OPENTREP::PorParserHelper::LocationParser< Iterator >::LocationParser().
day_t OPENTREP::Location::_itDay |
Definition at line 1277 of file Location.hpp.
Referenced by calculateDate(), and OPENTREP::PorParserHelper::LocationParser< Iterator >::LocationParser().
Language::EN_Language OPENTREP::Location::_itLanguageCodeNum |
Staging alternate names.
Definition at line 1282 of file Location.hpp.
LanguageCode_T OPENTREP::Location::_itLanguageCode |
Definition at line 1283 of file Location.hpp.
Referenced by OPENTREP::PorParserHelper::storeAltLangCodeFull::operator()(), and OPENTREP::PorParserHelper::storeAltName::operator()().
std::string OPENTREP::Location::_itLangCode2Char |
Definition at line 1284 of file Location.hpp.
Referenced by OPENTREP::PorParserHelper::storeAltLangCode2Char::operator()(), OPENTREP::PorParserHelper::storeAltLangCodeExt::operator()(), and OPENTREP::PorParserHelper::storeAltLangCodeHist::operator()().
std::string OPENTREP::Location::_itLangCodeExt |
Definition at line 1285 of file Location.hpp.
Referenced by OPENTREP::PorParserHelper::storeAltLangCode2Char::operator()(), and OPENTREP::PorParserHelper::storeAltLangCodeExt::operator()().
std::string OPENTREP::Location::_itLangCodeHist |
Definition at line 1286 of file Location.hpp.
Referenced by OPENTREP::PorParserHelper::storeAltLangCode2Char::operator()(), and OPENTREP::PorParserHelper::storeAltLangCodeHist::operator()().
AltNameShortList_T OPENTREP::Location::_itAltNameShortList |
Definition at line 1287 of file Location.hpp.
Referenced by consolidateAltNameShortListString(), and OPENTREP::PorParserHelper::storeAltNameShort::operator()().
TvlPORList_T OPENTREP::Location::_itTvlPORList |
Definition at line 1288 of file Location.hpp.
Referenced by consolidateTvlPORListString(), and OPENTREP::PorParserHelper::storeTvlPORCode::operator()().