Nearby services and distance methods
proximity50 felter50 av feltene åpne i demoen
Tilgjengelig med: prøvenøkkel (åpne felt) · kjøpt kvote eller avtalt plan (alle felt) · Priser
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.
- Deprecated: kept for existing integrations and not maintained as a product. Most of its rows come from one national run in March-April 2026; the nightly refresh rewrites about 10 000 of 2.6 million addresses a night, so most figures are months old and enriched_at must be read per address. Use the sections that are answered live from current registers instead: nearby_fire_stations, nearby_police_stations, emergency_health_services (hospitals and emergency care), schools, kindergartens and local_amenities. Each carries the straight-line distance and, where a route can be measured, the driving distance and time from the routing service (driving_route), with the method named. Its other columns are read by roads, environment and the insurance indicators, which are not deprecated.
- Absent method metadata means unverified, and it is absent for almost all of this table: 2 599 001 of 2 599 002 rows carry an empty distance_provenance, so for practically every address the method, routing status and calculation time behind these figures are unrecorded. Treat a duration without provenance as an estimate of unknown origin.
- Driving time is not emergency response time — no dispatch, turnout or crew availability is modelled, and the routing graph is a periodic OpenStreetMap extract rather than live road status. Routing compares five straight-line candidates and takes the shortest, so a nearer station reached by a longer road may be missed.
- A zero-second or zero-metre result is a failed map match, not an address next door to a fire station, and is returned as null rather than as a measurement. That removed 260 fire, 440 police and 187 hospital durations and 857 distances at the time of writing; the underlying rows are unchanged and still say zero.
Felter
33 av 50 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.
| Felt | Type | Rolle | Demo |
|---|---|---|---|
| nearest_fire_station_id | integer | null | kontekst | åpen |
| nearest_fire_station_name | string | null | verdi | åpen |
| fire_station_distance_m | number | null (m) | verdi | åpen |
| fire_station_duration_s | number | null (s) | verdi | åpen |
| nearest_fire_station_km | number | null (km) | verdi | åpen |
| nearest_fire_station_min | number | null (min) | verdi | åpen |
| fire_station_distance_method | string | null | kontekst | åpen |
| fire_station_straight_line_m | number | null (m) | verdi | åpen |
| nearest_police_station_id | integer | null | kontekst | åpen |
| nearest_police_station_name | string | null | verdi | åpen |
| police_station_distance_m | number | null (m) | verdi | åpen |
| police_station_duration_s | number | null (s) | verdi | åpen |
| nearest_police_station_km | number | null (km) | verdi | åpen |
| nearest_police_station_min | number | null (min) | verdi | åpen |
| police_station_distance_method | string | null | kontekst | åpen |
| police_station_straight_line_m | number | null (m) | verdi | åpen |
| nearest_hospital_id | integer | null | kontekst | åpen |
| nearest_hospital_name | string | null | verdi | åpen |
| hospital_distance_m | number | null (m) | verdi | åpen |
| hospital_duration_s | number | null (s) | verdi | åpen |
| nearest_hospital_km | number | null (km) | verdi | åpen |
| nearest_hospital_min | number | null (min) | verdi | åpen |
| hospital_distance_method | string | null | kontekst | åpen |
| hospital_straight_line_m | number | null (m) | verdi | åpen |
| nearest_shopping_mall_id | integer | null | kontekst | åpen |
| nearest_shopping_mall_name | string | null | verdi | åpen |
| shopping_mall_distance_m | number | null (m) | verdi | åpen |
| shopping_mall_duration_s | number | null (s) | verdi | åpen |
| shopping_mall_distance_method | string | null | kontekst | åpen |
| shopping_mall_straight_line_m | number | null (m) | verdi | åpen |
| nearest_barnehage_id | string | null | kontekst | åpen |
| nearest_barnehage_name | string | null | verdi | åpen |
| barnehage_distance_m | number | null (m) | verdi | åpen |
| barnehage_duration_s | number | null (s) | verdi | åpen |
| barnehage_distance_method | string | null | kontekst | åpen |
| barnehage_straight_line_m | number | null (m) | verdi | åpen |
| nearest_lekeplass_id | string | null | kontekst | åpen |
| nearest_lekeplass_name | string | null | verdi | åpen |
| lekeplass_distance_m | number | null (m) | verdi | åpen |
| lekeplass_duration_s | number | null (s) | verdi | åpen |
| lekeplass_distance_method | string | null | kontekst | åpen |
| nearest_udir_school_id | string | null | kontekst | åpen |
| nearest_udir_school_name | string | null | verdi | åpen |
| udir_school_distance_m | number | null (m) | verdi | åpen |
| udir_school_duration_s | number | null (s) | verdi | åpen |
| udir_school_distance_method | string | null | kontekst | åpen |
| udir_school_straight_line_m | number | null (m) | verdi | åpen |
| distance_provenance | object | null | kontekst | åpen |
| enriched_at | string | null | kontekst | åpen |
| computed_at | string | null | kontekst | åpen |
Hent denne seksjonen
Send nøkkelen i X-API-Key-headeren. Seksjonen kan hentes med resten av adressen, eller alene med paginering.
curl --fail-with-body --silent --show-error \ -H "X-API-Key: $APPROACH_API_KEY" \ 'https://api.approach.no/api/v1/addresses/285717643?include=proximity' # paginert, én seksjon om gangen curl --fail-with-body --silent --show-error \ -H "X-API-Key: $APPROACH_API_KEY" \ 'https://api.approach.no/api/v1/addresses/285717643/sections/proximity?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.