{"id":"vegvesen","name":"Norwegian Public Roads Administration","description":"Traffic counts, annual traffic, road objects, road references and current traffic messages.","documentation":"https://www.vegvesen.no/fag/teknologi/apne-data/","operations":[{"name":"find_traffic_points","description":"Find traffic registration points (trafikkregistreringspunkt) - the\nphysical counting stations on Norwegian roads that this server's other\ntraffic tools read from. Search by name, spatially around a coordinate,\nor both; all filters combine.","parameters":[{"name":"query","type":"string","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"display_type":"string","required":false,"default":null,"description":"Free-text substring match on the point's name, e.g. \"Lodalen\". When the query equals a municipality name, only points in that municipality are returned and substring hits elsewhere (\"Bergen\" also matches \"Bergenhus\" in \u00d8stfold) are dropped but reported in a `note`. When no municipality matches the query, all substring hits are returned as-is."},{"name":"county_number","type":"integer","schema":{"anyOf":[{"type":"integer"},{"type":"null"}]},"display_type":"integer","required":false,"default":null,"description":"Norwegian county number, e.g. 3 for Oslo."},{"name":"road_category","type":"string","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"display_type":"string","required":false,"default":null,"description":"One of E (Europaveg), R (Riksveg), F (Fylkesveg), K (Kommunal veg), P (Privat veg)."},{"name":"lat","type":"number","schema":{"anyOf":[{"type":"number"},{"type":"null"}]},"display_type":"decimal number","required":false,"default":null,"description":"WGS84 coordinate to search around. Adds distance_km to each result and sorts nearest first."},{"name":"lon","type":"number","schema":{"anyOf":[{"type":"number"},{"type":"null"}]},"display_type":"decimal number","required":false,"default":null,"description":"WGS84 coordinate to search around. Adds distance_km to each result and sorts nearest first."},{"name":"radius_km","type":"number","schema":{"type":"number"},"display_type":"decimal number","required":false,"default":50,"description":"Max distance from lat/lon (default 50)."},{"name":"operational_only","type":"boolean","schema":{"type":"boolean"},"display_type":"yes/no","required":false,"default":true,"description":"True (default) to only return currently active stations."},{"name":"limit","type":"integer","schema":{"type":"integer"},"display_type":"integer","required":false,"default":20,"description":"Max results to return, 1 to 100 (default 20)."},{"name":"offset","type":"integer","schema":{"type":"integer","minimum":0,"default":0},"display_type":"integer","required":false,"default":0,"description":"Number of list items to skip before returning the page."}],"json_get_url_template":"https://allemannsdata.com/wiki/api/v1/kilder/vegvesen/find_traffic_points?query={query}&county_number={county_number}&road_category={road_category}&lat={lat}&lon={lon}&radius_km=50&operational_only=true&limit=20&offset=0","output_fields":["results","note"],"output_fields_truncated":false,"canonical_field_aliases":{},"description_language":"en","documentation":"Find traffic registration points (trafikkregistreringspunkt) - the\nphysical counting stations on Norwegian roads that this server's other\ntraffic tools read from. Search by name, spatially around a coordinate,\nor both; all filters combine.\n\nArgs:\n    query: Free-text substring match on the point's name, e.g.\n        \"Lodalen\". When the query equals a municipality name, only\n        points in that municipality are returned and substring hits\n        elsewhere (\"Bergen\" also matches \"Bergenhus\" in \u00d8stfold) are\n        dropped but reported in a `note`. When no municipality matches\n        the query, all substring hits are returned as-is.\n    county_number: Norwegian county number, e.g. 3 for Oslo.\n    road_category: One of E (Europaveg), R (Riksveg), F (Fylkesveg),\n        K (Kommunal veg), P (Privat veg).\n    lat, lon: WGS84 coordinate to search around. Adds distance_km to\n        each result and sorts nearest first.\n    radius_km: Max distance from lat/lon (default 50).\n    operational_only: True (default) to only return currently active\n        stations.\n    limit: Max results to return, 1 to 100 (default 20).\n\nReturns the point `id` needed by get_traffic_volume() and\nget_average_daily_traffic(), plus municipality, county, road reference\nand coordinates. No matches, or a query naming a municipality that also\nhad substring hits elsewhere, returns {\"results\": [...], \"note\": ...}\ninstead of a bare list.","documentation_language":"en","wiki_get_endpoint":"https://allemannsdata.com/wiki/kilder/vegvesen/find_traffic_points/","wiki_get_url_template":"https://allemannsdata.com/wiki/kilder/vegvesen/find_traffic_points/?query={query}&county_number={county_number}&road_category={road_category}&lat={lat}&lon={lon}&radius_km=50&operational_only=true&limit=20&offset=0","json_endpoint":"https://allemannsdata.com/wiki/api/v1/kilder/vegvesen/find_traffic_points","response_schema":{"anyOf":[{"type":"object","properties":{"results":{"x-allemannsdata-schema-status":"unresolved","description":"Response shape is not yet declared; any JSON value is permitted."},"note":{"type":"string"}},"additionalProperties":false},{"type":"object","properties":{"results":{"type":"array","items":{"x-allemannsdata-schema-status":"unresolved","description":"Response shape is not yet declared; any JSON value is permitted."}},"note":{"type":"string"}},"additionalProperties":false},{"x-allemannsdata-schema-status":"unresolved","description":"Response shape is not yet declared; any JSON value is permitted."}]},"response_schema_status":{"status":"incomplete","codegen_safe":false,"description":"Not suitable for typed model generation: the container shape and field names are useful, but unresolved values accept any JSON value."},"entity_projection":{"status":"projected","entity_types":["traffic_point","place"],"description":"Recognized records and stable operation identifiers are projected; an empty array means the successful payload contained no recognizable entity."},"response_schema_url":"https://allemannsdata.com/wiki/api/v1/kilder/vegvesen/find_traffic_points/schema","endpoint":"https://allemannsdata.com/wiki/api/v1/kilder/vegvesen/find_traffic_points","get_url_template":"https://allemannsdata.com/wiki/api/v1/kilder/vegvesen/find_traffic_points?query={query}&county_number={county_number}&road_category={road_category}&lat={lat}&lon={lon}&radius_km=50&operational_only=true&limit=20&offset=0"},{"name":"get_traffic_volume","description":"Get recent hourly traffic volume for a registration point - the\nclosest thing to real-time traffic counts Vegvesen publishes (data\ntypically lags an hour or so behind the clock).","parameters":[{"name":"point_id","type":"string","schema":{"type":"string"},"display_type":"string","required":true,"default":null,"description":"A point id from find_traffic_points(), e.g. \"17684V2460285\"."},{"name":"hours","type":"integer","schema":{"type":"integer"},"display_type":"integer","required":false,"default":24,"description":"How many recent hours to fetch, 1 to 168 (default 24)."},{"name":"limit","type":"integer","schema":{"type":"integer","minimum":1,"maximum":100,"default":25},"display_type":"integer","required":false,"default":25,"description":"Maximum list items returned by the gateway (default 25, maximum 100)."},{"name":"offset","type":"integer","schema":{"type":"integer","minimum":0,"default":0},"display_type":"integer","required":false,"default":0,"description":"Number of list items to skip before returning the page."}],"json_get_url_template":"https://allemannsdata.com/wiki/api/v1/kilder/vegvesen/get_traffic_volume?point_id={point_id}&hours=24&limit=25&offset=0","output_fields":["point_id","name","hours","hours[].from","hours[].to","hours[].volume","hours[].coverage_pct"],"output_fields_truncated":false,"canonical_field_aliases":{"name":["name"]},"description_language":"en","documentation":"Get recent hourly traffic volume for a registration point - the\nclosest thing to real-time traffic counts Vegvesen publishes (data\ntypically lags an hour or so behind the clock).\n\nArgs:\n    point_id: A point id from find_traffic_points(), e.g. \"17684V2460285\".\n    hours: How many recent hours to fetch, 1 to 168 (default 24).\n\nReturns {point_id, name, hours: [{from, to, volume, coverage_pct}]}.\nHours without published data yet are simply omitted from the list.","documentation_language":"en","wiki_get_endpoint":"https://allemannsdata.com/wiki/kilder/vegvesen/get_traffic_volume/","wiki_get_url_template":"https://allemannsdata.com/wiki/kilder/vegvesen/get_traffic_volume/?point_id={point_id}&hours=24&limit=25&offset=0","json_endpoint":"https://allemannsdata.com/wiki/api/v1/kilder/vegvesen/get_traffic_volume","response_schema":{"type":"object","properties":{"point_id":{"type":["string","null"]},"name":{"type":["string","null"]},"hours":{"type":"array","items":{"type":"object","properties":{"from":{"x-allemannsdata-schema-status":"unresolved","description":"Response shape is not yet declared; any JSON value is permitted."},"to":{"x-allemannsdata-schema-status":"unresolved","description":"Response shape is not yet declared; any JSON value is permitted."},"volume":{"x-allemannsdata-schema-status":"unresolved","description":"Response shape is not yet declared; any JSON value is permitted."},"coverage_pct":{"x-allemannsdata-schema-status":"unresolved","description":"Response shape is not yet declared; any JSON value is permitted."}},"additionalProperties":false}}},"additionalProperties":false},"response_schema_status":{"status":"incomplete","codegen_safe":false,"description":"Not suitable for typed model generation: the container shape and field names are useful, but unresolved values accept any JSON value."},"entity_projection":{"status":"projected","entity_types":["traffic_point","place"],"description":"Recognized records and stable operation identifiers are projected; an empty array means the successful payload contained no recognizable entity."},"response_schema_url":"https://allemannsdata.com/wiki/api/v1/kilder/vegvesen/get_traffic_volume/schema","endpoint":"https://allemannsdata.com/wiki/api/v1/kilder/vegvesen/get_traffic_volume","get_url_template":"https://allemannsdata.com/wiki/api/v1/kilder/vegvesen/get_traffic_volume?point_id={point_id}&hours=24&limit=25&offset=0"},{"name":"get_average_daily_traffic","description":"Get yearly average daily traffic (AADT / \"\u00c5DT\") for a registration\npoint - the standard measure of how busy a road is, averaged over\na full year to smooth out seasonal and day-of-week swings.","parameters":[{"name":"point_id","type":"string","schema":{"type":"string"},"display_type":"string","required":true,"default":null,"description":"A point id from find_traffic_points(), e.g. \"17684V2460285\"."},{"name":"limit","type":"integer","schema":{"type":"integer","minimum":1,"maximum":100,"default":25},"display_type":"integer","required":false,"default":25,"description":"Maximum list items returned by the gateway (default 25, maximum 100)."},{"name":"offset","type":"integer","schema":{"type":"integer","minimum":0,"default":0},"display_type":"integer","required":false,"default":0,"description":"Number of list items to skip before returning the page."}],"json_get_url_template":"https://allemannsdata.com/wiki/api/v1/kilder/vegvesen/get_average_daily_traffic?point_id={point_id}&limit=25&offset=0","output_fields":["point_id","name","yearly","yearly[].year","yearly[].average_daily_traffic"],"output_fields_truncated":false,"canonical_field_aliases":{"name":["name"]},"description_language":"en","documentation":"Get yearly average daily traffic (AADT / \"\u00c5DT\") for a registration\npoint - the standard measure of how busy a road is, averaged over\na full year to smooth out seasonal and day-of-week swings.\n\nArgs:\n    point_id: A point id from find_traffic_points(), e.g. \"17684V2460285\".\n\nReturns {point_id, name, yearly: [{year, average_daily_traffic}]},\nnewest first. Years with no computed average are omitted.","documentation_language":"en","wiki_get_endpoint":"https://allemannsdata.com/wiki/kilder/vegvesen/get_average_daily_traffic/","wiki_get_url_template":"https://allemannsdata.com/wiki/kilder/vegvesen/get_average_daily_traffic/?point_id={point_id}&limit=25&offset=0","json_endpoint":"https://allemannsdata.com/wiki/api/v1/kilder/vegvesen/get_average_daily_traffic","response_schema":{"type":"object","properties":{"point_id":{"type":["string","null"]},"name":{"type":["string","null"]},"yearly":{"type":"array","items":{"type":"object","properties":{"year":{"type":["integer","null"]},"average_daily_traffic":{"x-allemannsdata-schema-status":"unresolved","description":"Response shape is not yet declared; any JSON value is permitted."}},"additionalProperties":false}}},"additionalProperties":false},"response_schema_status":{"status":"incomplete","codegen_safe":false,"description":"Not suitable for typed model generation: the container shape and field names are useful, but unresolved values accept any JSON value."},"entity_projection":{"status":"projected","entity_types":["traffic_point","place"],"description":"Recognized records and stable operation identifiers are projected; an empty array means the successful payload contained no recognizable entity."},"response_schema_url":"https://allemannsdata.com/wiki/api/v1/kilder/vegvesen/get_average_daily_traffic/schema","endpoint":"https://allemannsdata.com/wiki/api/v1/kilder/vegvesen/get_average_daily_traffic","get_url_template":"https://allemannsdata.com/wiki/api/v1/kilder/vegvesen/get_average_daily_traffic?point_id={point_id}&limit=25&offset=0"},{"name":"list_road_object_types","description":"List NVDB road object types (vegobjekttyper) - the ~400 categories of\nthings recorded against the road network, e.g. speed limits, tunnels,\nbridges, guardrails, traffic signs.","parameters":[{"name":"name","type":"string","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"display_type":"string","required":false,"default":null,"description":"Substring to filter by, matched case-insensitively against the Norwegian name (e.g. \"fartsgrense\", \"bru\", \"tunnel\"). Without this, the catalogue has ~400 entries; only the first `limit` are returned."},{"name":"limit","type":"integer","schema":{"type":"integer"},"display_type":"integer","required":false,"default":30,"description":"Max results to return, 1 to 200 (default 30)."},{"name":"offset","type":"integer","schema":{"type":"integer","minimum":0,"default":0},"display_type":"integer","required":false,"default":0,"description":"Number of list items to skip before returning the page."}],"json_get_url_template":"https://allemannsdata.com/wiki/api/v1/kilder/vegvesen/list_road_object_types?name={name}&limit=30&offset=0","output_fields":["count","returned","types","types[].id","types[].name","types[].short_name","types[].description","types[].category"],"output_fields_truncated":false,"canonical_field_aliases":{"identifier":["types[].id"],"name":["types[].name"]},"description_language":"en","documentation":"List NVDB road object types (vegobjekttyper) - the ~400 categories of\nthings recorded against the road network, e.g. speed limits, tunnels,\nbridges, guardrails, traffic signs.\n\nArgs:\n    name: Substring to filter by, matched case-insensitively against\n        the Norwegian name (e.g. \"fartsgrense\", \"bru\", \"tunnel\").\n        Without this, the catalogue has ~400 entries; only the first\n        `limit` are returned.\n    limit: Max results to return, 1 to 200 (default 30).\n\nReturns the `id` needed by search_road_objects(), plus a short\ndescription of what the type records.","documentation_language":"en","wiki_get_endpoint":"https://allemannsdata.com/wiki/kilder/vegvesen/list_road_object_types/","wiki_get_url_template":"https://allemannsdata.com/wiki/kilder/vegvesen/list_road_object_types/?name={name}&limit=30&offset=0","json_endpoint":"https://allemannsdata.com/wiki/api/v1/kilder/vegvesen/list_road_object_types","response_schema":{"type":"object","properties":{"count":{"type":"integer"},"returned":{"type":["integer","null"]},"types":{"type":"array","items":{"type":"object","properties":{"id":{"type":["string","null"]},"name":{"type":["string","null"]},"short_name":{"type":["string","null"]},"description":{"x-allemannsdata-schema-status":"unresolved","description":"Response shape is not yet declared; any JSON value is permitted."},"category":{"x-allemannsdata-schema-status":"unresolved","description":"Response shape is not yet declared; any JSON value is permitted."}},"additionalProperties":false}}},"additionalProperties":false},"response_schema_status":{"status":"incomplete","codegen_safe":false,"description":"Not suitable for typed model generation: the container shape and field names are useful, but unresolved values accept any JSON value."},"entity_projection":{"status":"projected","entity_types":["traffic_point","place"],"description":"Recognized records and stable operation identifiers are projected; an empty array means the successful payload contained no recognizable entity."},"response_schema_url":"https://allemannsdata.com/wiki/api/v1/kilder/vegvesen/list_road_object_types/schema","endpoint":"https://allemannsdata.com/wiki/api/v1/kilder/vegvesen/list_road_object_types","get_url_template":"https://allemannsdata.com/wiki/api/v1/kilder/vegvesen/list_road_object_types?name={name}&limit=30&offset=0"},{"name":"search_road_objects","description":"Search NVDB for road objects of one type, e.g. all speed limit signs\nin a county, or all tunnels on a given road.","parameters":[{"name":"type_id","type":"integer","schema":{"type":"integer"},"display_type":"integer","required":true,"default":null,"description":"A road object type id from list_road_object_types(), e.g. 105 for Fartsgrense (speed limit)."},{"name":"kommune","type":"integer","schema":{"anyOf":[{"type":"integer"},{"type":"null"}]},"display_type":"integer","required":false,"default":null,"description":"Municipality number, e.g. 301 for Oslo."},{"name":"fylke","type":"integer","schema":{"anyOf":[{"type":"integer"},{"type":"null"}]},"display_type":"integer","required":false,"default":null,"description":"County number, e.g. 3 for Oslo."},{"name":"vegsystemreferanse","type":"string","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"display_type":"string","required":false,"default":null,"description":"Road system reference, e.g. \"EV18\" or \"RV150\"."},{"name":"limit","type":"integer","schema":{"type":"integer"},"display_type":"integer","required":false,"default":20,"description":"Max results to return, 1 to 50 (default 20)."},{"name":"offset","type":"integer","schema":{"type":"integer","minimum":0,"default":0},"display_type":"integer","required":false,"default":0,"description":"Number of list items to skip before returning the page."}],"json_get_url_template":"https://allemannsdata.com/wiki/api/v1/kilder/vegvesen/search_road_objects?type_id={type_id}&kommune={kommune}&fylke={fylke}&vegsystemreferanse={vegsystemreferanse}&limit=20&offset=0","output_fields":["count","returned","objects","objects[].id","objects[].road_reference","objects[].municipality","objects[].county","objects[].properties"],"output_fields_truncated":false,"canonical_field_aliases":{"identifier":["objects[].id"]},"description_language":"en","documentation":"Search NVDB for road objects of one type, e.g. all speed limit signs\nin a county, or all tunnels on a given road.\n\nArgs:\n    type_id: A road object type id from list_road_object_types(),\n        e.g. 105 for Fartsgrense (speed limit).\n    kommune: Municipality number, e.g. 301 for Oslo.\n    fylke: County number, e.g. 3 for Oslo.\n    vegsystemreferanse: Road system reference, e.g. \"EV18\" or \"RV150\".\n    limit: Max results to return, 1 to 50 (default 20).\n\nGive at least one filter - most object types have tens of thousands\nof instances nationwide, and this returns only the first page.\n\nReturns {count (total matches nationwide for these filters), returned,\nobjects: [{id, road_reference, municipality, county, properties}]}.\n`properties` is the object's own attributes flattened to name -> value.","documentation_language":"en","wiki_get_endpoint":"https://allemannsdata.com/wiki/kilder/vegvesen/search_road_objects/","wiki_get_url_template":"https://allemannsdata.com/wiki/kilder/vegvesen/search_road_objects/?type_id={type_id}&kommune={kommune}&fylke={fylke}&vegsystemreferanse={vegsystemreferanse}&limit=20&offset=0","json_endpoint":"https://allemannsdata.com/wiki/api/v1/kilder/vegvesen/search_road_objects","response_schema":{"type":"object","properties":{"count":{"type":["integer","null"]},"returned":{"type":"integer"},"objects":{"type":"array","items":{"type":"object","properties":{"id":{"type":["string","null"]},"road_reference":{"type":"array","items":{"x-allemannsdata-schema-status":"unresolved","description":"Response shape is not yet declared; any JSON value is permitted."}},"municipality":{"x-allemannsdata-schema-status":"unresolved","description":"Response shape is not yet declared; any JSON value is permitted."},"county":{"x-allemannsdata-schema-status":"unresolved","description":"Response shape is not yet declared; any JSON value is permitted."},"properties":{"type":"object","additionalProperties":{"type":["string","number","boolean","null"]}}},"additionalProperties":false}}},"additionalProperties":false},"response_schema_status":{"status":"incomplete","codegen_safe":false,"description":"Not suitable for typed model generation: the container shape and field names are useful, but unresolved values accept any JSON value."},"entity_projection":{"status":"projected","entity_types":["traffic_point","place"],"description":"Recognized records and stable operation identifiers are projected; an empty array means the successful payload contained no recognizable entity."},"response_schema_url":"https://allemannsdata.com/wiki/api/v1/kilder/vegvesen/search_road_objects/schema","endpoint":"https://allemannsdata.com/wiki/api/v1/kilder/vegvesen/search_road_objects","get_url_template":"https://allemannsdata.com/wiki/api/v1/kilder/vegvesen/search_road_objects?type_id={type_id}&kommune={kommune}&fylke={fylke}&vegsystemreferanse={vegsystemreferanse}&limit=20&offset=0"},{"name":"get_road_at_point","description":"Find the road network reference nearest a coordinate - the road-network\nequivalent of reverse geocoding an address.","parameters":[{"name":"lat","type":"number","schema":{"type":"number"},"display_type":"decimal number","required":true,"default":null,"description":"WGS84 coordinate."},{"name":"lon","type":"number","schema":{"type":"number"},"display_type":"decimal number","required":true,"default":null,"description":"WGS84 coordinate."},{"name":"limit","type":"integer","schema":{"type":"integer","minimum":1,"maximum":100,"default":25},"display_type":"integer","required":false,"default":25,"description":"Maximum list items returned by the gateway (default 25, maximum 100)."},{"name":"offset","type":"integer","schema":{"type":"integer","minimum":0,"default":0},"display_type":"integer","required":false,"default":0,"description":"Number of list items to skip before returning the page."}],"json_get_url_template":"https://allemannsdata.com/wiki/api/v1/kilder/vegvesen/get_road_at_point?lat={lat}&lon={lon}&limit=25&offset=0","output_fields":["lat","lon","match","road_reference","road_link_position","municipality","distance_m"],"output_fields_truncated":false,"canonical_field_aliases":{"latitude":["lat"],"longitude":["lon"]},"description_language":"en","documentation":"Find the road network reference nearest a coordinate - the road-network\nequivalent of reverse geocoding an address.\n\nArgs:\n    lat, lon: WGS84 coordinate.\n\nReturns the nearest road's short-form reference (e.g. \"EV18 S55D10\nm1625\"), its internal road-link position (kortform), the municipality\nnumber, and the distance in meters from the given point to the road.\n`road_reference` is null for unclassified/private roads that have no\nadministrative road-system reference.","documentation_language":"en","wiki_get_endpoint":"https://allemannsdata.com/wiki/kilder/vegvesen/get_road_at_point/","wiki_get_url_template":"https://allemannsdata.com/wiki/kilder/vegvesen/get_road_at_point/?lat={lat}&lon={lon}&limit=25&offset=0","json_endpoint":"https://allemannsdata.com/wiki/api/v1/kilder/vegvesen/get_road_at_point","response_schema":{"type":"object","properties":{"lat":{"type":["number","null"]},"lon":{"type":["number","null"]},"match":{"type":"null"},"road_reference":{"x-allemannsdata-schema-status":"unresolved","description":"Response shape is not yet declared; any JSON value is permitted."},"road_link_position":{"x-allemannsdata-schema-status":"unresolved","description":"Response shape is not yet declared; any JSON value is permitted."},"municipality":{"x-allemannsdata-schema-status":"unresolved","description":"Response shape is not yet declared; any JSON value is permitted."},"distance_m":{"x-allemannsdata-schema-status":"unresolved","description":"Response shape is not yet declared; any JSON value is permitted."}},"additionalProperties":false},"response_schema_status":{"status":"incomplete","codegen_safe":false,"description":"Not suitable for typed model generation: the container shape and field names are useful, but unresolved values accept any JSON value."},"entity_projection":{"status":"projected","entity_types":["traffic_point","place"],"description":"Recognized records and stable operation identifiers are projected; an empty array means the successful payload contained no recognizable entity."},"response_schema_url":"https://allemannsdata.com/wiki/api/v1/kilder/vegvesen/get_road_at_point/schema","endpoint":"https://allemannsdata.com/wiki/api/v1/kilder/vegvesen/get_road_at_point","get_url_template":"https://allemannsdata.com/wiki/api/v1/kilder/vegvesen/get_road_at_point?lat={lat}&lon={lon}&limit=25&offset=0"},{"name":"get_traffic_messages","description":"Get traffic messages (veimeldinger) from Vegvesen's DATEX II feed -\nroadworks, road closures, incidents, ferry disruptions, reduced speed\nand lane restrictions on Norwegian roads. Newest first.","parameters":[{"name":"road_number","type":"string","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"display_type":"string","required":false,"default":null,"description":"Filter to one road, e.g. \"E16\", \"F42\", \"RV150\" (Ev/Rv/Fv prefixes are normalized, so \"Fv. 42\" also works)."},{"name":"situation_type","type":"string","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"display_type":"string","required":false,"default":null,"description":"Filter on message type. Main types: MaintenanceWorks, ConstructionWorks (roadworks), RoadOrCarriagewayOrLaneManagement (closures/lane control), SpeedManagement, ReroutingManagement, GeneralNetworkManagement, Accident, VehicleObstruction, EnvironmentalObstruction, AnimalPresenceObstruction, InfrastructureDamageObstruction, PublicEvent, TransitInformation (ferry). Sub-types also match, e.g. \"roadClosed\", \"roadworks\", \"ferry\", \"rockfalls\", \"temporaryTrafficLights\"."},{"name":"lat","type":"number","schema":{"anyOf":[{"type":"number"},{"type":"null"}]},"display_type":"decimal number","required":false,"default":null,"description":"WGS84 coordinate to search around."},{"name":"lon","type":"number","schema":{"anyOf":[{"type":"number"},{"type":"null"}]},"display_type":"decimal number","required":false,"default":null,"description":"WGS84 coordinate to search around."},{"name":"radius_km","type":"number","schema":{"type":"number"},"display_type":"decimal number","required":false,"default":50,"description":"Search radius when lat/lon is given (default 50)."},{"name":"include_planned","type":"boolean","schema":{"type":"boolean"},"display_type":"yes/no","required":false,"default":false,"description":"False (default) returns only messages active right now; True also includes announced future works/closures."},{"name":"limit","type":"integer","schema":{"type":"integer"},"display_type":"integer","required":false,"default":30,"description":"Max messages to return, 1 to 100 (default 30)."},{"name":"offset","type":"integer","schema":{"type":"integer","minimum":0,"default":0},"display_type":"integer","required":false,"default":0,"description":"Number of list items to skip before returning the page."}],"json_get_url_template":"https://allemannsdata.com/wiki/api/v1/kilder/vegvesen/get_traffic_messages?road_number={road_number}&situation_type={situation_type}&lat={lat}&lon={lon}&radius_km=50&include_planned=false&limit=30&offset=0","output_fields":["matched_records","returned","messages"],"output_fields_truncated":false,"canonical_field_aliases":{},"description_language":"en","documentation":"Get traffic messages (veimeldinger) from Vegvesen's DATEX II feed -\nroadworks, road closures, incidents, ferry disruptions, reduced speed\nand lane restrictions on Norwegian roads. Newest first.\n\nArgs:\n    road_number: Filter to one road, e.g. \"E16\", \"F42\", \"RV150\"\n        (Ev/Rv/Fv prefixes are normalized, so \"Fv. 42\" also works).\n    situation_type: Filter on message type. Main types:\n        MaintenanceWorks, ConstructionWorks (roadworks),\n        RoadOrCarriagewayOrLaneManagement (closures/lane control),\n        SpeedManagement, ReroutingManagement, GeneralNetworkManagement,\n        Accident, VehicleObstruction, EnvironmentalObstruction,\n        AnimalPresenceObstruction, InfrastructureDamageObstruction,\n        PublicEvent, TransitInformation (ferry).\n        Sub-types also match, e.g. \"roadClosed\", \"roadworks\", \"ferry\",\n        \"rockfalls\", \"temporaryTrafficLights\".\n    lat, lon: WGS84 coordinate to search around.\n    radius_km: Search radius when lat/lon is given (default 50).\n    include_planned: False (default) returns only messages active right\n        now; True also includes announced future works/closures.\n    limit: Max messages to return, 1 to 100 (default 30).\n\nReturns {matched_records, returned, messages: [{situation_id, type,\nsub_types, description, location, road, severity, lat, lon, start_time,\nend_time, last_update, active}]}. Severity is one of none/low/high/\nhighest/unknown. Descriptions are Norwegian.\n\nData: Statens vegvesen DATEX II,\nhttps://www.vegvesen.no/en/fag/technology/open-data/a-selection-of-open-data/what-is-datex/","documentation_language":"en","wiki_get_endpoint":"https://allemannsdata.com/wiki/kilder/vegvesen/get_traffic_messages/","wiki_get_url_template":"https://allemannsdata.com/wiki/kilder/vegvesen/get_traffic_messages/?road_number={road_number}&situation_type={situation_type}&lat={lat}&lon={lon}&radius_km=50&include_planned=false&limit=30&offset=0","json_endpoint":"https://allemannsdata.com/wiki/api/v1/kilder/vegvesen/get_traffic_messages","response_schema":{"type":"object","properties":{"matched_records":{"x-allemannsdata-schema-status":"unresolved","description":"Response shape is not yet declared; any JSON value is permitted."},"returned":{"type":"integer"},"messages":{"anyOf":[{"type":"array","items":{"x-allemannsdata-schema-status":"unresolved","description":"Response shape is not yet declared; any JSON value is permitted."}},{"type":"array","items":{"type":"array","items":{"x-allemannsdata-schema-status":"unresolved","description":"Response shape is not yet declared; any JSON value is permitted."}}},{"x-allemannsdata-schema-status":"unresolved","description":"Response shape is not yet declared; any JSON value is permitted."}]}},"additionalProperties":false},"response_schema_status":{"status":"incomplete","codegen_safe":false,"description":"Not suitable for typed model generation: the container shape and field names are useful, but unresolved values accept any JSON value."},"entity_projection":{"status":"projected","entity_types":["traffic_point","place"],"description":"Recognized records and stable operation identifiers are projected; an empty array means the successful payload contained no recognizable entity."},"response_schema_url":"https://allemannsdata.com/wiki/api/v1/kilder/vegvesen/get_traffic_messages/schema","endpoint":"https://allemannsdata.com/wiki/api/v1/kilder/vegvesen/get_traffic_messages","get_url_template":"https://allemannsdata.com/wiki/api/v1/kilder/vegvesen/get_traffic_messages?road_number={road_number}&situation_type={situation_type}&lat={lat}&lon={lon}&radius_km=50&include_planned=false&limit=30&offset=0"}],"operation_schema_url_template":"https://allemannsdata.com/wiki/api/v1/kilder/vegvesen/{operation}/schema","related_sources":[],"_meta":{"retrieved_at":"2026-08-02T14:57:30Z","language":"en","content_languages":["en"],"sources":[{"id":"vegvesen","name":"Norwegian Public Roads Administration","description":"Traffic counts, annual traffic, road objects, road references and current traffic messages.","documentation":"https://www.vegvesen.no/fag/teknologi/apne-data/","cache_ttl_seconds":60}]},"_links":{"self":"https://allemannsdata.com/wiki/api/v1/kilder/vegvesen","names":"https://allemannsdata.com/wiki/api/v1/kilder/vegvesen?view=names","compact":"https://allemannsdata.com/wiki/api/v1/kilder/vegvesen?view=compact","full":"https://allemannsdata.com/wiki/api/v1/kilder/vegvesen","wiki":"https://allemannsdata.com/wiki/kilder/vegvesen/"}}
