Skip to content

← API reference

Modelled view from the plot

viewshed11 fields11 of these fields open in the demo
Source
Approach viewshed on Kartverket DTM
Geography
The address point
Reported stale after
400 days
Access
Requires an API key granted this section
Contract version
1
In packages
outdoor_recreation

What this does not say

Quoted verbatim from the section’s warnings field, exactly as the API returns it. They are not translated: a translation would show something other than what your response actually contains.

  • Terrain-only line of sight from 4 m above ground; buildings and trees are not modelled unless the surface model includes them.
  • Straight-line EPSG:25833 distances from the address point to the feature; not travel distance. Source features are imported as published, with their own accuracy and update cadence; updated_at is our import time.

Fields

2 of 11 fields are value fields — the ones that decide whether a record actually says anything. The rest are context: identifiers, codes and timestamps. Fields marked “open” return values to anonymous callers; the rest require a key.

FieldTypeRoleDemo
feature_idstring | nullcontextopen
labelstring | nullcontextopen
municipality_codestring | nullcontextopen
updated_atstring | nullcontextopen
visible_sharenumber | null (andel)valueopen
panorama_scorenumber | nullcontextopen
farthest_visible_mnumber | nullvalueopen
elevation_mnumber | null (m)contextopen
water_directionsarray<number> | nullcontextopen
summarystring | nullcontextopen
methodstring | nullcontextopen

Fetch this section

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

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

Try it now

This is a real call against the public demo, from here. What appears below is what the API returned — not a sample.