Norway Roads
Query real-time road closures and conditions from Statens Vegvesen NVDB API.
Quick Start
Check all current road closures:
CODEBLOCK0
Check route between two cities:
CODEBLOCK1
Check specific road/location:
CODEBLOCK2
Get JSON output:
CODEBLOCK3
Usage Examples
Check Route Conditions
When planning a trip between two Norwegian cities:
CODEBLOCK4
Supported cities: Oslo, Bergen, Stavanger, Trondheim, Tromsø, Kristiansand, Ålesund, Bodø
Filter by Location Name
CODEBLOCK5
What Data is Returned
The skill queries two types of road restrictions from NVDB:
- 1. Vegstengning (Road Closures) - Scheduled or permanent closures
- Seasonal closures (winter mountain passes)
- Landslide/avalanche closures
- Maintenance closures
- Causes: Snow (Snø), Ice (Is), Rock (Stein)
- 2. 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
- fromdate/todate: 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.
挪威道路
从Statens Vegvesen NVDB API查询实时道路封闭和路况信息。
快速开始
查看所有当前道路封闭:
bash
./scripts/query_roads.py
查询两城市间路线:
bash
./scripts/query_roads.py --from 奥斯陆 --to 卑尔根
查询特定道路/地点:
bash
./scripts/query_roads.py --road 斯特林山
获取JSON输出:
bash
./scripts/query_roads.py --json
使用示例
查询路线状况
规划挪威两城市间行程时:
bash
./scripts/query_roads.py --from 奥斯陆 --to 卑尔根
./scripts/query_roads.py --from 奥斯陆 --to 特隆赫姆
./scripts/query_roads.py --from 卑尔根 --to 斯塔万格
支持的城市:奥斯陆、卑尔根、斯塔万格、特隆赫姆、特罗姆瑟、克里斯蒂安桑、奥勒松、博德
按地点名称筛选
bash
./scripts/query_roads.py --road 斯特林山
./scripts/query_roads.py --road E6
返回数据内容
该技能从NVDB查询两种类型的道路限制:
- 1. 道路封闭 - 计划性或永久性封闭
- 季节性封闭(冬季山口)
- 滑坡/雪崩封闭
- 维护封闭
- 原因:雪、冰、岩石
- 2. 物理障碍 - 道路物理阻挡
- 闸门、护栏、混凝土块
- 永久性限制
API响应格式
每条封闭信息包含:
- - 地点:街道/道路名称
- 郡:挪威郡
- 市镇:市镇
- 开始日期/结束日期:封闭时段
- 原因:雪、冰、岩石
- 类型:封闭或障碍
数据来源
- - API:NVDB v3(国家道路数据库)
- URL:https://nvdbapiles-v3.atlas.vegvesen.no
- 对象类型:485(道路封闭)、607(物理障碍)
- 更新频率:官方数据库实时更新
- 无需API密钥:开放公共数据
常用挪威语术语
| 挪威语 | 中文 |
|---|
| Vegstengning | 道路封闭 |
| Vegsperring |
道路障碍 |
| Snø | 雪 |
| Is | 冰 |
| Stein | 岩石 |
| Fylke | 郡 |
| Stengt | 已关闭 |
主要路线与郡
郡:
- - 维肯郡(奥斯陆地区)
- 韦斯特兰郡(卑尔根地区)
- 罗加兰郡(斯塔万格地区)
- 特伦德拉格郡(特隆赫姆地区)
- 特罗姆斯-芬马克郡(北部)
- 阿格德尔郡(南部)
- 默勒-鲁姆斯达尔郡(奥勒松地区)
- 诺尔兰郡(博德地区)
主要道路:
- - E6:南北干线(希尔克内斯-哈尔登)
- E16:卑尔根-奥斯陆经莱达尔隧道
- E39:西海岸路线
局限性
- - 仅显示NVDB中注册的封闭信息,非实时交通事件
- 实时交通请使用Vegvesen手机应用或拨打175
- 冬季封闭通常为季节性和重复性
- 部分近期事件可能尚未登记
参考
API详情和城市映射请参见references/api-docs.md。