Skip to content

SWEDEN API

Locations in Sweden

A point in Sweden, given as lat,lon, placed in SCB’s DeSO area and municipality, with sections read live from Swedish open sources. Same keys and allowance as the address API, but the Sweden capability must be on the subscription. A point counts as one lookup per day; /resolve is free. Swedish addresses and properties are not included: Lantmäteriet’s registers need an agreement we do not have yet.
API version
1.0.0
Endpoints
4
Sections
9
Contents

Endpoints

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

GET

/resolve

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

Parameters

NameTypeBounds and defaultDescription
lat
query · required
number55–69.2WGS84 latitude
lon
query · required
number10.5–24.3WGS84 longitude

Responses and error codes

GET

/{id}

Get all granted sections.

Parameters

NameTypeBounds and defaultDescription
id
path · required
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
query
string—Comma-separated section ids from /catalog
limit
query
integer1–100
default 100
—

Responses and error codes

GET

/{id}/sections/{section}

Get one section with pagination.

Parameters

NameTypeBounds and defaultDescription
id
path · required
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
path · required
stringriver_flood | coastal_flood | cloudburst_mapping | wells | protected_nature | weather_warnings | weather | municipal_indicators | police_events—
cursor
query
string——
limit
query
integer1–100
default 100
—

Responses and error codes

Sections

IdTitle and sourceDetails
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
Caveats
  • 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 fields · 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
Caveats
  • 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 fields · address
cloudburst_mappingMunicipal cloudburst mapping covering the point (MCF overview)
MCF Skyfallskartering översikt (mappings by municipalities and county boards), live at the point
Caveats
  • 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 fields · municipality
wellsDrilled wells within 500 m (SGU brunnsarkivet)
Sveriges geologiska undersökning (SGU) brunnsarkivet, OGC API Features (CC0), live at the point
Caveats
  • 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 fields · nearby
protected_natureProtected nature at and around the point (Naturvårdsregistret)
Naturvårdsverket, Naturvårdsregistret skyddade områden (CC0), WFS live at the point
Caveats
  • 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 fields · nearby
weather_warningsSMHI warnings in force at the point
SMHI impact-based warnings (IBWW) open data (CC BY 4.0), live
Caveats
  • 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 fields · address
weatherLatest observations at the nearest SMHI stations
SMHI meteorological observations (metobs) open data (CC BY 4.0), live
Caveats
  • 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 fields · nearby
municipal_indicatorsMunicipal key figures (Kolada)
Kolada (RKA, Rådet för främjande av kommunala analyser), CC BY 4.0, live
Caveats
  • 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 fields · municipality
police_eventsPolice events reported in the municipality, last 30 days
Polisen öppna data, händelser (polisen.se/api/events), ingested by Approach
Caveats
  • 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 fields · municipality