Hopp til innhold

← API-referanse

Building cases and approved or started buildings within 250 m and 500 m of the address

building_cases_nearby17 felterIkke i demoen
Kilde
Bergen kommune innsyn plan og byggesak (open API, public records under offentleglova); Kartverket Matrikkelen bygningspunkt (CC BY 4.0)
Geografi
Rundt adressen
Regnes som foreldet etter
30 døgn
Tilgang
Krever API-nøkkel med tilgang til seksjonen
Kontraktversjon
1

Hva dette ikke sier

Gjengitt ordrett fra seksjonens warnings-felt, slik API-et returnerer det. Vi oversetter dem ikke: en oversettelse ville vist noe annet enn det svaret ditt faktisk inneholder.

  • Two halves. Building cases come only from kommuner whose case portal is ingested and may be passed on (GET /coverage, source building_cases_nearby): on 30 Sep 2026 Bergen alone, newest cases first, registered from Sep 2025. case_coverage says which applies: covered; not_covered (no case archive for the kommune; the case figures are null, not zero); or restricted (Oslo: the ingested Plan- og bygningsetaten saksinnsyn states no licence and its robots.txt disallows crawling, so its cases are not served until Oslo is read from eInnsyn's open journal). An empty list in a covered kommune still does not prove no case exists nearby.
  • approved/started buildings are national: Matrikkelen bygningspunkt buildings with status RA (rammetillatelse gitt) or IG (igangsettingstillatelse gitt) within the ring, null where the layer holds nothing for the kommune (buildings_covered). A status stays until completion is registered, so an old RA/IG can be a project that stalled or a completion never recorded. These are buildings, not cases, and Bergen's case archive records no rammetillatelse by that name; do not add the two halves together.
  • No applicant, tiltakshaver, ansvarlig søker or other person is served, and no case title or description: case_type (the procedural step) and measure_type (what is built or changed) are a fixed vocabulary read from the title and can be wrong or other. Cases are placed on the property by gnr/bnr against the address register; property_address is the register's address, not the case's. Bergen's portal publishes no open licence: these are public records, served as case metadata with a link to the municipal case page, whose documents can name the parties. Not in the anonymous demo or trial.

Felter

12 av 17 felter er verdifelter — de som avgjør om en post faktisk sier noe. Resten er kontekst: identifikatorer, koder og tidsstempler.

FeltTypeRolle
municipality_codestring | nullkontekst
case_coveragestring | nullverdi
cases_within_250minteger | nullverdi
open_within_250minteger | nullverdi
cases_within_500minteger | nullverdi
open_within_500minteger | nullverdi
cases_on_propertyinteger | nullverdi
latest_case_datestring | nullverdi
casesarray<object> | nullverdi
cases_listedinteger | nullkontekst
buildings_coveredboolean | nullkontekst
approved_started_buildings_within_250minteger | nullverdi
approved_started_buildings_within_500minteger | nullverdi
rammetillatelse_buildings_within_500minteger | nullverdi
igangsetting_buildings_within_500minteger | nullverdi
buildings_updated_atstring | nullkontekst
updated_atstring | nullkontekst

Hent denne seksjonen

curl -H "X-API-Key: $APPROACH_API_KEY" \
  "https://api.approach.no/api/v1/addresses/285717643?include=building_cases_nearby"

# paginated, one section at a time
curl -H "X-API-Key: $APPROACH_API_KEY" \
  "https://api.approach.no/api/v1/addresses/285717643/sections/building_cases_nearby?limit=25"

Hvorfor den ikke kan prøves her

Seksjonen er ikke en del av den offentlige demoprojeksjonen. Det er en lisens- og personvernavgjørelse, ikke et tegn på at dataene mangler: de serveres til kunder med tilgang til seksjonen.