libosmscout  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups
LocationService.cpp File Reference
#include <algorithm>
#include <osmscout/LocationService.h>
#include <osmscout/util/Geometry.h>
#include <osmscout/util/Logger.h>
#include <osmscout/util/String.h>
#include <osmscout/TypeFeatures.h>
#include <iostream>

Classes

class  osmscout::CLASS_FINAL
 Representation of an (complex/multipolygon) area. More...
 

Namespaces

 osmscout
 

Typedefs

typedef std::shared_ptr
< TokenString > 
osmscout::TokenStringRef
 

Functions

static void osmscout::AddAddressResult (const SearchParameter &parameter, LocationSearchResult::MatchQuality regionMatchQuality, LocationSearchResult::MatchQuality locationMatchQuality, const AddressSearchVisitor::Result &addressMatch, LocationSearchResult::MatchQuality addressMatchQuality, LocationSearchResult &result)
 
static void osmscout::AddLocationResult (const SearchParameter &parameter, LocationSearchResult::MatchQuality regionMatchQuality, const LocationSearchVisitor::Result &locationMatch, LocationSearchResult::MatchQuality locationMatchQuality, LocationSearchResult &result)
 
static void osmscout::AddPOIResult (const SearchParameter &parameter, LocationSearchResult::MatchQuality regionMatchQuality, const POISearchVisitor::Result &poiMatch, LocationSearchResult::MatchQuality poiMatchQuality, LocationSearchResult &result)
 
static void osmscout::AddRegionResult (const SearchParameter &parameter, LocationSearchResult::MatchQuality regionMatchQuality, const AdminRegionSearchVisitor::Result &regionMatch, LocationSearchResult &result)
 
static std::list< std::string > osmscout::BuildStringListFromSubToken (const TokenStringRef &tokenString, const std::list< std::string > &tokens)
 Return a list of token by removing tokenString from the given token list (tokens). More...
 
static void osmscout::CleanupSearchPatterns (std::list< TokenStringRef > &patterns)
 
static std::list< TokenStringRef > osmscout::GenerateSearchPatterns (const std::list< std::string > &tokens, const std::unordered_set< std::string > &patternExclusions, size_t maxWords)
 
static bool osmscout::SearchForAddressForLocation (LocationIndexRef &locationIndex, const SearchParameter &parameter, const std::list< std::string > &addressTokens, const LocationSearchVisitor::Result &locationMatch, LocationSearchResult::MatchQuality regionMatchQuality, LocationSearchResult::MatchQuality locationMatchQuality, LocationSearchResult &result)
 
static bool osmscout::SearchForLocationForRegion (LocationIndexRef &locationIndex, const SearchParameter &parameter, const std::list< std::string > &locationTokens, const AdminRegionSearchVisitor::Result &regionMatch, LocationSearchResult::MatchQuality regionMatchQuality, LocationSearchResult &result)
 
static bool osmscout::SearchForLocationForRegion (LocationIndexRef &locationIndex, const SearchParameter &parameter, const std::string &locationPattern, const std::string &addressPattern, const AdminRegionSearchVisitor::Result &regionMatch, LocationSearchResult::MatchQuality regionMatchQuality, LocationSearchResult &result)
 
static bool osmscout::SearchForPOIForRegion (LocationIndexRef &locationIndex, const SearchParameter &parameter, const std::list< std::string > &poiTokens, const AdminRegionSearchVisitor::Result &regionMatch, LocationSearchResult::MatchQuality regionMatchQuality, LocationSearchResult &result)
 
static bool osmscout::SearchForPOIForRegion (LocationIndexRef &locationIndex, const SearchParameter &parameter, const std::string &poiPattern, const AdminRegionSearchVisitor::Result &regionMatch, LocationSearchResult::MatchQuality regionMatchQuality, LocationSearchResult &result)