Class: DawaSearcher

DawaSearcher

Searches Dawa (http://dawa.aws.dk/)

new DawaSearcher(options)

Parameters:
Name Type Description
options Object DawaSearcher expects these properties:
Properties
Name Type Description
kommunekode string "*" Search all municipalities (Default), Search specific municipalities eg. "101" or "101|256"
srid string eg. "25832" (Default is 4326)
Source:
  • searchers/dawaSearcher.js, line 21
Example
 
var dawaSearchOptions = {
    onSelect : function(result) {
         jQuery('#log').prepend('Adresse valgt: '+ result.title);},
    kommunekode: "151",
    matchesPhrase: "Begins with ",
    searchDelay: 200
};
searchers.push({title : 'Adresse', searcher : new Septima.Search.DawaSearcher(dawaSearchOptions)});

Extends

Methods

addCustomButtonDef(customButtonDef)

Displays an icon next to each result.
Parameters:
Name Type Description
customButtonDef Septima.Search.Searcher.CustomButtonDef
Inherited From:
Source:
  • searchers/searcher.js, line 390

createQueryResult() → {Septima.Search.QueryResult}

Create a {Septima.Search.QueryResult}.
Inherited From:
Source:
  • searchers/searcher.js, line 183
Returns:
Type
Septima.Search.QueryResult

getCentroid(geoJsonObject) → {GeoJsonObject}

Find the centroid
Parameters:
Name Type Description
geoJsonObject geoJsonObject
Inherited From:
Source:
  • searchers/searcher.js, line 221
Returns:
Type
GeoJsonObject

getPointOnSurface(geoJsonObject) → {GeoJsonObject}

Find a point guaranteed to lie on the surface
Parameters:
Name Type Description
geoJsonObject geoJsonObject
Inherited From:
Source:
  • searchers/searcher.js, line 209
Returns:
Type
GeoJsonObject

registerTarget(target)

Register a target.
Parameters:
Name Type Description
target string
Inherited From:
Source:
  • searchers/searcher.js, line 168

translateWktToGeoJsonObject(wkt) → {GeoJsonObject}

Convert a wkt string to a geojson object
Parameters:
Name Type Description
wkt string
Inherited From:
Source:
  • searchers/searcher.js, line 192
Returns:
Type
GeoJsonObject