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

The POIServices offers methods special to working with POIs. More...

#include <POIService.h>

Public Member Functions

bool 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...
 
 POIService (const DatabaseRef &database)
 
virtual ~POIService ()
 

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

osmscout::POIService::POIService ( const DatabaseRef database)
osmscout::POIService::~POIService ( )
virtual

Member Function Documentation

bool 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.
Returns
True, if success, else false

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