Coverage for gws-app/gws/plugin/gbd_geoservices/__init__.py: 100%
0 statements
« prev ^ index » next coverage.py v7.16.2, created at 2026-10-05 13:35 +0200
« prev ^ index » next coverage.py v7.16.2, created at 2026-10-05 13:35 +0200
1"""GBD Geoservices search.
3Keyword and location search with the GBD Geoservices search service
4(https://geoservices.gbd-consult.de), which finds places, streets, addresses
5and points of interest. Requests are authenticated with an API key.
7Submodules
8----------
10- ``finder`` - the ``gbd_geoservices`` finder. It supports keyword and
11 geometry search, has default templates for the feature title, teaser and
12 description, and creates a ``gbd_geoservices`` model with its API key.
13- ``model`` - the ``gbd_geoservices`` model. It sends the search to the
14 service and converts the results into read-only features.
15- ``templates`` - the default feature templates.
16- ``js`` - the client part.
18A search with a keyword is sent as a phrase search; the search shape, if any,
19is sent along as the search area. A search without a keyword, but with a
20shape, is sent as a point search, with the tolerance as the radius (at most
2110 km). At most 100 results are returned. The features get the attributes
22``title``, ``subtitle``, ``teaser``, ``details`` and ``icon``, built from the
23name, category, address and places of a result.
25Example::
27 finders+ {
28 type "gbd_geoservices"
29 apiKey "..."
30 spatialContext "map"
31 }
32"""