Source Code
Norway Roads
Query real-time road closures and conditions from Statens Vegvesen NVDB API.
Quick Start
Check all current road closures:
./scripts/query_roads.py
Check route between two cities:
./scripts/query_roads.py --from Oslo --to Bergen
Check specific road/location:
./scripts/query_roads.py --road "Strynefjell"
Get JSON output:
./scripts/query_roads.py --json
Usage Examples
Check Route Conditions
When planning a trip between two Norwegian cities:
./scripts/query_roads.py --from Oslo --to Bergen
./scripts/query_roads.py --from Oslo --to Trondheim
./scripts/query_roads.py --from Bergen --to Stavanger
Supported cities: Oslo, Bergen, Stavanger, Trondheim, Tromsø, Kristiansand, Ålesund, Bodø
Filter by Location Name
./scripts/query_roads.py --road "Strynefjell"
./scripts/query_roads.py --road "E6"
What Data is Returned
The skill queries two types of road restrictions from NVDB:
Vegstengning (Road Closures) - Scheduled or permanent closures
- Seasonal closures (winter mountain passes)
- Landslide/avalanche closures
- Maintenance closures
- Causes: Snow (Snø), Ice (Is), Rock (Stein)
Vegsperring (Physical Barriers) - Physical blocking of roads
- Gates, barriers, concrete blocks
- Permanent restrictions
API Response Format
Each closure includes:
- location: Street/road name
- county: Norwegian county (fylke)
- municipality: Kommune
- from_date/to_date: Closure period
- cause: Reason (Snø=snow, Is=ice, Stein=rock)
- type: closure or barrier
Data Source
- API: NVDB v3 (Nasjonal VegDataBank)
- URL: https://nvdbapiles-v3.atlas.vegvesen.no
- Object types: 485 (Vegstengning), 607 (Vegsperring)
- Update frequency: Real-time from official database
- No API key required: Open public data
Common Norwegian Terms
| Norwegian | English |
|---|---|
| Vegstengning | Road closure |
| Vegsperring | Road barrier |
| Snø | Snow |
| Is | Ice |
| Stein | Rock |
| Fylke | County |
| Stengt | Closed |
Major Routes & Counties
Counties (Fylker):
- Viken (Oslo region)
- Vestland (Bergen region)
- Rogaland (Stavanger region)
- Trøndelag (Trondheim region)
- Troms og Finnmark (North)
- Agder (South)
- Møre og Romsdal (Ålesund region)
- Nordland (Bodø region)
Major Roads:
- E6: North-south trunk (Kirkenes-Halden)
- E16: Bergen-Oslo via Lærdal tunnel
- E39: West coast route
Limitations
- Shows registered closures in NVDB, not real-time traffic incidents
- For live traffic, use Vegvesen mobile app or call 175
- Winter closures are often seasonal and recurring
- Some recent incidents may not yet be registered
Reference
See references/api-docs.md for API details and city mappings.