libosmscout  1.1.1
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | List of all members
osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL Class Reference

#include <libosmscout/include/osmscout/navigation/LaneAgent.h>

Inheritance diagram for osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL:
Inheritance graph
[legend]
Collaboration diagram for osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL:
Collaboration graph
[legend]

Public Types

typedef std::unordered_map< std::string, PostalAreaPostalAreaMap
 

Public Member Functions

 LaneMessage (const Timestamp &timestamp, const Lane &lane)
 
 PositionMessage (const Timestamp &timestamp, const RouteDescriptionRef &route, const Position &position)
 
template<typename Description >
std::shared_ptr< Description > GetRouteDescription (const char *name) const
 
StopType GetType () const
 
const ObjectFileRefGetStop () const
 
void SetType (StopType stopType)
 
void SetStop (const ObjectFileRef &stop)
 
PlatformType GetType () const
 
const ObjectFileRefGetPlatform () const
 
void SetType (PlatformType platformType)
 
void SetPlatform (const ObjectFileRef &platform)
 
std::string GetName () const
 
std::string GetRef () const
 
std::string GetOperator () const
 
std::string GetNetwork () const
 
std::string GetFrom () const
 
std::string GetTo () const
 
Color GetColor () const
 
void SetName (const std::string &name)
 
void SetRef (const std::string &ref)
 
void SetOperator (const std::string &operatorName)
 
void SetNetwork (const std::string &network)
 
void SetFrom (const std::string &from)
 
void SetTo (const std::string &to)
 
void SetColor (const Color &color)
 
 RegionMetrics ()
 
 RegionPOI (const std::string &name, const ObjectFileRef &object)
 
bool operator< (const RegionPOI &other) const
 
 RegionAddress (const std::string &name, const ObjectFileRef &object)
 
bool operator< (const RegionAddress &other) const
 
std::string GetName () const
 
 PostalArea (const std::string &name)
 
void AddLocationObject (const std::string &name, const ObjectFileRef &objectRef)
 
 Region ()
 
void CalculateMinMax ()
 
bool CouldContain (const GeoBox &boundingBox) const
 
bool CouldContain (const Region &region, bool strict) const
 
bool Contains (Region &child) const
 
GeoBox GetBoundingBox () const
 Checks whether child is within this. More...
 
const std::vector< GeoBoxGetAreaBoundingBoxes () const
 
void AddLocationObject (const std::string &name, const std::string &postalCode, const ObjectFileRef &objectRef)
 
RegionRef GetRegionForNode (RegionRef &rootRegion, const GeoCoord &coord) const
 
 Router (VehicleMask vehicleMask, const std::string &filenamebase)
 
VehicleMask GetVehicleMask () const
 
std::string GetFilenamebase () const
 
std::string GetDataFilename () const
 
std::string GetVariantFilename () const
 
std::string GetIndexFilename () const
 
- Public Member Functions inherited from osmscout::NavigationMessage
 NavigationMessage (const Timestamp &timestamp)
 
virtual ~NavigationMessage ()=default
 

Public Attributes

Lane lane
 
RouteDescriptionRef route
 
Position position
 
friend PTRoute
 
std::vector< Stopstops
 
std::vector< Platform > platforms
 
DatabaseId dbId
 
DatabaseRef database
 
RoutingDatabaseRef routingDatabase
 
SimpleRoutingServiceRef router
 
RoutingProfileRef profile
 
uint32_t minRegionChars
 
uint32_t maxRegionChars
 
uint32_t minRegionWords
 
uint32_t maxRegionWords
 
uint32_t maxPOIWords
 
uint32_t minLocationChars
 
uint32_t maxLocationChars
 
uint32_t minLocationWords
 
uint32_t maxLocationWords
 
uint32_t maxAddressWords
 
FileOffset reference
 Reference to the node that is the alias. More...
 
std::string altName
 
ObjectFileRef object
 Object. More...
 
std::unordered_map< std::string, size_t > names
 map of names in different case used for this location and their use count More...
 
FileOffset dataOffsetOffset
 Offset of place where the address list offset is stored. More...
 
std::list< ObjectFileRefobjects
 Objects that represent this location. More...
 
std::list< RegionAddressaddresses
 Addresses at this location. More...
 
std::map< std::string, RegionLocation > locations
 list of indexed objects in this region More...
 
FileOffset indexOffset
 Offset into the index file. More...
 
FileOffset dataOffset
 Offset into the index file. More...
 
ObjectFileRef reference
 Reference to the object this area is based on. More...
 
std::string isIn
 Name of the parent region as stated in OSM (is_in tag) More...
 
std::list< RegionAlias > aliases
 Location that are represented by this region. More...
 
int8_t level {-1}
 Admin level or -1 if not set. More...
 
std::vector< std::vector< GeoCoord > > areas
 the geometric area of this region More...
 
std::list< RegionPOIpois
 A list of POIs in this region. More...
 
PostalAreaMap postalAreas
 Collection of objects without a postal code. More...
 
PostalAreaMap::iterator defaultPostalArea
 PostalArea for postal code "". More...
 
std::list< RegionRef > regions
 A list of sub regions. More...
 
std::map< Pixel, std::list< RegionRef > > index
 
double cellWidth
 
double cellHeight
 
- Public Attributes inherited from osmscout::NavigationMessage
const Timestamp timestamp
 

Protected Member Functions

void CalculateProbePoints ()
 
void CalculateProbePointsForArea (size_t areaIndex, size_t refinement=0)
 Finds probe points for this to be used for containment test. More...
 

Detailed Description

template<typename DataLoader>
class osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL

Message with estimated possition

A route variant consists of a number of halts.

A route variant consists of a number of platforms.

A route can have multiple variants

Normally you have one variant in one direction and a second variant in the opposite direction.

An area can contain an number of location nodes. Since they do not have their own area we define the node name as an alias for the containing area, since this is the best approximation.

A POI within a region

An area. An area is a administrative region, a city, a country, ... An area can have child areas (suburbs, ...). An area has a name and also a number of locations, which are possibly within the area but area currently also represented by this area.

Definition of a router

Member Typedef Documentation

◆ PostalAreaMap

template<typename DataLoader >
typedef std::unordered_map<std::string,PostalArea> osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::PostalAreaMap

Member Function Documentation

◆ AddLocationObject() [1/2]

template<typename DataLoader >
void osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::AddLocationObject ( const std::string &  name,
const ObjectFileRef objectRef 
)

◆ AddLocationObject() [2/2]

template<typename DataLoader >
void osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::AddLocationObject ( const std::string &  name,
const std::string &  postalCode,
const ObjectFileRef objectRef 
)

◆ CalculateMinMax()

template<typename DataLoader >
void osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::CalculateMinMax ( )

◆ CalculateProbePoints()

template<typename DataLoader >
void osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::CalculateProbePoints ( )
protected

◆ CalculateProbePointsForArea()

template<typename DataLoader >
void osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::CalculateProbePointsForArea ( size_t  areaIndex,
size_t  refinement = 0 
)
protected

Finds probe points for this to be used for containment test.

Parameters
refinementFinds probe points for an area

◆ Contains()

template<typename DataLoader >
bool osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::Contains ( Region child) const

◆ CouldContain() [1/2]

template<typename DataLoader >
bool osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::CouldContain ( const GeoBox boundingBox) const

◆ CouldContain() [2/2]

template<typename DataLoader >
bool osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::CouldContain ( const Region region,
bool  strict 
) const

◆ GetAreaBoundingBoxes()

template<typename DataLoader >
const std::vector<GeoBox> osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::GetAreaBoundingBoxes ( ) const
inline

◆ GetBoundingBox()

template<typename DataLoader >
GeoBox osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::GetBoundingBox ( ) const
inline

Checks whether child is within this.

◆ GetColor()

template<typename DataLoader >
Color osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::GetColor ( ) const
inline

◆ GetDataFilename()

template<typename DataLoader >
std::string osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::GetDataFilename ( ) const
inline

◆ GetFilenamebase()

template<typename DataLoader >
std::string osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::GetFilenamebase ( ) const
inline

◆ GetFrom()

template<typename DataLoader >
std::string osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::GetFrom ( ) const
inline

◆ GetIndexFilename()

template<typename DataLoader >
std::string osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::GetIndexFilename ( ) const
inline

◆ GetName() [1/2]

template<typename DataLoader >
std::string osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::GetName ( ) const

◆ GetName() [2/2]

template<typename DataLoader >
std::string osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::GetName ( ) const
inline

◆ GetNetwork()

template<typename DataLoader >
std::string osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::GetNetwork ( ) const
inline

◆ GetOperator()

template<typename DataLoader >
std::string osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::GetOperator ( ) const
inline

◆ GetPlatform()

template<typename DataLoader >
const ObjectFileRef& osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::GetPlatform ( ) const
inline

◆ GetRef()

template<typename DataLoader >
std::string osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::GetRef ( ) const
inline

◆ GetRegionForNode()

template<typename DataLoader >
RegionRef osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::GetRegionForNode ( RegionRef &  rootRegion,
const GeoCoord coord 
) const

◆ GetRouteDescription()

template<typename DataLoader >
template<typename Description >
std::shared_ptr<Description> osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::GetRouteDescription ( const char *  name) const
inline

◆ GetStop()

template<typename DataLoader >
const ObjectFileRef& osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::GetStop ( ) const
inline

◆ GetTo()

template<typename DataLoader >
std::string osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::GetTo ( ) const
inline

◆ GetType() [1/2]

template<typename DataLoader >
StopType osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::GetType ( ) const
inline

◆ GetType() [2/2]

template<typename DataLoader >
PlatformType osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::GetType ( ) const
inline

◆ GetVariantFilename()

template<typename DataLoader >
std::string osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::GetVariantFilename ( ) const
inline

◆ GetVehicleMask()

template<typename DataLoader >
VehicleMask osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::GetVehicleMask ( ) const
inline

◆ LaneMessage()

template<typename DataLoader >
osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::LaneMessage ( const Timestamp timestamp,
const Lane lane 
)

◆ operator<() [1/2]

template<typename DataLoader >
bool osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::operator< ( const RegionPOI other) const
inline

◆ operator<() [2/2]

template<typename DataLoader >
bool osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::operator< ( const RegionAddress other) const
inline

◆ PositionMessage()

template<typename DataLoader >
osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::PositionMessage ( const Timestamp timestamp,
const RouteDescriptionRef route,
const Position position 
)

◆ PostalArea()

template<typename DataLoader >
osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::PostalArea ( const std::string &  name)
inlineexplicit

◆ Region()

template<typename DataLoader >
osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::Region ( )

◆ RegionAddress()

template<typename DataLoader >
osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::RegionAddress ( const std::string &  name,
const ObjectFileRef object 
)
inline

◆ RegionMetrics()

template<typename DataLoader >
osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::RegionMetrics ( )

◆ RegionPOI()

template<typename DataLoader >
osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::RegionPOI ( const std::string &  name,
const ObjectFileRef object 
)
inline

◆ Router()

template<typename DataLoader >
osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::Router ( VehicleMask  vehicleMask,
const std::string &  filenamebase 
)

◆ SetColor()

template<typename DataLoader >
void osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::SetColor ( const Color color)

◆ SetFrom()

template<typename DataLoader >
void osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::SetFrom ( const std::string &  from)

◆ SetName()

template<typename DataLoader >
void osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::SetName ( const std::string &  name)

◆ SetNetwork()

template<typename DataLoader >
void osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::SetNetwork ( const std::string &  network)

◆ SetOperator()

template<typename DataLoader >
void osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::SetOperator ( const std::string &  operatorName)

◆ SetPlatform()

template<typename DataLoader >
void osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::SetPlatform ( const ObjectFileRef platform)

◆ SetRef()

template<typename DataLoader >
void osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::SetRef ( const std::string &  ref)

◆ SetStop()

template<typename DataLoader >
void osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::SetStop ( const ObjectFileRef stop)

◆ SetTo()

template<typename DataLoader >
void osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::SetTo ( const std::string &  to)

◆ SetType() [1/2]

template<typename DataLoader >
void osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::SetType ( StopType  stopType)

◆ SetType() [2/2]

template<typename DataLoader >
void osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::SetType ( PlatformType  platformType)

Member Data Documentation

◆ addresses

template<typename DataLoader >
std::list<RegionAddress> osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::addresses

Addresses at this location.

◆ aliases

template<typename DataLoader >
std::list<RegionAlias> osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::aliases

Location that are represented by this region.

◆ altName

template<typename DataLoader >
std::string osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::altName

◆ areas

template<typename DataLoader >
std::vector<std::vector<GeoCoord> > osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::areas

the geometric area of this region

◆ cellHeight

template<typename DataLoader >
double osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::cellHeight

◆ cellWidth

template<typename DataLoader >
double osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::cellWidth

◆ database

template<typename DataLoader >
DatabaseRef osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::database

◆ dataOffset

template<typename DataLoader >
FileOffset osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::dataOffset

Offset into the index file.

◆ dataOffsetOffset

template<typename DataLoader >
FileOffset osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::dataOffsetOffset

Offset of place where the address list offset is stored.

Offset into the index file.

◆ dbId

template<typename DataLoader >
DatabaseId osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::dbId

◆ defaultPostalArea

template<typename DataLoader >
PostalAreaMap::iterator osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::defaultPostalArea

PostalArea for postal code "".

◆ index

template<typename DataLoader >
std::map<Pixel,std::list<RegionRef> > osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::index

◆ indexOffset

template<typename DataLoader >
FileOffset osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::indexOffset

Offset into the index file.

◆ isIn

template<typename DataLoader >
std::string osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::isIn

Name of the parent region as stated in OSM (is_in tag)

◆ lane

template<typename DataLoader >
Lane osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::lane

◆ level

template<typename DataLoader >
int8_t osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::level {-1}

Admin level or -1 if not set.

◆ locations

template<typename DataLoader >
std::map<std::string,RegionLocation> osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::locations

list of indexed objects in this region

◆ maxAddressWords

template<typename DataLoader >
uint32_t osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::maxAddressWords

◆ maxLocationChars

template<typename DataLoader >
uint32_t osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::maxLocationChars

◆ maxLocationWords

template<typename DataLoader >
uint32_t osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::maxLocationWords

◆ maxPOIWords

template<typename DataLoader >
uint32_t osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::maxPOIWords

◆ maxRegionChars

template<typename DataLoader >
uint32_t osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::maxRegionChars

◆ maxRegionWords

template<typename DataLoader >
uint32_t osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::maxRegionWords

◆ minLocationChars

template<typename DataLoader >
uint32_t osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::minLocationChars

◆ minLocationWords

template<typename DataLoader >
uint32_t osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::minLocationWords

◆ minRegionChars

template<typename DataLoader >
uint32_t osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::minRegionChars

◆ minRegionWords

template<typename DataLoader >
uint32_t osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::minRegionWords

◆ names

template<typename DataLoader >
std::unordered_map<std::string, size_t> osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::names

map of names in different case used for this location and their use count

◆ object

template<typename DataLoader >
ObjectFileRef osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::object

Object.

Object with the given address.

◆ objects

template<typename DataLoader >
std::list<ObjectFileRef> osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::objects

Objects that represent this location.

◆ platforms

template<typename DataLoader >
std::vector<Platform> osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::platforms

◆ pois

template<typename DataLoader >
std::list<RegionPOI> osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::pois

A list of POIs in this region.

◆ position

template<typename DataLoader >
Position osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::position

◆ postalAreas

template<typename DataLoader >
PostalAreaMap osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::postalAreas

Collection of objects without a postal code.

◆ profile

template<typename DataLoader >
RoutingProfileRef osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::profile

◆ PTRoute

template<typename DataLoader >
PTRoute

◆ reference [1/2]

template<typename DataLoader >
FileOffset osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::reference

Reference to the node that is the alias.

◆ reference [2/2]

template<typename DataLoader >
ObjectFileRef osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::reference

Reference to the object this area is based on.

◆ regions

template<typename DataLoader >
std::list<RegionRef> osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::regions

A list of sub regions.

◆ route

template<typename DataLoader >
RouteDescriptionRef osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::route

◆ router

template<typename DataLoader >
SimpleRoutingServiceRef osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::router

◆ routingDatabase

template<typename DataLoader >
RoutingDatabaseRef osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::routingDatabase

◆ stops

template<typename DataLoader >
std::vector<Stop> osmscout::CLASS_FINAL< DataLoader >::CLASS_FINAL::stops

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