Septima.Search.GeoStednavnSearcher
Extends Septima.Search.Searcher
Searches gst geoservice for stednavne (https://docs.dataforsyningen.dk/#gsearch-dokumentation)
Options
Name | Type | Mandatory | Default value | Description |
---|---|---|---|---|
kommunekode | String | * | "*" Search all municipalities (Default)</br>Search specific municipalities eg. "101" or "101 | |
authParams | Object | Either {ticket: 'ttttt'}, where t is a ticket issued by kortforsyningen or {login: 'lll', password: 'pppp'} |
Examples
Usage
YAML Declaration:
_type: Septima.Search.GeoStednavnSearch
_options:
authParams:
login: xxxx
password: xxxx
kommunekode: '101 157'
JS options:
geoStednavnSearchOptions = {
authParams: {
login: 'xxxx',
password: 'xxxxxx'
}
};
js client:
<!-- Include septimaSearch -->
<script type="text/javascript" src="http://search.cdn.septima.dk/{version}/septimasearch.min.js"/>
controller.addSearcher(new Septima.Search.GeoStednavnSearch(geoStednavnSearchOptions))
ES6:
import GeoStednavnSearch from './searchers/GeoStednavnSearch.js'
controller.addSearcher(new GeoStednavnSearch(geoStednavnSearchOptions))