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

#include <Location.h>

Classes

class  RegionAlias
 

Public Member Functions

bool Match (const ObjectFileRef &object) const
 

Public Attributes

std::vector< RegionAliasaliases
 The list of alias for this region. More...
 
std::string altName
 
std::vector< FileOffsetchildrenOffsets
 The list of child region offset. More...
 
FileOffset dataOffset
 Offset of the data part of this entry. More...
 
std::string name
 name of the region More...
 
ObjectFileRef object
 The object that represents this region. More...
 
FileOffset parentRegionOffset
 Offset of the parent region index entry. More...
 
std::vector< PostalAreapostalAreas
 
FileOffset regionOffset
 Offset of this entry in the index. More...
 

Detailed Description

A named administrative region. It is used to build up hierarchical, structured containment information like "Streets in City". Most of the time an administrative region is just the area of a city, but depending on the data quality it may also be parts of the city or bigger administrative regions like states.

AdminRegions are currently returned by Database.GetMatchingAdminRegions() using the CityStreetIndex.

Member Function Documentation

◆ Match()

bool osmscout::AdminRegion::Match ( const ObjectFileRef object) const

References aliases, and osmscout::refNode.

Member Data Documentation

◆ aliases

std::vector<RegionAlias> osmscout::AdminRegion::aliases

The list of alias for this region.

Referenced by Match().

◆ altName

std::string osmscout::AdminRegion::altName

◆ childrenOffsets

std::vector<FileOffset> osmscout::AdminRegion::childrenOffsets

The list of child region offset.

◆ dataOffset

FileOffset osmscout::AdminRegion::dataOffset

Offset of the data part of this entry.

◆ name

std::string osmscout::AdminRegion::name

name of the region

◆ object

ObjectFileRef osmscout::AdminRegion::object

The object that represents this region.

◆ parentRegionOffset

FileOffset osmscout::AdminRegion::parentRegionOffset

Offset of the parent region index entry.

Referenced by osmscout::LocationIndex::ResolveAdminRegionHierachie().

◆ postalAreas

std::vector<PostalArea> osmscout::AdminRegion::postalAreas

◆ regionOffset

FileOffset osmscout::AdminRegion::regionOffset

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