Skip to content

← API reference

Nearby traffic sensors and observations

traffic20 fields20 of these fields open in the demo
Source
Statens vegvesen
Geography
Around the address
Reported stale after
1 day
Access
Requires an API key granted this section
Contract version
2

What this does not say

Quoted verbatim from the section’s warnings field, exactly as the API returns it. They are not translated: a translation would show something other than what your response actually contains.

  • Sensors within 5 km by straight line from the address point. Proximity is geometric and does not establish that the sensor measures a road serving this address — the nearest sensor may be on a motorway the address cannot reach.
  • updated_at is import time, not the measurement interval, and this is not a live congestion feed. An empty section means no sensor within 5 km, which is the usual case away from main roads and says nothing about traffic there.
  • Routes follow the car profile, from the address to the feature; ranking remains straight-line. Static modelled travel time excludes live traffic and emergency response. Road snapping is limited to 250 m at each end. Ferries may be included without timetable/wait guarantees. Graph source date is unverified unless supplied. © OpenStreetMap contributors, ODbL: https://www.openstreetmap.org/copyright
  • walk_route and cycle_route follow OSRM's foot and bicycle profiles on the same OpenStreetMap data: paths and stairs allowed on foot, road rules for bicycles; modelled times at profile default speeds, not measured.

Fields

8 of 20 fields are value fields — the ones that decide whether a record actually says anything. The rest are context: identifiers, codes and timestamps. Fields marked “open” return values to anonymous callers; the rest require a key.

FieldTypeRoleDemo
sensor_idstring | nullcontextopen
roadstring | nullcontextopen
road_categorystring | nullcontextopen
municipality_codestring | nullcontextopen
county_codestring | nullcontextopen
latnumber | nullcontextopen
lonnumber | nullcontextopen
vehicles_per_hourinteger | nullvalueopen
heavy_vehicle_pctnumber | null (%)valueopen
coverage_pctnumber | null (%)valueopen
avg_daily_volumeinteger | nullvalueopen
avg_daily_heavyinteger | nullvalueopen
peak_hourinteger | nullcontextopen
peak_hour_volumeinteger | nullvalueopen
road_speed_limitinteger | nullvalueopen
straight_line_distance_minteger | null (m)valueopen
updated_atstring | nullcontextopen
routeobjectcontextopen
walk_routeobjectcontextopen
cycle_routeobjectcontextopen

Fetch this section

curl -H "X-API-Key: $APPROACH_API_KEY" \
  "https://api.approach.no/api/v1/addresses/285717643?include=traffic"

# paginated, one section at a time
curl -H "X-API-Key: $APPROACH_API_KEY" \
  "https://api.approach.no/api/v1/addresses/285717643/sections/traffic?limit=25"

Try it now

This is a real call against the public demo, from here. What appears below is what the API returned — not a sample.