{"source":"vegvesen","operation":"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. Signature: find_traffic_points(query: string, optional, default None; county_number: integer, optional, default None; road_category: string, optional, default None; lat: decimal number, decimal degrees (WGS84), optional, default None; lon: decimal number, decimal degrees (WGS84), optional, default None; radius_km: decimal number, kilometres, optional, default 50; operational_only: yes/no, optional, default True; limit: integer, items, optional, default 20; offset: integer, items, optional, default 0).","signature":"find_traffic_points(query: string, optional, default None; county_number: integer, optional, default None; road_category: string, optional, default None; lat: decimal number, decimal degrees (WGS84), optional, default None; lon: decimal number, decimal degrees (WGS84), optional, default None; radius_km: decimal number, kilometres, optional, default 50; operational_only: yes/no, optional, default True; limit: integer, items, optional, default 20; offset: integer, items, optional, default 0)","parameters":[{"name":"query","type":"string","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"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.","unit":null},{"name":"county_number","type":"integer","schema":{"anyOf":[{"type":"integer"},{"type":"null"}]},"required":false,"default":null,"description":"Norwegian county number, e.g. 3 for Oslo.","unit":null},{"name":"road_category","type":"string","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false,"default":null,"description":"One of E (Europaveg), R (Riksveg), F (Fylkesveg), K (Kommunal veg), P (Privat veg).","unit":null},{"name":"lat","type":"number","schema":{"anyOf":[{"type":"number"},{"type":"null"}]},"required":false,"default":null,"description":"WGS84 coordinate to search around. Adds distance_km to each result and sorts nearest first. Unit: decimal degrees (WGS84).","unit":"decimal degrees (WGS84)"},{"name":"lon","type":"number","schema":{"anyOf":[{"type":"number"},{"type":"null"}]},"required":false,"default":null,"description":"WGS84 coordinate to search around. Adds distance_km to each result and sorts nearest first. Unit: decimal degrees (WGS84).","unit":"decimal degrees (WGS84)"},{"name":"radius_km","type":"number","schema":{"type":"number"},"required":false,"default":50,"description":"Max distance from lat/lon (default 50). Unit: kilometres.","unit":"kilometres"},{"name":"operational_only","type":"boolean","schema":{"type":"boolean"},"required":false,"default":true,"description":"True (default) to only return currently active stations.","unit":null},{"name":"limit","type":"integer","schema":{"type":"integer"},"required":false,"default":20,"description":"Max results to return, 1 to 100 (default 20). Unit: items.","unit":"items"},{"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.","unit":"items"}],"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","schema_scope":"#/data in the successful operation envelope","response_schema":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]},"road_reference":{"type":["string","null"]},"municipality":{"type":["string","null"]},"county":{"type":["string","null"]},"lat":{"type":["number","null"]},"lon":{"type":["number","null"]},"type":{"type":["string","null"]},"operational":{"type":"boolean"},"latest_hourly_data":{"type":["string","null"],"format":"date-time"},"distance_km":{"type":"number"}},"additionalProperties":false,"required":["id","name"]}},{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]},"road_reference":{"type":["string","null"]},"municipality":{"type":["string","null"]},"county":{"type":["string","null"]},"lat":{"type":["number","null"]},"lon":{"type":["number","null"]},"type":{"type":["string","null"]},"operational":{"type":"boolean"},"latest_hourly_data":{"type":["string","null"],"format":"date-time"},"distance_km":{"type":"number"}},"additionalProperties":false,"required":["id","name"]}},"note":{"type":"string"}},"additionalProperties":false,"required":["results","note"]}]},"response_schema_status":{"status":"declared","codegen_safe":true,"description":"Maintained response contract."},"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."},"error_contract":{"scope":"top-level HTTP error response; never part of a success payload","schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"retryable":{"type":"boolean"},"details":{"type":"object"}},"additionalProperties":false,"required":["code","message","retryable"]},"suggestion":{"type":"string"},"_meta":{"type":"object","properties":{"retrieved_at":{"type":"string","format":"date-time"},"language":{"type":"string","const":"en"},"content_languages":{"type":"array","items":{"type":"string"}},"sources":{"type":"array","items":{"type":"object"}}},"required":["retrieved_at","language","content_languages","sources"]},"_links":{"type":"object","properties":{"self":{"type":"string","format":"uri"},"api_index":{"type":"string","format":"uri"},"feedback":{"type":"string","format":"uri"}},"required":["self","api_index","feedback"],"additionalProperties":false}},"additionalProperties":false,"required":["error","suggestion","_meta","_links"]},"statuses":{"400":{"codes":["MISSING_PARAMETER","INVALID_PARAMETER","INVALID_REQUEST"],"retryable":false},"404":{"codes":["SOURCE_NOT_FOUND","OPERATION_NOT_FOUND","ENTITY_NOT_FOUND"],"retryable":false},"429":{"codes":["RATE_LIMITED","GATEWAY_RATE_LIMITED"],"retryable":true},"502":{"codes":["SOURCE_UNAVAILABLE"],"retryable":true},"500":{"codes":["INTERNAL_ERROR"],"retryable":true}}},"_links":{"self":"https://allemannsdata.com/wiki/api/v1/kilder/vegvesen/find_traffic_points/schema","operation":"https://allemannsdata.com/wiki/api/v1/kilder/vegvesen/find_traffic_points","source":"https://allemannsdata.com/wiki/api/v1/kilder/vegvesen","feedback":"https://allemannsdata.com/wiki/api/v1/feedback"},"output_fields":["[].id","[].name","[].road_reference","[].municipality","[].county","[].lat","[].lon","[].type","[].operational","[].latest_hourly_data","[].distance_km","results","results[].id","results[].name","results[].road_reference","results[].municipality","results[].county","results[].lat","results[].lon","results[].type","results[].operational","results[].latest_hourly_data","results[].distance_km","note"],"output_fields_truncated":false,"canonical_field_aliases":{"identifier":["[].id","results[].id"],"name":["[].name","results[].name"],"latitude":["[].lat","results[].lat"],"longitude":["[].lon","results[].lon"]},"response_example":{"source":"vegvesen","operation":"find_traffic_points","parameters":{"query":"example value","county_number":1,"road_category":"example value","lat":59.91,"lon":10.75,"radius_km":50,"operational_only":true,"limit":20},"data":[{"id":"example-id","name":"Example","road_reference":"example value","municipality":"example value","county":"example value","lat":59.91,"lon":10.75,"type":"example value","operational":true,"latest_hourly_data":"2026-01-15T12:00:00Z","distance_km":1.0}],"entities":[{"type":"place","id":"59.91,10.75","name":"59.91, 10.75","source":"vegvesen","description":"Coordinate used as the operation input.","coordinates":{"lat":59.91,"lon":10.75,"crs":"WGS84"}}],"_meta":{"retrieved_at":"2026-01-15T12:00:00Z","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.","cache_ttl_seconds":900,"documentation":"https://www.vegvesen.no/fag/teknologi/apne-data/"}]},"_provenance":{"data":{"source":"vegvesen","source_api":"https://allemannsdata.com/wiki/api/v1/kilder/vegvesen"},"entities":{"source":"vegvesen","source_api":"https://allemannsdata.com/wiki/api/v1/kilder/vegvesen","derived_from":"#/data","description":"Normalized projection of data."}},"_links":{"self":"https://allemannsdata.com/wiki/api/v1/kilder/vegvesen/find_traffic_points","source":"https://allemannsdata.com/wiki/api/v1/kilder/vegvesen","wiki":"https://allemannsdata.com/wiki/kilder/vegvesen/find_traffic_points/","feedback":"https://allemannsdata.com/wiki/api/v1/feedback"}}}
