Skip to content

Eksempler

Martin Bjærge Jensen edited this page Sep 26, 2024 · 1 revision

Geojson

ballerup:
  foreningSearcher:
    _type: Septima.Search.DataSearcher
    _options:
      searchableData:
        _ref: "$.ballerup.searchableforeninger"
    detailhandlers:
    - _type: Septima.Search.Details
      _options:
        asList: false
        buttonText: Om forening
        details:
          - type: "labelvalue"
            label: "Navn"
            value: "$.properties.forening_navn"
            description: "Dette er en titel"
          - type: "labelvalue"
            label: "Formand"
            value: "$.properties.formand_navn"
            description: "Dette er metadata"
  searchableforeninger:
    _type: Septima.Search.SearchableGeoJson
    _options:
      singular: Forening
      plural: Foreninger
      searchProperties:
        - forening_navn
        - formand_navn
      displaynameProperty: forening_navn
      descriptionProperty: type
      idProperty: gid
      srid: epsg:25832    
      data:
        _ref: "$.ballerup.foreninger"
  foreninger: "https://ballerup.admin.gc2.io/api/v1/sql/ballerup?q=select%20*%20from%20_01_fysisk_plan_og_naturbeskyt.foreninger&key=01bca06ea1544d266d27a635abd88354&outputformat=geojson&srs=25832"
 
Clone this wiki locally