Hopp til innhold

← API-referanse

Trees and vegetation near the building

vegetation13 felter13 av feltene åpne i demoen
Kilde
Kartverket høydedata DOM/DTM 1 m, detected by Approach
Geografi
Adressepunktet
Regnes som foreldet etter
400 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.

  • Crowns detected on the 1 m surface model minus the terrain model (height above ground 2.5-30 m, blob-shaped, not roof-like), so a count is a count of crown blobs, not of trunks, and a hedge of small trees may read as one. A blob wider than 12 m of crown radius is a forest edge rather than a tree, and is reported as nearest_woodland_m with kind woodland in the list; Norway's broadest single crowns stay inside that. Distances run from the building's edge to the crown's edge; the building is the roof blob under the Matrikkel building point (building_source matrikkel_point), else the roof-like blob nearest the address point (nearest_roof), else a 5 m disc around the point (address_point), in which case the distances are to the point. trees lists up to 25 crowns nearest the building with east_m/north_m from the address point, height_m and crown_radius_m. canopy_share_30m is the share of ground within 30 m of the address point under a crown. No record until vegetation-enrichment has reached the address.

Felter

11 av 13 felter er verdifelter — de som avgjør om en post faktisk sier noe. Resten er kontekst: identifikatorer, koder og tidsstempler. Feltene merket «åpen» returnerer verdier til anonyme kallere; de øvrige krever nøkkel.

FeltTypeRolleDemo
nearest_tree_crown_mnumber | nullverdiåpen
nearest_woodland_mnumber | nullverdiåpen
trees_within_10minteger | nullverdiåpen
trees_within_30minteger | nullverdiåpen
tallest_tree_within_10m_mnumber | nullverdiåpen
tallest_tree_within_30m_mnumber | nullverdiåpen
canopy_share_30mnumber | null (andel)verdiåpen
treesobject | nullverdiåpen
building_sourcestring | nullverdiåpen
building_footprint_m2number | null (m2)verdiåpen
building_height_mnumber | null (m)verdiåpen
methodstring | nullkontekståpen
computed_atstring | nullkontekståpen

Hent denne seksjonen

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

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

Prøv den nå

Dette er et ekte kall mot den offentlige demoen, herfra. Svaret under er det API-et returnerte — ikke et eksempel.