libosmscout  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups
osmscout::LocationIndex Class Reference

Location index returns objects by names (the name should be changed). More...

#include <LocationIndex.h>

Public Member Functions

void DumpStatistics ()
bool IsLocationIgnoreToken (const std::string &token) const
bool IsRegionIgnoreToken (const std::string &token) const
bool Load (const std::string &path)
 LocationIndex ()
bool ResolveAdminRegionHierachie (const AdminRegionRef &region, std::map< FileOffset, AdminRegionRef > &refs) const
bool VisitAddresses (const AdminRegion &region, const PostalArea &postalArea, const Location &location, AddressVisitor &visitor) const
 Visit all addresses for a given location (in a given AdminRegion) More...
bool VisitAdminRegions (AdminRegionVisitor &visitor) const
 Visit all admin regions. More...
bool VisitLocations (const AdminRegion &adminRegion, const PostalArea &postalArea, LocationVisitor &visitor, bool recursive=true) const
 Visit all locations within the given admin region. More...
bool VisitPOIs (const AdminRegion &region, POIVisitor &visitor, bool recursive=true) const
 Visit all POIs within the given admin region. More...
virtual ~LocationIndex ()

Static Public Attributes

static const char *const FILENAME_LOCATION_IDX = "location.idx"

Detailed Description

Location index returns objects by names (the name should be changed).

You can currently either search for regions like 'cities' or for named locations in areas like 'street in city'.

Currently every type that has option 'INDEX' set in the map.ost file is indexed as location. Areas are currently build by scanning administrative boundaries and the various sized city typed locations and areas.

Constructor & Destructor Documentation

osmscout::LocationIndex::LocationIndex ( )
osmscout::LocationIndex::~LocationIndex ( )

Member Function Documentation

void osmscout::LocationIndex::DumpStatistics ( )
bool osmscout::LocationIndex::IsLocationIgnoreToken ( const std::string &  token) const
bool osmscout::LocationIndex::IsRegionIgnoreToken ( const std::string &  token) const
bool osmscout::LocationIndex::Load ( const std::string &  path)
bool osmscout::LocationIndex::VisitAddresses ( const AdminRegion region,
const PostalArea postalArea,
const Location location,
AddressVisitor visitor 
) const
bool osmscout::LocationIndex::VisitLocations ( const AdminRegion adminRegion,
const PostalArea postalArea,
LocationVisitor visitor,
bool  recursive = true 
) const
bool osmscout::LocationIndex::VisitPOIs ( const AdminRegion region,
POIVisitor visitor,
bool  recursive = true 
) const

Member Data Documentation

const char *const osmscout::LocationIndex::FILENAME_LOCATION_IDX = "location.idx"

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