Hopp til innhold

SVERIGE-API

Lokasjoner i Sverige

Et punkt i Sverige, oppgitt som lat,lon, plassert i SCBs DeSO-område og kommune, med seksjoner lest direkte fra svenske åpne kilder. Samme nøkler og kvote som adresse-API-et, men Sverige-tilgangen må være slått på for abonnementet. Et punkt teller som ett oppslag per døgn; /resolve er gratis. Svenske adresser og eiendommer er ikke med: Lantmäteriets registre krever en avtale vi ikke har ennå.
API-versjon
1.0.0
Endepunkter
4
Seksjoner
9
Innhold

Endepunkter

https://api.approach.no/api/v1/sweden/locations · OpenAPI-kontrakt

GET

/resolve

Place a point: DeSO area, municipality and county, without reading any section.

Parametere

NavnTypeGrenser og standardBeskrivelse
lat
spørring · påkrevd
number55–69.2WGS84 latitude
lon
spørring · påkrevd
number10.5–24.3WGS84 longitude

Svar og feilkoder

GET

/{id}

Get all granted sections.

Parametere

NavnTypeGrenser og standardBeskrivelse
id
sti · påkrevd
string^-?[0-9]{1,2}(\.[0-9]{1,8})?,-?[0-9]{1,3}(\.[0-9]{1,8})?$WGS84 latitude and longitude in decimal degrees, comma-separated, e.g. 58.94,11.17
sections
spørring
string—Comma-separated section ids from /catalog
limit
spørring
integer1–100
standard 100
—

Svar og feilkoder

GET

/{id}/sections/{section}

Get one section with pagination.

Parametere

NavnTypeGrenser og standardBeskrivelse
id
sti · påkrevd
string^-?[0-9]{1,2}(\.[0-9]{1,8})?,-?[0-9]{1,3}(\.[0-9]{1,8})?$WGS84 latitude and longitude in decimal degrees, comma-separated, e.g. 58.94,11.17
section
sti · påkrevd
stringriver_flood | coastal_flood | cloudburst_mapping | wells | protected_nature | weather_warnings | weather | municipal_indicators | police_events—
cursor
spørring
string——
limit
spørring
integer1–100
standard 100
—

Svar og feilkoder

Seksjoner

IdTittel og kildeDetaljer
river_floodRiver and lake flood mapping at the point (MCF)
Myndigheten för civilt försvar (MCF, formerly MSB) översvämningskarteringar, live at the point
Forbehold
  • MCF maps selected watercourses and lakes, not all of Sweden. not_found means the point is outside every mapped extent; it does not mean the point cannot flood, because the watercourse may never have been mapped.
  • The maps are overview mappings (översiktliga karteringar) intended for planning; most are based on a 2 m elevation model, some older ones on 50 m. They are not a site assessment.
  • Climate-adjusted scenarios assume end-of-century flows as MCF states them for each mapping; the scenario set differs between mappings.
  • Source: Myndigheten för civilt försvar (MCF), översvämningskarteringar. Service metadata states no fees and no access constraints.
6 felter · address
coastal_floodLand under water at raised sea levels along the coast (MCF)
Myndigheten för civilt försvar (MCF, formerly MSB) kustöversvämning, live at the point
Forbehold
  • A static level model: land below the stated sea water level in RH 2000. It does not model waves, wind set-up, storm duration, barriers or drainage, and is not a storm-surge forecast or return period.
  • Levels are tested at 0.5, 1.0, 1.5, 2.0, 3.0, 4.0 and 5.0 m, so the answer is a band between highest_dry_level_m and lowest_flooding_level_m, not an exact elevation.
  • MCF removed islands smaller than 5 000 m² from the layers; they show as flooded at every level.
  • not_found with reason above_5_m_sea_level means the point stays dry at 5.0 m; inland points answer the same way.
  • Source: Myndigheten för civilt försvar (MCF). Service metadata states no fees and no access constraints.
4 felter · address
cloudburst_mappingMunicipal cloudburst mapping covering the point (MCF overview)
MCF Skyfallskartering översikt (mappings by municipalities and county boards), live at the point
Forbehold
  • This is an index of which areas have a cloudburst mapping, not the mapping itself: the depth maps are held by the municipality. Ask the municipality for the result.
  • not_found means MCF's overview lists no mapping here; a municipality may have one that has not been reported to MCF.
  • Source: Myndigheten för civilt försvar (MCF).
6 felter · municipality
wellsDrilled wells within 500 m (SGU brunnsarkivet)
Sveriges geologiska undersökning (SGU) brunnsarkivet, OGC API Features (CC0), live at the point
Forbehold
  • Figures are what drillers reported to SGU, often at the time of drilling; capacity and water level change over time and are not measured by SGU.
  • Well positions carry an accuracy class; many are only accurate to within 100 m. The distance is to the recorded position.
  • A neighbouring well's yield suggests, but does not establish, what a new well here would give. Energy wells (geothermal) are included and do not supply water.
  • Property designations recorded with each well are not returned.
  • Source: Sveriges geologiska undersökning (SGU), CC0.
11 felter · nearby
protected_natureProtected nature at and around the point (Naturvårdsregistret)
Naturvårdsverket, Naturvårdsregistret skyddade områden (CC0), WFS live at the point
Forbehold
  • contains_point false means the area intersects a 2 × 2 km square around the point, not that it lies within a stated distance; up to 50 areas are returned.
  • Protection constrains what may be built or done, under the decision for each area; read the decision before relying on a constraint.
  • Source: Naturvårdsverket, Naturvårdsregistret, CC0.
8 felter · nearby
weather_warningsSMHI warnings in force at the point
SMHI impact-based warnings (IBWW) open data (CC BY 4.0), live
Forbehold
  • Only warnings whose warning area contains the point are listed. A warning for an area that ends nearby is not.
  • not_found means no SMHI warning is in force at the point at the time of the call; it is not a forecast of calm weather.
  • Source: SMHI, CC BY 4.0.
10 felter · address
weatherLatest observations at the nearest SMHI stations
SMHI meteorological observations (metobs) open data (CC BY 4.0), live
Forbehold
  • Observations are from the nearest active station for each parameter, which can be tens of kilometres away and at a different height; they describe the station, not the point.
  • value is null when the station has not reported in the latest hour.
  • Source: SMHI, CC BY 4.0.
9 felter · nearby
municipal_indicatorsMunicipal key figures (Kolada)
Kolada (RKA, Rådet för främjande av kommunala analyser), CC BY 4.0, live
Forbehold
  • Each figure is the latest year Kolada has for the municipality; years differ between indicators.
  • Figures describe the whole municipality, not the point.
  • Källa: Kolada. CC BY 4.0. The use of Kolada does not imply any partnership with RKA.
7 felter · municipality
police_eventsPolice events reported in the municipality, last 30 days
Polisen öppna data, händelser (polisen.se/api/events), ingested by Approach
Forbehold
  • Polisen's feed lists a selection of events the police chose to publish, placed at municipality or county level; it is not crime statistics and not a count of crimes at the point.
  • Events placed only at county level are not counted for a municipality.
  • The feed holds recent events only; history before Approach began collecting is absent, so early periods undercount.
  • Source: Polisen, öppna data.
5 felter · municipality