libosmscout  0.1
osmscout::POIService Class Referencefinal

#include <POIService.h>

Public Member Functions

void GetPOIsInArea (const GeoBox &boundingBox, const TypeInfoSet &nodeTypes, std::vector< NodeRef > &nodes, const TypeInfoSet &wayTypes, std::vector< WayRef > &ways, const TypeInfoSet &areaTypes, std::vector< AreaRef > &areas) const
 Returns all objects in the given boundary that have one of the given types. More...
 
void GetPOIsInRadius (const GeoCoord &location, const Distance &maxDistance, const TypeInfoSet &nodeTypes, std::vector< NodeRef > &nodes, const TypeInfoSet &wayTypes, std::vector< WayRef > &ways, const TypeInfoSet &areaTypes, std::vector< AreaRef > &areas) const
 Returns all objects with the given max distance from the given location that have one of the given types. More...
 
 POIService (const DatabaseRef &database)
 

Detailed Description

The POIServices offers methods special to working with POIs.

Currently this includes the following functionality:

  • Locating POIs of given types in a given area

Constructor & Destructor Documentation

◆ POIService()

osmscout::POIService::POIService ( const DatabaseRef database)
explicit

Member Function Documentation

◆ GetPOIsInArea()

void osmscout::POIService::GetPOIsInArea ( const GeoBox boundingBox,
const TypeInfoSet nodeTypes,
std::vector< NodeRef > &  nodes,
const TypeInfoSet wayTypes,
std::vector< WayRef > &  ways,
const TypeInfoSet areaTypes,
std::vector< AreaRef > &  areas 
) const

Returns all objects in the given boundary that have one of the given types.

Parameters
boundingBoxBounding box, objects must be in
typesThe resulting nodes, ways and areas must be of one of these types
nodesResult of the query, in case the query succeeded. In case of errors the result is empty.
waysResult of the query, in case the query succeeded. In case of errors the result is empty.
areasResult of the query, in case the query succeeded. In case of errors the result is empty.
Exceptions
OSMScoutExceptionin case of errors

References osmscout::Database::LoadAreasInArea(), osmscout::Database::LoadNodesInArea(), and osmscout::Database::LoadWaysInArea().

◆ GetPOIsInRadius()

void osmscout::POIService::GetPOIsInRadius ( const GeoCoord location,
const Distance maxDistance,
const TypeInfoSet nodeTypes,
std::vector< NodeRef > &  nodes,
const TypeInfoSet wayTypes,
std::vector< WayRef > &  ways,
const TypeInfoSet areaTypes,
std::vector< AreaRef > &  areas 
) const

Returns all objects with the given max distance from the given location that have one of the given types.

Parameters
locationCenter of the radius
maxDistanceMaximum radius form the location to search in
typesThe resulting nodes, ways and areas must be of one of these types
nodesResult of the query, in case the query succeeded. In case of errors the result is empty.
waysResult of the query, in case the query succeeded. In case of errors the result is empty.
areasResult of the query, in case the query succeeded. In case of errors the result is empty.
Exceptions
OSMScoutExceptionin case of errors

References osmscout::Database::LoadAreasInRadius(), osmscout::Database::LoadNodesInRadius(), and osmscout::Database::LoadWaysInRadius().


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