libosmscout 1.1.1
Loading...
Searching...
No Matches
POIService.h
Go to the documentation of this file.
1#ifndef OSMSCOUT_POISERVICE_H
2#define OSMSCOUT_POISERVICE_H
3
4/*
5 This source is part of the libosmscout library
6 Copyright (C) 2014 Tim Teulings
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21*/
22
23#include <memory>
24#include <vector>
25
27
29
31
32namespace osmscout {
33
43 {
44 private:
45 DatabaseRef database;
46
47 public:
48 explicit POIService(const DatabaseRef& database);
49
50 void GetPOIsInArea(const GeoBox& boundingBox,
51 const TypeInfoSet& nodeTypes,
52 std::vector<NodeRef>& nodes,
53 const TypeInfoSet& wayTypes,
54 std::vector<WayRef>& ways,
55 const TypeInfoSet& areaTypes,
56 std::vector<AreaRef>& areas) const;
57
58 void GetPOIsInRadius(const GeoCoord& location,
59 const Distance& maxDistance,
60 const TypeInfoSet& nodeTypes,
61 std::vector<NodeRef>& nodes,
62 const TypeInfoSet& wayTypes,
63 std::vector<WayRef>& ways,
64 const TypeInfoSet& areaTypes,
65 std::vector<AreaRef>& areas) const;
66 };
67
70 using POIServiceRef = std::shared_ptr<POIService>;
71}
72
73#endif
#define OSMSCOUT_API
Definition CoreImportExport.h:45
POIService(const DatabaseRef &database)
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
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
std::shared_ptr< POIService > POIServiceRef
Definition POIService.h:70
Definition Area.h:39
std::shared_ptr< Database > DatabaseRef
Reference counted reference to an Database instance.
Definition Database.h:555