sdi_geocodingservice

This bundle contains a store for accessing geocoding REST endpoints. It integrates into the omnisearch and the search-ui bundles.

Usage

Please adjust the url property in the configuration shown below and replace [YOUR_KEY] with your personal key. To obtain a key contact the geocoding service's provider.

Configuration reference

The following app.json excerpt shows the configurable default properties of this bundle:

"sdi_geocodingservice": {
    "GeoCodingStore": {
        "id": "gcStore",
        "title": "GeoCoding",
        "useIn": ["omnisearch"],
        "description": "BKG Store",
        "omniSearchDefaultLabel": "${ui.geocodingServiceLabel}",
        "omniSearchSearchAttr": "text",
        "idProperty": "id",
        "responseDataSchema": {
            "title": "Title",
            "name": "Name",
            "objectIdField": "fulltext",
            "fields": [
                {
                    "name": "id",
                    "type": "string",
                    "identifier": true
                },
                {
                    "name": "text",
                    "type": "string"
                },
                {
                    "name": "score",
                    "type": "number",
                    "precision": "double"
                },
                {
                    "name": "geometry",
                    "type": "geometry"
                }
            ]
        },
        "_defaultQueryParameters": {},
        "queryWithCurrentSrs": false,
        "queryWithSrsWkid": 3857,
        "url":"https://sg.geodatenzentrum.de/gdz_ortssuche__[YOUR_KEY]"
    }
}