|
libosmscout 0.1
|
The POIServices offers methods special to working with POIs. More...
#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. | |
| 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. | |
| POIService (const DatabaseRef &database) | |
The POIServices offers methods special to working with POIs.
Currently this includes the following functionality:
|
explicit |
| 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.
| boundingBox | Bounding box, objects must be in |
| types | The resulting nodes, ways and areas must be of one of these types |
| nodes | Result of the query, in case the query succeeded. In case of errors the result is empty. |
| ways | Result of the query, in case the query succeeded. In case of errors the result is empty. |
| areas | Result of the query, in case the query succeeded. In case of errors the result is empty. |
| OSMScoutException | in case of errors |
References osmscout::Database::LoadAreasInArea(), osmscout::Database::LoadNodesInArea(), and osmscout::Database::LoadWaysInArea().
| 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.
| location | Center of the radius |
| maxDistance | Maximum radius form the location to search in |
| types | The resulting nodes, ways and areas must be of one of these types |
| nodes | Result of the query, in case the query succeeded. In case of errors the result is empty. |
| ways | Result of the query, in case the query succeeded. In case of errors the result is empty. |
| areas | Result of the query, in case the query succeeded. In case of errors the result is empty. |
| OSMScoutException | in case of errors |
References osmscout::Database::LoadAreasInRadius(), osmscout::Database::LoadNodesInRadius(), and osmscout::Database::LoadWaysInRadius().