<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Roman Kotenko</title>
    <description>The latest articles on DEV Community by Roman Kotenko (@road511).</description>
    <link>https://dev.to/road511</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3869750%2F0aff7c69-b543-4a64-a0a2-32b0207973a3.png</url>
      <title>DEV Community: Roman Kotenko</title>
      <link>https://dev.to/road511</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/road511"/>
    <language>en</language>
    <item>
      <title>Ask the Assistant What Is Closed on Tonight's Truck Route</title>
      <dc:creator>Roman Kotenko</dc:creator>
      <pubDate>Thu, 26 Nov 2026 09:35:45 +0000</pubDate>
      <link>https://dev.to/road511/ask-the-assistant-what-is-closed-on-tonights-truck-route-588g</link>
      <guid>https://dev.to/road511/ask-the-assistant-what-is-closed-on-tonights-truck-route-588g</guid>
      <description>&lt;p&gt;Dispatchers already ask AI assistants everything: draft the broker email, explain the detention clause, convert the rate to per-mile. Ask one what is closed on tonight’s lane and it will apologise. A language model knows roads the way an atlas does. It has never seen tonight’s lane closure, a posted bridge, or how many spaces the welcome center has.&lt;/p&gt;

&lt;p&gt;It can, if something feeds it. We connected an assistant to the Road511 API through our &lt;a href="https://road511.com/docs.html#mcp" rel="noopener noreferrer"&gt;remote MCP server&lt;/a&gt; and asked it the question a dispatcher would ask on a Saturday afternoon. Below is what it did and what it answered, as of &lt;strong&gt;14 November 2026, 17:40 UTC&lt;/strong&gt;. Nothing is staged: the tool calls went to the production API, the same as any customer’s.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Question
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;I'm a dispatcher. Tonight I have a 53' dry van leaving Atlanta, GA
(Fulton Industrial Blvd area) at 21:00 local for Nashville, TN.
Truck is 13'6" tall, 80,000 lb gross, 5 axles, no hazmat.
1. What is closed, under construction or otherwise in the way tonight?
2. Anything about clearance or weight I should worry about?
3. The driver will want a break around Chattanooga roughly 1 a.m.
   Where can he park, and do we know if it fills up?
Say plainly when the data does not tell you something.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  What the Assistant Did
&lt;/h2&gt;

&lt;p&gt;It made six calls before answering. Nobody told it which ones to make.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;What it asked for&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;plan_truck_route&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Atlanta → Nashville for a 36.3 t, 4.11 m, 5-axle truck, departing 21:00 Eastern. The route comes back with every hazard on it, each with the time the truck reaches it.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;search_events&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Active incidents in a box around the corridor.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;search_features&lt;/code&gt; ×3&lt;/td&gt;
&lt;td&gt;Truck parking and rest areas within 50 km of Chattanooga; weigh stations on the corridor.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;list_feature_types&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;What else exists, to check it had not missed a data type.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The route call does most of the work. One request returns the road the truck takes and 34 warnings along it: lane closures and construction with their validity windows, posted bridges compared against the truck’s weight, rail crossings with the railroad’s emergency number, road-weather readings from the stations it passes. Each warning carries its distance along the route and a projected arrival time. “Is this still active when &lt;em&gt;he&lt;/em&gt; gets there” becomes a lookup, not a guess.&lt;/p&gt;

&lt;h2&gt;
  
  
  What It Answered
&lt;/h2&gt;

&lt;p&gt;Before anything else, it corrected the plan:&lt;/p&gt;

&lt;p&gt;&lt;em&gt;“Your timing doesn’t work as planned. The route is I-285 → I-75 N → I-24 W, 249 mi, about 4 h 11 min of driving with no stops. Leaving at 21:00 ET, the driver reaches Chattanooga around 22:55 ET and Nashville around 00:11 CT. At 1 a.m. he would be about 10 minutes from Nashville, not near Chattanooga.”&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Then the closures, in the order the truck reaches them:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Reached (est.)&lt;/th&gt;
&lt;th&gt;Where&lt;/th&gt;
&lt;th&gt;What&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;21:11 ET&lt;/td&gt;
&lt;td&gt;I-75 NB at Windy Hill Rd&lt;/td&gt;
&lt;td&gt;Construction, four left lanes blocked until Monday 05:00&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;~23:15 ET&lt;/td&gt;
&lt;td&gt;I-24, Marion Co., MM 134–160&lt;/td&gt;
&lt;td&gt;Rolling roadblocks for marker work through 30 November; the feed gives no hours&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;~22:59 CT&lt;/td&gt;
&lt;td&gt;I-24, Coffee Co., MM 116.8–117.6&lt;/td&gt;
&lt;td&gt;Bridge replacement, nightly 7 PM–6 AM, traffic diverted over the Exit 117 ramps &lt;strong&gt;with a 12 ft width limit&lt;/strong&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;~23:47 CT&lt;/td&gt;
&lt;td&gt;I-24 WB, Rutherford Co., MM 71.2–66&lt;/td&gt;
&lt;td&gt;Lane closures for bridge-joint repair, one lane always open&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The Coffee County entry is the one to read twice. The state’s own text says the eastbound diversion “will shift to I-24 WB with similar closures”, and the assistant named exactly what that leaves open: &lt;em&gt;“The data doesn’t say whether westbound has started yet.”&lt;/em&gt; That is a phone call to make before 21:00, and now somebody knows to make it.&lt;/p&gt;

&lt;p&gt;It also caught something no map pin shows. The route ends in downtown Nashville, and among its warnings on the last mile is the &lt;strong&gt;Woodland Street Bridge&lt;/strong&gt; over the Cumberland, which the federal bridge inventory lists as posted at &lt;strong&gt;17.2 tonnes&lt;/strong&gt; (about 37,900 lb). The route flags it as not confirmed on the truck’s road, and says so; the dispatcher still gets to see it. The assistant’s advice: keep the final leg off it at 80,000 lb, and send the real consignee address so the route can be re-run to the dock instead of a city centre.&lt;/p&gt;

&lt;h2&gt;
  
  
  What It Said It Did Not Know
&lt;/h2&gt;

&lt;p&gt;This part makes the case better than the closures do. Asked whether the parking near Chattanooga fills up, it did not guess:&lt;/p&gt;

&lt;p&gt;&lt;em&gt;“Nothing tells you whether they fill up. For all of them road511 has only static capacity. There is no live occupancy feed for GA or TN here, and commercial truck stops didn’t come up in this search.”&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;It then listed the three lots on the driver’s side of the road (35, 13 and 14 truck spaces) and put the lots on the opposite carriageway in a separate “wrong side” list. Every time the data ran out, it said so. The road-weather readings are midday observations, not a forecast for the run. The morning’s disabled-vehicle incidents will be stale by 21:00. The rolling-roadblock event publishes no hours. An assistant that says “I don’t know, here is who does” is one a dispatcher can trust with the parts it does know.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Writing This Post Fixed
&lt;/h2&gt;

&lt;p&gt;The first run of this conversation, earlier the same day, was not this clean. The assistant answered well, but only by explaining away four kinds of warning our route should never have raised:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;a 6′8″ height limit that turned out to be the gate of a convention-centre parking garage, mapped in OpenStreetMap;&lt;/li&gt;
&lt;li&gt;a 0.6 t “weight limit” on I-24 over Missionary Ridge: an inspection rating of a bridge that is shored and open to all traffic;&lt;/li&gt;
&lt;li&gt;clearance and weight warnings from the &lt;em&gt;eastbound&lt;/em&gt; twins of bridges the westbound truck crosses;&lt;/li&gt;
&lt;li&gt;weight warnings for bridges on side roads a few dozen metres from the interstate.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;All four were fixed and deployed the same day. Garage and car-park limits are no longer imported. A shored bridge counts as open. A twin structure is matched to the carriageway the route actually drives. A side-road bridge no longer warns a truck on the interstate beside it. The answers quoted above come from the second run, on the fixed API. One leftover shows in the transcript: the garage gate’s old record stays until the next full OpenStreetMap refresh, so the assistant still had to call it noise.&lt;/p&gt;

&lt;h2&gt;
  
  
  Connecting Your Own Assistant
&lt;/h2&gt;

&lt;p&gt;One line for Claude Code; any MCP client takes the same URL and header.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude mcp add --transport http road511 https://api.road511.com/api/v1/mcp \
  --header &lt;span class="s2"&gt;"Authorization: Bearer YOUR_API_KEY"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The server uses your normal API key and your plan. Each tool call is one API request with the same rate limits and plan gates as a direct call, and &lt;code&gt;plan_truck_route&lt;/code&gt; counts against your plan’s monthly routing quota.&lt;/p&gt;

&lt;h2&gt;
  
  
  What This Is Not
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;It is not a dispatcher.&lt;/strong&gt; The assistant reads the same data your planners would. It is fast and it does not skip a feed, but it does not know the customer, the driver’s hours or the dock.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It is only as live as the feeds.&lt;/strong&gt; Closures and incidents are what the state 511 systems publish, when they publish it. A closure nobody has entered is not in the answer.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Absent is unknown.&lt;/strong&gt; No warning on a stretch means no record, not a clear road. The assistant said so where it mattered.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Re-ask close to departure.&lt;/strong&gt; Everything quoted here is a reading at one moment on 14 November. Ask again at 20:30.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try It
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://road511.com/docs.html#mcp" rel="noopener noreferrer"&gt;MCP setup&lt;/a&gt; — the server URL, headers and the tool list.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://road511.com/blog/humped-rail-crossings-ens-sign-api.html" rel="noopener noreferrer"&gt;Humped rail crossings and the ENS sign&lt;/a&gt; — one of the warning types the route carries.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://portal.road511.com/signup" rel="noopener noreferrer"&gt;Free trial API key&lt;/a&gt; — no credit card.&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://road511.com/blog/ai-assistant-truck-route-closures-mcp.html?utm_source=devto&amp;amp;utm_medium=social&amp;amp;utm_campaign=ai-assistant-truck-route-closures-mcp&amp;amp;utm_content=dev-17" rel="noopener noreferrer"&gt;road511.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>mcp</category>
      <category>logistics</category>
      <category>api</category>
    </item>
    <item>
      <title>The Air Says +5 C. The Road Says -1. Surface Temperature From 3,501 Stations in 10 Countries.</title>
      <dc:creator>Roman Kotenko</dc:creator>
      <pubDate>Wed, 18 Nov 2026 15:30:00 +0000</pubDate>
      <link>https://dev.to/road511/the-air-says-5-degc-the-road-says-1-surface-temperature-from-3501-stations-in-10-countries-10dk</link>
      <guid>https://dev.to/road511/the-air-says-5-degc-the-road-says-1-surface-temperature-from-3501-stations-in-10-countries-10dk</guid>
      <description>&lt;p&gt;A weather forecast gives you the temperature of the air, about two metres above the ground. A truck drives on the road. On a clear autumn night the two can be several degrees apart, and the road is the colder one: asphalt radiates its heat to the sky, a bridge deck loses it from both sides, and the first ice of the season forms on a surface that is below zero under air that is not.&lt;/p&gt;

&lt;p&gt;Road authorities measure the road itself. Their roadside weather stations carry a sensor in the asphalt, and most of them publish what it reads. We carry &lt;strong&gt;4,195 road-weather stations across 10 European countries&lt;/strong&gt;, and &lt;strong&gt;3,501 of them&lt;/strong&gt; publish a road-surface temperature — now under one field name, &lt;code&gt;surface_temperature_c&lt;/code&gt;, whichever country the station stands in.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Updated 18 November 2026: the coverage figures and the table below were re-measured, and Finland (532 stations, added on 16 November) is now in the set. The readings from 9 October are kept as the moment they describe.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What the Road Said on 9 October
&lt;/h2&gt;

&lt;p&gt;At &lt;strong&gt;07:00 UTC on 9 October 2026&lt;/strong&gt;, 191 stations reported a road surface at or below 0 °C. At &lt;strong&gt;31&lt;/strong&gt; of them the air was above freezing, and at 7 it was above +2 °C. Across all 2,721 stations that publish both readings, the road was colder than the air at 737 — more than one in four.&lt;/p&gt;

&lt;p&gt;Two of them, from the same moment:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Korsmyra, county road 63, Norway&lt;/strong&gt; — air +2.2 °C, road surface −1.1 °C.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Bergfors, Sweden&lt;/strong&gt; — air +0.3 °C, road surface −1.7 °C.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A route plan built on air temperature sees nothing at either place. That is the case this data exists for.&lt;/p&gt;

&lt;h2&gt;
  
  
  One Call Across a Border
&lt;/h2&gt;

&lt;p&gt;The E6 crosses from Sweden into Norway at Svinesund. Ask for every road-weather station within 25 km of the bridge:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -H &lt;span class="s2"&gt;"X-API-Key: $KEY"&lt;/span&gt; \
  &lt;span class="s2"&gt;"https://api.napspan.com/api/v1/features?type=weather_stations&amp;amp;lat=59.09&amp;amp;lng=11.25&amp;amp;radius_km=25"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On the morning of 9 October that returned nine stations — four Swedish, five Norwegian — in one list. One from each side, trimmed:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"SWE-rwis-1439"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"jurisdiction"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"SWE"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Svinesundsbron"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"properties"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"observation_time"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2026-10-09T08:50:03.000+02:00"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"air_temperature_c"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;5.1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"surface_temperature_c"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;1.9&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"dewpoint_c"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.6&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"humidity_pct"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;69.7&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"wind_speed_ms"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;1.5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"visibility_m"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;20000&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"NOR-ws-0129014"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"jurisdiction"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"NOR"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Solbergtårnet syd"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"road_name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"E6"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"properties"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"air_temperature_c"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;5.3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"surface_temperature_c"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;5.1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"road_surface_temperature_c"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;5.1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"humidity_pct"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;72.8&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"wind_speed_ms"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;1.4&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On the bridge itself the road was 3.2 degrees colder than the air. Thirteen kilometres north on the E6 it was 0.2 degrees colder. Same morning, same corridor — which is why one temperature per route is not enough.&lt;/p&gt;

&lt;h2&gt;
  
  
  Five Names for One Number
&lt;/h2&gt;

&lt;p&gt;The Norwegian row above carries the surface temperature twice. That is deliberate, and it is the reason this post exists.&lt;/p&gt;

&lt;p&gt;Until &lt;strong&gt;8 October&lt;/strong&gt;, road-surface temperature reached our API under &lt;strong&gt;five different keys&lt;/strong&gt;, one per national convention: &lt;code&gt;surface_temperature_c&lt;/code&gt; from Germany, Sweden and Poland, &lt;code&gt;road_surface_temperature_c&lt;/code&gt; from Norway and Iceland, &lt;code&gt;road_temperature_c&lt;/code&gt; from Lithuania, &lt;code&gt;surface_temp_c&lt;/code&gt; from Scotland, and &lt;code&gt;road_surface_temp_c&lt;/code&gt; from Slovenia and Latvia — Latvia’s one level down, inside a nested object. Air temperature, dew point, humidity and wind direction were split the same way. A client reading &lt;code&gt;surface_temperature_c&lt;/code&gt; saw the road in three countries and nothing in six, and nothing errored.&lt;/p&gt;

&lt;p&gt;Since 8 October every station also carries the common key. The original key stays, because someone may already be reading it; the common one is added next to it. Where a country already used the common name, nothing changed. Finland, added on 16 November, arrived under it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the Readings Are
&lt;/h2&gt;

&lt;p&gt;Measured in one transaction against production on &lt;strong&gt;18 November 2026, 07:11 UTC&lt;/strong&gt;:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Country&lt;/th&gt;
&lt;th&gt;Stations&lt;/th&gt;
&lt;th&gt;Surface temp.&lt;/th&gt;
&lt;th&gt;Air temp.&lt;/th&gt;
&lt;th&gt;Surface condition&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Germany&lt;/td&gt;
&lt;td&gt;1,602&lt;/td&gt;
&lt;td&gt;1,267&lt;/td&gt;
&lt;td&gt;1,346&lt;/td&gt;
&lt;td&gt;1,201&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sweden&lt;/td&gt;
&lt;td&gt;833&lt;/td&gt;
&lt;td&gt;794&lt;/td&gt;
&lt;td&gt;767&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Finland&lt;/td&gt;
&lt;td&gt;532&lt;/td&gt;
&lt;td&gt;458&lt;/td&gt;
&lt;td&gt;509&lt;/td&gt;
&lt;td&gt;455&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Norway&lt;/td&gt;
&lt;td&gt;506&lt;/td&gt;
&lt;td&gt;423&lt;/td&gt;
&lt;td&gt;438&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Iceland&lt;/td&gt;
&lt;td&gt;204&lt;/td&gt;
&lt;td&gt;94&lt;/td&gt;
&lt;td&gt;180&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Lithuania&lt;/td&gt;
&lt;td&gt;166&lt;/td&gt;
&lt;td&gt;162&lt;/td&gt;
&lt;td&gt;153&lt;/td&gt;
&lt;td&gt;166&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Scotland&lt;/td&gt;
&lt;td&gt;165&lt;/td&gt;
&lt;td&gt;149&lt;/td&gt;
&lt;td&gt;154&lt;/td&gt;
&lt;td&gt;165&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Slovenia&lt;/td&gt;
&lt;td&gt;110&lt;/td&gt;
&lt;td&gt;83&lt;/td&gt;
&lt;td&gt;98&lt;/td&gt;
&lt;td&gt;83&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Latvia&lt;/td&gt;
&lt;td&gt;72&lt;/td&gt;
&lt;td&gt;67&lt;/td&gt;
&lt;td&gt;69&lt;/td&gt;
&lt;td&gt;69&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Poland&lt;/td&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Total&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;4,195&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;3,501&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;3,718&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;2,139&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Some stations measure only air or wind and have no surface sensor at all. Scotland is the only part of the United Kingdom in the set, and Poland is five stations, not a national network.&lt;/p&gt;

&lt;h2&gt;
  
  
  We Found a Bug of Our Own on the Way
&lt;/h2&gt;

&lt;p&gt;While pulling the figures for this post, fifteen Swedish stations reported a road surface of exactly 0.0 °C under air as warm as +10.7 °C. They were not icy. The national feed sends a sensor that has no reading as an empty record, and our parser turned “no reading” into zero — the same mistake gave 50 Swedish stations a visibility of 0 m. Fixed on &lt;strong&gt;9 October&lt;/strong&gt;: a sensor that sends no value now produces no field. Every Swedish figure on this page was measured after the fix.&lt;/p&gt;

&lt;h2&gt;
  
  
  Five Things to Know Before You Build on It
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Surface condition is in the agency’s own words.&lt;/strong&gt; 2,139 stations in six countries describe the road surface — &lt;code&gt;dry&lt;/code&gt;, &lt;code&gt;wet&lt;/code&gt;, &lt;code&gt;glaze&lt;/code&gt; from Germany, &lt;code&gt;Wet&lt;/code&gt; and &lt;code&gt;Moist&lt;/code&gt; from Scotland, &lt;code&gt;Wet and salty&lt;/code&gt; from Finland, &lt;code&gt;Šlapia&lt;/code&gt; (“wet”) from Lithuania. We carry the word as published under &lt;code&gt;surface_condition&lt;/code&gt; and do not map it onto a shared scale: the scales do not line up, and a translated “wet” that the agency meant as “wet and treated” is worse than the original. Sweden publishes ice, water and snow flags for a few dozen of its stations (56 of 837 on 9 October); we do not carry those yet.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Some sensors publish impossible numbers, and we pass them through.&lt;/strong&gt; On 9 October, 26 stations published a pair of readings that cannot both be true (on 18 November, 16) — a road surface of −75 °C on the A45 in Germany under +5.8 °C air, or air of −40 °C on the E6 in northern Norway over a +1.3 °C road. The 9 October figures in this post leave those 26 out. The API does not: it returns what the road authority published, and a sanity check against the air temperature belongs in your code.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Not every country says when the reading was taken.&lt;/strong&gt; Germany, Sweden, Finland and Latvia stamp each observation with &lt;code&gt;observation_time&lt;/code&gt;, Poland with &lt;code&gt;measure_time&lt;/code&gt;. Norway, Iceland, Lithuania, Scotland and Slovenia do not. Where the stamp exists, check it: on 9 October, the oldest Swedish observation still being published was five days old.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Units are in the field name.&lt;/strong&gt; &lt;code&gt;_c&lt;/code&gt; is Celsius, &lt;code&gt;_ms&lt;/code&gt; metres per second, &lt;code&gt;_pct&lt;/code&gt; percent, &lt;code&gt;_m&lt;/code&gt; metres. Where a feed does not state its unit we do not guess one: Scotland’s wind speed is carried as published and has no &lt;code&gt;wind_speed_ms&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;It is a measurement, not a forecast.&lt;/strong&gt; Each reading is what the sensor saw when it last reported. Nothing here predicts where ice will form in two hours.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Same Call as Everything Else on the Route
&lt;/h2&gt;

&lt;p&gt;Road-weather stations are one more feature type in the same &lt;code&gt;/features&lt;/code&gt; schema as &lt;a href="https://napspan.com/blog/road-cameras-europe-api.html" rel="noopener noreferrer"&gt;road cameras&lt;/a&gt;, &lt;a href="https://napspan.com/blog/truck-parking-occupancy-api.html" rel="noopener noreferrer"&gt;live truck-parking occupancy&lt;/a&gt; and &lt;a href="https://napspan.com/blog/cross-border-truck-restrictions-vms.html" rel="noopener noreferrer"&gt;truck restrictions and VMS messages&lt;/a&gt;. A camera shows a person the road; a surface sensor gives your code a number. Filter by &lt;code&gt;jurisdiction&lt;/code&gt; with ISO 3166-1 alpha-3 codes (&lt;code&gt;NOR&lt;/code&gt;, &lt;code&gt;SWE&lt;/code&gt;), by &lt;code&gt;bbox&lt;/code&gt;, or by a point and &lt;code&gt;radius_km&lt;/code&gt; as above.&lt;/p&gt;

&lt;h2&gt;
  
  
  What This Does Not Do
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;It is not every country.&lt;/strong&gt; Ten countries carry road-weather stations in our data. France, Spain, Italy, Austria and the Netherlands are not among them.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It does not classify the road.&lt;/strong&gt; No “icy” flag is computed from the numbers; the condition text is the agency’s, where it publishes one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It does not clean the data.&lt;/strong&gt; Impossible readings arrive as published.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It does not forecast.&lt;/strong&gt; Measurements only.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Coverage figures and the table measured against production on 18 November 2026, 07:11 UTC, in a single transaction. The frost readings, the Svinesund example, the impossible-pair count and the observation ages are from 9 October 2026, 07:00 UTC. Readings change by the minute, and a winter morning will look nothing like this October one — the coverage and the field names are what will hold.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try It
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://napspan.com/docs.html" rel="noopener noreferrer"&gt;API docs&lt;/a&gt; — &lt;code&gt;/features&lt;/code&gt; with &lt;code&gt;type=weather_stations&lt;/code&gt;, filtered by &lt;code&gt;jurisdiction&lt;/code&gt;, &lt;code&gt;bbox&lt;/code&gt; or &lt;code&gt;radius_km&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://map.napspan.com" rel="noopener noreferrer"&gt;Live map&lt;/a&gt; — every station we carry, on one map&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://portal.napspan.com/signup" rel="noopener noreferrer"&gt;Free API key&lt;/a&gt; — no card, 14-day trial&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://napspan.com/blog/road-surface-temperature-europe-api.html?utm_source=devto&amp;amp;utm_medium=social&amp;amp;utm_campaign=road-surface-temperature-europe-api&amp;amp;utm_content=dev-13" rel="noopener noreferrer"&gt;napspan.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>api</category>
      <category>dataengineering</category>
      <category>logistics</category>
      <category>opendata</category>
    </item>
    <item>
      <title>19,785 Humped Rail Crossings, and the Blue Sign That Gets You Off One</title>
      <dc:creator>Roman Kotenko</dc:creator>
      <pubDate>Wed, 18 Nov 2026 13:30:00 +0000</pubDate>
      <link>https://dev.to/road511/19785-humped-rail-crossings-and-the-blue-sign-that-gets-you-off-one-1gi7</link>
      <guid>https://dev.to/road511/19785-humped-rail-crossings-and-the-blue-sign-that-gets-you-off-one-1gi7</guid>
      <description>&lt;p&gt;A lowboy does not need a train to have a bad day at a rail crossing. It needs a crossing that sits higher than the road on either side. The tractor climbs the approach, the deck reaches the crest, and the middle of a long, low trailer settles onto the rails while the wheels at either end lose their grip. Nothing is broken. The truck simply cannot move, and it is parked across a railroad.&lt;/p&gt;

&lt;p&gt;Two signs bracket that moment. Before it, the yellow &lt;strong&gt;W10-5 “Low Ground Clearance”&lt;/strong&gt; warning, the one with a truck balanced on a hump. After it, the blue &lt;strong&gt;Emergency Notification System&lt;/strong&gt; sign at the crossing, with a phone number and the crossing’s USDOT inventory number. The first decides whether you should be on this road with this trailer at all. The second decides how fast the railroad hears that you are stuck. Both are in the federal crossing inventory, and as of this week both are in Road511.&lt;/p&gt;

&lt;h2&gt;
  
  
  How Many Crossings Are Posted
&lt;/h2&gt;

&lt;p&gt;Measured against our North American production database on &lt;strong&gt;29 October 2026&lt;/strong&gt;, across the 162,449 public crossings we carry:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Reading&lt;/th&gt;
&lt;th&gt;Count&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Posted LOW GROUND CLEARANCE (W10-5)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;19,785&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;… of those, at grade&lt;/td&gt;
&lt;td&gt;19,544&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;… protected by passive signs only (crossbucks, stop sign, or nothing)&lt;/td&gt;
&lt;td&gt;9,531 — 48%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;… on track with a timetable speed of 79 mph or more&lt;/td&gt;
&lt;td&gt;738&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;… seeing 20 or more trains a day&lt;/td&gt;
&lt;td&gt;1,359&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Crossings with an emergency number in the inventory&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;155,684&lt;/strong&gt; — 96%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Humped crossings with an emergency number&lt;/td&gt;
&lt;td&gt;19,703 of 19,785&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;That is one public crossing in eight. Most of them are quiet: the median humped crossing sees 4 trains a day on 25 mph track. But “most” is not the planning case. A few hundred sit on main lines where a train is fast and frequent, and on the fastest of them a stuck lowboy has very little time before the next train arrives.&lt;/p&gt;

&lt;p&gt;The counts by state say as much about who fills in the inventory as about the terrain. Texas posts the most (2,092), Michigan has 1,959 — over a third of its public crossings — and Idaho marks 53%. Illinois, with 10,483 crossings, marks 7%. Treat a state’s share as a reporting habit before you treat it as geography, and treat an unmarked crossing as unknown rather than flat.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Blue Sign
&lt;/h2&gt;

&lt;p&gt;Since 2017 every railroad has had to post an ENS sign at its crossings (49 CFR Part 234, Subpart E). The rule is specific: white on blue, retroreflective, at least 12 by 9 inches, a phone number, a line such as “Report emergency or problem to …”, and the crossing’s USDOT number. When someone calls to report a vehicle on the tracks, the railroad must promptly contact every train authorised through that crossing, then the police, then get the obstruction removed.&lt;/p&gt;

&lt;p&gt;That chain starts with a phone call, and the call depends on two things the driver may not have in the moment: the right number, and the crossing ID. 911 works too, but a dispatcher then has to find the railroad. Calling the number on the sign goes straight to the railroad that controls the trains.&lt;/p&gt;

&lt;p&gt;In the inventory, &lt;strong&gt;1,478 humped crossings&lt;/strong&gt; are recorded with the ENS sign &lt;em&gt;not&lt;/em&gt; displayed. The regulation says it should be. Either the record is stale or the sign is gone, and from the cab the difference does not matter: the number is not on a post in front of you. It is in the data.&lt;/p&gt;

&lt;h2&gt;
  
  
  On the Route
&lt;/h2&gt;

&lt;p&gt;Crossings ride the same call to &lt;code&gt;POST /api/v1/routing/route&lt;/code&gt; that returns the truck-aware route and its warnings:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Any truck:&lt;/strong&gt; a humped crossing on the corridor comes back as “Humped rail crossing — low ground clearance”, with the railroad’s emergency number in the text when the inventory has one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Placarded hazmat:&lt;/strong&gt; every public at-grade crossing is still a &lt;code&gt;critical&lt;/code&gt; stop under 49 CFR 392.10. The hump and the ENS number are appended to the same warning.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Crossings posted “Exempt”:&lt;/strong&gt; 686 of them. Under 392.10(b)(5) no hazmat stop is required where that sign is posted, so the warning drops to &lt;code&gt;info&lt;/code&gt; and says why.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A planner sees the humped crossings on a lane before the permit is filed, and the driver gets the phone number with each one, ready before the truck is stuck rather than looked up after.&lt;/p&gt;

&lt;h2&gt;
  
  
  Query It Directly
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="na"&gt;GET /api/v1/features?type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;rail_crossings&lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;jurisdiction&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="no"&gt;MI&lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;limit&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each crossing carries &lt;code&gt;low_ground_clearance_sign&lt;/code&gt; and its sign count, &lt;code&gt;ens_sign&lt;/code&gt;, &lt;code&gt;emergency_phone&lt;/code&gt;, &lt;code&gt;exempt_sign&lt;/code&gt;, the share of trucks in road traffic (&lt;code&gt;percent_trucks&lt;/code&gt;), the road’s speed limit and lane count, the crossing angle, and whether it is lit — alongside the railroad, the USDOT crossing number, the warning device, train counts and track speed that were already there.&lt;/p&gt;

&lt;h2&gt;
  
  
  What This Data Is Not
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;It is a sign, not a survey.&lt;/strong&gt; W10-5 says somebody judged the crossing a hump risk and posted a warning. It does not give the crest height, the approach grade or the clearance your trailer needs, and a crossing without the sign can still catch a low enough deck.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It is an inventory, not a sensor.&lt;/strong&gt; Railroads and states file it and update it on their schedule. A sign recorded as posted may be missing, and the reverse.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Absent is unknown.&lt;/strong&gt; About 26% of the crossings we carry have no matching sign record at all. Those are unknowns, not “no sign”.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It does not know where the trains are.&lt;/strong&gt; Train counts and speeds are inventory figures. Nothing here is a live train position.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Provenance
&lt;/h2&gt;

&lt;p&gt;Both the crossing geometry and the sign fields come from the Federal Railroad Administration: the national crossing inventory layer we already read, now joined to the full Crossing Inventory (Form 71) by USDOT crossing number. Both are in the public domain. Every figure above is a count you can reproduce against the live API.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try It
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://road511.com/blog/rail-crossing-hazmat-stops-api.html" rel="noopener noreferrer"&gt;The hazmat stop at at-grade crossings&lt;/a&gt; — the 392.10 side of the same data.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://road511.com/docs.html" rel="noopener noreferrer"&gt;API docs&lt;/a&gt; — features, routing, and the GeoJSON variants in one reference.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://portal.road511.com/signup" rel="noopener noreferrer"&gt;Free API key&lt;/a&gt; — 14-day trial, no credit card.&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://road511.com/blog/humped-rail-crossings-ens-sign-api.html?utm_source=devto&amp;amp;utm_medium=social&amp;amp;utm_campaign=humped-rail-crossings-ens-sign-api&amp;amp;utm_content=dev-16" rel="noopener noreferrer"&gt;road511.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>api</category>
      <category>data</category>
      <category>logistics</category>
      <category>opendata</category>
    </item>
    <item>
      <title>A Closed Bridge Should Reach the Route, Not Just the Map</title>
      <dc:creator>Roman Kotenko</dc:creator>
      <pubDate>Thu, 05 Nov 2026 15:30:00 +0000</pubDate>
      <link>https://dev.to/road511/a-closed-bridge-should-reach-the-route-not-just-the-map-5fmm</link>
      <guid>https://dev.to/road511/a-closed-bridge-should-reach-the-route-not-just-the-map-5fmm</guid>
      <description>&lt;p&gt;A bridge clearance check answers one question: &lt;em&gt;does this truck fit?&lt;/em&gt; Ask it about a bridge with 5.5 metres of clearance and a 4.1-metre trailer and it says yes, correctly, and moves on. It says exactly the same thing when that bridge has been closed to all traffic for a year. The clearance is still 5.5 metres. Nothing about the truck is wrong. The road simply is not there.&lt;/p&gt;

&lt;p&gt;Until two days ago that was also true of our own route response. The bridge inventory we serve carried the closure on every affected record, four different adapters wrote it, and the routing enrichment read none of them. A closed bridge with enough headroom produced no warning at all, and one with no published dimensions was invisible. As of 29 September the closure reaches the route as its own warning, and this post is about what that warning says, the bug we found in it this morning, and what it still cannot tell you.&lt;/p&gt;

&lt;h2&gt;
  
  
  How Many Bridges Say “Closed”
&lt;/h2&gt;

&lt;p&gt;We carry &lt;strong&gt;732,506 active bridge records&lt;/strong&gt; across North America, most of them from the federal National Bridge Inventory with state DOT feeds layered on top where a state publishes its own. Measured on production on &lt;strong&gt;1 October 2026&lt;/strong&gt;, &lt;strong&gt;4,847 of them are flagged closed to traffic&lt;/strong&gt;. After the fix described below, &lt;strong&gt;4,495 of those raise a route warning, across 52 jurisdictions&lt;/strong&gt;:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Source&lt;/th&gt;
&lt;th&gt;Flagged closed&lt;/th&gt;
&lt;th&gt;What the flag means there&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Federal NBI, code &lt;code&gt;K&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;3,579&lt;/td&gt;
&lt;td&gt;Closed to all traffic&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Federal NBI, code &lt;code&gt;G&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;352&lt;/td&gt;
&lt;td&gt;New structure, &lt;strong&gt;not yet open&lt;/strong&gt; — no warning (see below)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Pennsylvania (PennDOT)&lt;/td&gt;
&lt;td&gt;509&lt;/td&gt;
&lt;td&gt;Closed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Ohio (ODOT)&lt;/td&gt;
&lt;td&gt;223&lt;/td&gt;
&lt;td&gt;Closed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Texas (TxDOT)&lt;/td&gt;
&lt;td&gt;107&lt;/td&gt;
&lt;td&gt;Closed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Nova Scotia&lt;/td&gt;
&lt;td&gt;69&lt;/td&gt;
&lt;td&gt;Closed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Washington (WSDOT)&lt;/td&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;Closed&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Most of these are small: county roads over creeks, rail overpasses on collectors. Some are not. The busiest closed record in the inventory, a structure on I-278 in New York, carries &lt;strong&gt;149,369 vehicles a day&lt;/strong&gt; in its last federal count, and &lt;strong&gt;475&lt;/strong&gt; closed bridges carry more than 1,000. A closure on a road that size is exactly the case where a navigation map and a bridge file disagree, and a driver should hear about the disagreement before reaching it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the Warning Looks Like
&lt;/h2&gt;

&lt;p&gt;Nothing new to send. Ask for a truck route as usual:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="err"&gt;POST /api/v1/routing/route
{
  "origin":      { "lat": 40.5877, "lng": -111.935 },
  "destination": { "lat": 40.5877, "lng": -111.895 },
  "truck":       { "height_m": 4.1, "weight_t": 36 }
}
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That short run along 9000 South in Salt Lake County crosses the Jordan River on a bridge the federal inventory lists as closed. This is the warning it returned on 1 October, trimmed to the relevant fields:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"bridge_closed"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"severity"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"warning"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"title"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Closed bridge near your route"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"description"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"SR-209 90TH SO.ST. over JORDAN RIVER is reported closed to traffic. Proximity cannot tell whether your route crosses it or passes beneath it — check facility_carried before relying on it."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"distance_along_route_m"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1877&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"source"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"FHWA"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"provenance"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"authoritative"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"properties"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"closed_to_traffic"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"posting_status"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"closed"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"posting_code"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"K"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"facility_carried"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"SR-209 90TH SO.ST."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"feature_crossed"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"JORDAN RIVER"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"avg_daily_traffic"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;43295&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"year_built"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1971&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Notice what happened there. The routing engine’s path runs past that point as though nothing were wrong, and the bridge inventory says the bridge there is closed. One of them is out of date, and nothing in either dataset says which. That is not a defect in the warning; it is the warning’s whole job. Without it the two sources disagree silently and the driver finds out at the barrier.&lt;/p&gt;

&lt;p&gt;Three design choices are visible in that payload:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;It fires for every truck.&lt;/strong&gt; Every other bridge warning we raise is a comparison between a number on the bridge and a number on the truck. A closure is not, so it is not gated on the truck profile: a 3-metre box van and a 4.3-metre reefer get the same warning.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It is a &lt;code&gt;warning&lt;/code&gt;, not &lt;code&gt;critical&lt;/code&gt;.&lt;/strong&gt; We match bridges to a route by proximity, within a narrow buffer around the line. That cannot tell a closed bridge the route drives &lt;em&gt;across&lt;/em&gt; from a closed overpass the route passes &lt;em&gt;under&lt;/em&gt;. When we measured it in September, 92 closed bridges outside Pennsylvania sat within 100 metres of a bridge carrying an Interstate. A &lt;code&gt;critical&lt;/code&gt; there would reject perfectly good routes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It carries &lt;code&gt;facility_carried&lt;/code&gt; and &lt;code&gt;feature_crossed&lt;/code&gt;.&lt;/strong&gt; Those two fields are how you settle the over-or-under question: if the closed bridge carries &lt;em&gt;SR-209&lt;/em&gt; and your route is on SR-209, it is yours. If it carries a county road over the Interstate you are driving, it is not.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  “Closed” and “Not Open Yet” Were the Same Flag
&lt;/h2&gt;

&lt;p&gt;Here is what we got wrong, and fixed this morning. The federal inventory’s status field has a code &lt;code&gt;K&lt;/code&gt; for a bridge closed to all traffic, and a separate code &lt;code&gt;G&lt;/code&gt; for a &lt;em&gt;new structure not yet open to traffic&lt;/em&gt;. Both mean “this structure carries no vehicles today”, and our feature records publish both as &lt;code&gt;closed_to_traffic: true&lt;/code&gt;, which is accurate for anyone reading the inventory.&lt;/p&gt;

&lt;p&gt;For a route warning it is badly wrong. A &lt;code&gt;G&lt;/code&gt; bridge is almost always a replacement span being built &lt;em&gt;beside&lt;/em&gt; a road that is open. Of the 352 &lt;code&gt;G&lt;/code&gt; records, &lt;strong&gt;282 were built in 2022 or later&lt;/strong&gt;, and between them they carry a recorded &lt;strong&gt;2.87 million vehicles a day&lt;/strong&gt;: new spans on SR-429 in Florida, I-270 and I-55 around St. Louis, I-15 in California, I-16 in Georgia. Because matching is by proximity, a truck driving the live Interstate past one of those construction sites was told a bridge on its route was closed. Of all the false alarms a routing API can raise, that is one of the worst: on the busiest roads, about a hazard that is not there.&lt;/p&gt;

&lt;p&gt;A not-yet-open structure is no longer a reason to warn. The routing engine will not route over a bridge that is not open, so there is nothing for the warning to protect against. The inventory record still says &lt;code&gt;closed_to_traffic: true&lt;/code&gt; with &lt;code&gt;posting_status: "new_not_yet_open"&lt;/code&gt;, because that is still true of the structure. Only the route warning ignores it. We checked it live: a route along I-270 past the new span at Conway Road now comes back with no warnings.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Closed Set Was Once Twelve Times Too Big
&lt;/h2&gt;

&lt;p&gt;One more honest note, because it explains why we take the flag seriously in both directions. When we first measured this in September, the inventory held &lt;strong&gt;57,597&lt;/strong&gt; closed bridges, 53,256 of them in Pennsylvania. That was our own decoding error: the Pennsylvania adapter read PennDOT’s code for an &lt;em&gt;open&lt;/em&gt; bridge as closed, and never fetched its real closed code at all. After the fix Pennsylvania has &lt;strong&gt;509&lt;/strong&gt; closed bridges. Had the route warning shipped on the uncorrected data, it would have fired on most bridges in the state, and within a day every integrator would have learned to ignore it. A warning that is right only a tenth of the time does more harm than no warning at all.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Honest Limits
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;The federal inventory is an annual snapshot.&lt;/strong&gt; A bridge reopened in March can still read closed until the next federal release, and a bridge closed last week reads open until a state feed says otherwise. Where a state publishes its own feed (Pennsylvania, Ohio, Texas, Washington, Nova Scotia today) the flag is as fresh as that feed. Elsewhere it is as fresh as the last federal file. The warning passes &lt;code&gt;last_inspection_date&lt;/code&gt; through so you can weigh it. In the next federal refresh that field switches from the inventory’s raw month-year code to &lt;code&gt;YYYY-MM&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Over or under is your call.&lt;/strong&gt; As above: proximity matching cannot tell the two apart, and the warning says so in its own description. Compare &lt;code&gt;facility_carried&lt;/code&gt; with the road you are on.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A new span that has opened since the snapshot stays silent.&lt;/strong&gt; If a &lt;code&gt;G&lt;/code&gt; bridge opened in May, the inventory still says not-yet-open and we raise nothing about it. That is the safe direction to be wrong in, but it is still a gap.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;No detour.&lt;/strong&gt; We tell you the bridge is reported closed. We do not reroute around it. The route geometry comes from the routing engine, which in a case like 9000 South evidently believes the bridge is open. Re-requesting with a waypoint is the caller’s decision, not ours.&lt;/p&gt;

&lt;p&gt;For the dimensional side of the same inventory (clearances, weight postings, and the corridor search that finds the low bridges on a lane before you dispatch), see &lt;a href="https://road511.com/blog/bridge-clearance-api-fleet-routing.html" rel="noopener noreferrer"&gt;bridge clearance data for fleet routing&lt;/a&gt;. This post is about the one fact a clearance check cannot express.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try It
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://road511.com/docs.html" rel="noopener noreferrer"&gt;API docs&lt;/a&gt; — the routing warning types, including &lt;code&gt;bridge_closed&lt;/code&gt;, and the &lt;code&gt;/features&lt;/code&gt; surface for the bridge inventory itself&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://road511.com/blog/bridge-clearance-api-fleet-routing.html" rel="noopener noreferrer"&gt;Bridge clearances for fleet routing&lt;/a&gt; — the dimensional side of the same data&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://portal.road511.com/signup" rel="noopener noreferrer"&gt;Free API key&lt;/a&gt; — no credit card, 14-day trial&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://road511.com/blog/closed-bridge-truck-routing-warning.html?utm_source=devto&amp;amp;utm_medium=social&amp;amp;utm_campaign=closed-bridge-truck-routing-warning&amp;amp;utm_content=dev-15" rel="noopener noreferrer"&gt;road511.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>api</category>
      <category>data</category>
      <category>logistics</category>
      <category>trucking</category>
    </item>
    <item>
      <title>Your Fuel Plan Uses One Diesel Price. Europe Publishes 42,323.</title>
      <dc:creator>Roman Kotenko</dc:creator>
      <pubDate>Thu, 29 Oct 2026 14:30:00 +0000</pubDate>
      <link>https://dev.to/road511/your-fuel-plan-uses-one-diesel-price-europe-publishes-42323-43i4</link>
      <guid>https://dev.to/road511/your-fuel-plan-uses-one-diesel-price-europe-publishes-42323-43i4</guid>
      <description>&lt;p&gt;Diesel is the largest variable cost on almost every European haul, and it is the one a planner can actually move. Tolls are set by the route. Driver hours are set by &lt;a href="https://napspan.com/blog/hos-break-planning-api.html" rel="noopener noreferrer"&gt;561/2006&lt;/a&gt;. Fuel is set by where the truck stops — and that decision is usually made against a single national average published once a week.&lt;/p&gt;

&lt;p&gt;That average is not a price. It is a statistic computed over prices, and no station in Europe charges it. The gap between the statistic and the pump is where the money is, and it is bigger than most planning tools assume.&lt;/p&gt;

&lt;p&gt;Everything below was measured in a single query against NAPSPAN production at &lt;strong&gt;10:11 UTC on 29 October 2026&lt;/strong&gt;. Fuel prices move daily, so treat the figures as a dated observation and re-run the queries yourself — each one is a live API call, not a number we are asking you to trust.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three Countries Publish the Pump. Thirty-Five Publish the Building.
&lt;/h2&gt;

&lt;p&gt;NAPSPAN carries &lt;strong&gt;138,283 active fuel stations across 39 European countries&lt;/strong&gt;. Of those, &lt;strong&gt;42,323 carry an actual price&lt;/strong&gt;, and they come from exactly three national registers:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Country&lt;/th&gt;
&lt;th&gt;Stations in NAPSPAN&lt;/th&gt;
&lt;th&gt;Carrying a price&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Italy&lt;/td&gt;
&lt;td&gt;24,142&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;21,652&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Spain&lt;/td&gt;
&lt;td&gt;11,418&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;11,371&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;France&lt;/td&gt;
&lt;td&gt;9,821&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;9,300&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;The other 36 countries&lt;/td&gt;
&lt;td&gt;~92,900&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;That is the honest shape of European per-station fuel data, and it is worth internalising before anyone scopes a project around it. Everywhere else — Germany, Poland, the Netherlands, the Nordics, the whole of the Balkans — a European fuel layer means &lt;em&gt;locations&lt;/em&gt;. Where the forecourt is, what brand is on the sign, sometimes the opening hours. Not what it costs. We say why further down, because the reason is not technical.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why the Average Hides the Decision
&lt;/h2&gt;

&lt;p&gt;Take the base diesel grade in each of the three priced countries at the snapshot moment. Not the cheapest headline, not the outliers — the 10th percentile, the median and the 90th percentile of every priced station in the country:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Country&lt;/th&gt;
&lt;th&gt;Priced diesel pumps&lt;/th&gt;
&lt;th&gt;10th pct&lt;/th&gt;
&lt;th&gt;Median&lt;/th&gt;
&lt;th&gt;90th pct&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Spain (&lt;code&gt;gasoleo_a&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;11,199&lt;/td&gt;
&lt;td&gt;€1.739&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;€1.935&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;€2.019&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Italy (&lt;code&gt;gasolio_self&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;20,289&lt;/td&gt;
&lt;td&gt;€2.190&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;€2.249&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;€2.349&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;France (&lt;code&gt;gazole&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;8,993&lt;/td&gt;
&lt;td&gt;€2.250&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;€2.399&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;€2.478&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;One note on the Spanish column before anyone plans a route with it: the Canary Islands, Ceuta and Melilla sit well below the peninsula and are not reachable by road from anywhere in this post. Their effect on the figure is small — drop the Canaries and the Spanish 10th percentile moves from €1.739 to €1.759 — but it is the kind of thing worth knowing you have in your denominator.&lt;/p&gt;

&lt;p&gt;Read the medians across the rows and the first lever appears: &lt;strong&gt;€0.464 per litre between the French and Spanish medians&lt;/strong&gt;. On a 600-litre fill that is &lt;strong&gt;€278&lt;/strong&gt;, decided entirely by which side of a line the driver stops on.&lt;/p&gt;

&lt;p&gt;National medians are still an abstraction, though, so narrow it to the regions on either side of the Pyrenean crossings:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Region&lt;/th&gt;
&lt;th&gt;Priced diesel pumps&lt;/th&gt;
&lt;th&gt;Median diesel&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Navarre (&lt;code&gt;ESP-NC&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;231&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;€1.861&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Catalonia (&lt;code&gt;ESP-CT&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;1,443&lt;/td&gt;
&lt;td&gt;€1.899&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Aragon (&lt;code&gt;ESP-AR&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;418&lt;/td&gt;
&lt;td&gt;€1.935&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Basque Country (&lt;code&gt;ESP-PV&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;341&lt;/td&gt;
&lt;td&gt;€1.989&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Nouvelle-Aquitaine (&lt;code&gt;FRA-NAQ&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;1,077&lt;/td&gt;
&lt;td&gt;€2.389&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Occitanie (&lt;code&gt;FRA-OCC&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;952&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;€2.395&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Occitanie to Navarre is &lt;strong&gt;€0.534 per litre&lt;/strong&gt; — roughly &lt;strong&gt;€320 on a 600-litre fill&lt;/strong&gt;, over a distance a truck covers inside a single driving period. No weekly national figure on either side of the border contains that fact.&lt;/p&gt;

&lt;p&gt;And there is a second lever that sits entirely inside one country. French stations are tagged with the road class they sit on. At the snapshot:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;429 French stations on the autoroute network&lt;/strong&gt; — median &lt;code&gt;gazole&lt;/code&gt; &lt;strong&gt;€2.481&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;8,564 French stations off it&lt;/strong&gt; — median &lt;code&gt;gazole&lt;/code&gt; &lt;strong&gt;€2.399&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;An &lt;strong&gt;€0.082 per litre&lt;/strong&gt; motorway premium, or about &lt;strong&gt;€49 a fill&lt;/strong&gt;. A truck routed down an autoroute passes the expensive 429 by default; the cheaper 8,564 are the ones you have to deliberately look for, which requires knowing where they are and what they charge before dispatch, not after the fuel card statement arrives.&lt;/p&gt;

&lt;h2&gt;
  
  
  One &lt;code&gt;/features&lt;/code&gt; Call, Prices Included
&lt;/h2&gt;

&lt;p&gt;Per-station prices arrive in the same &lt;code&gt;fuel_stations&lt;/code&gt; feature type as every other forecourt in the system, filtered the same way as any other layer:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"X-API-Key: &lt;/span&gt;&lt;span class="nv"&gt;$KEY&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="s2"&gt;"https://api.napspan.com/api/v1/features?type=fuel_stations&amp;amp;jurisdiction=FRA-IDF"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"data"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"feature_type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"fuel_stations"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"jurisdiction"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"FRA-IDF"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"180 Rue d'Herblay, Taverny"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"properties"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"city"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Taverny"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"region"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Île-de-France"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"highway_type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"R"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"prices"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
          &lt;/span&gt;&lt;span class="nl"&gt;"gazole"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
            &lt;/span&gt;&lt;span class="nl"&gt;"value"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;2.179&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
            &lt;/span&gt;&lt;span class="nl"&gt;"unit"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"litre"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
            &lt;/span&gt;&lt;span class="nl"&gt;"currency"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"EUR"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
            &lt;/span&gt;&lt;span class="nl"&gt;"label"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Gazole"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
            &lt;/span&gt;&lt;span class="nl"&gt;"updated"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"2026-08-27T07:32:05+00:00"&lt;/span&gt;&lt;span class="w"&gt;
          &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
          &lt;/span&gt;&lt;span class="nl"&gt;"sp95"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"value"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;2.059&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"unit"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"litre"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"currency"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"EUR"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"label"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"SP95"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"updated"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"2026-08-27T07:32:05+00:00"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
          &lt;/span&gt;&lt;span class="nl"&gt;"sp98"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"value"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;2.1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;   &lt;/span&gt;&lt;span class="nl"&gt;"unit"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"litre"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"currency"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"EUR"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"label"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"SP98"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"updated"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"2026-08-27T07:32:05+00:00"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"fuels_available"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;   &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"Gazole"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"SP95"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"SP98"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"fuels_unavailable"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"E85"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"GPLc"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"E10"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Note &lt;code&gt;fuels_unavailable&lt;/code&gt; in passing: the French register also states which grades a station is currently &lt;em&gt;out of&lt;/em&gt;, which is a different and occasionally more urgent fact than what it charges.&lt;/p&gt;

&lt;p&gt;Three things about that payload will save you a week each.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. There is no &lt;code&gt;diesel&lt;/code&gt; key
&lt;/h3&gt;

&lt;p&gt;Diesel is &lt;code&gt;gazole&lt;/code&gt; in France, &lt;code&gt;gasoleo_a&lt;/code&gt; in Spain, and &lt;code&gt;gasolio_self&lt;/code&gt; in Italy — and those are just the base grades. Across the three registers the snapshot counts &lt;strong&gt;130 distinct grade keys&lt;/strong&gt;: &lt;strong&gt;6 in France, 14 in Spain, and 110 in Italy&lt;/strong&gt;, where branded premium diesels are reported as separate products under their marketing names. Any integration that looks up a hard-coded &lt;code&gt;"diesel"&lt;/code&gt; field returns nothing in all three countries.&lt;/p&gt;

&lt;p&gt;We keep the national keys rather than flattening them, because flattening loses information you need — a premium diesel is not the same product as the base grade, and pricing a fleet fill against the wrong one is a real error. Map the base grades once, ignore the rest, and you are done.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. In Italy the same pump has two prices
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;12,875 Italian stations publish both a self-service and an attended diesel price&lt;/strong&gt;, and the median difference between them is &lt;strong&gt;€0.200 per litre&lt;/strong&gt; — with a maximum, at one site, of &lt;strong&gt;€0.806&lt;/strong&gt;. That is &lt;strong&gt;€120&lt;/strong&gt; on a 600-litre fill riding on which of two keys you happened to read.&lt;/p&gt;

&lt;p&gt;It is the most expensive misreading this dataset makes available, and it is invisible if you assume one station means one price. &lt;code&gt;gasolio_self&lt;/code&gt; and &lt;code&gt;gasolio_servito&lt;/code&gt; are different products at the same address.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Freshness is not uniform, and we do not paper over it
&lt;/h3&gt;

&lt;p&gt;Each price carries its own &lt;code&gt;updated&lt;/code&gt; stamp where the source publishes one, separate from when we polled. That matters because the three registers do not move at the same speed. At the snapshot:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;France&lt;/strong&gt; — all 8,993 priced diesel pumps carry a per-price timestamp. The median observation was from &lt;strong&gt;27 October 15:55 UTC&lt;/strong&gt;, under two days before the snapshot; 4,971 of them had been updated within 48 hours.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Italy&lt;/strong&gt; — all 20,289 carry a timestamp. The newest read &lt;strong&gt;29 October 10:35&lt;/strong&gt; and the median &lt;strong&gt;28 October 13:31&lt;/strong&gt;, both Italian local time (see the format note below), so the median Italian price was about a day old and 15,231 of the 20,289 were inside 48 hours. In September the same register ran two to three days behind, with under 1% inside 48 hours — so do not hard-code a lag in either direction; read the stamp.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Spain&lt;/strong&gt; — publishes &lt;strong&gt;no per-price timestamp at all&lt;/strong&gt;. You know when we last polled and nothing about when the operator last changed the number.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So read &lt;code&gt;updated&lt;/code&gt; and age the value out on your own threshold. Italian and French prices are typically a day or two old, and the cadence has shifted between snapshots; a Spanish one is undated and must be treated accordingly. We would rather hand you the stamp and let you decide than stamp everything with our poll time and imply a freshness we did not measure.&lt;/p&gt;

&lt;p&gt;One caveat on that field, since it is the kind of thing that silently breaks an alert: &lt;strong&gt;the French stamps track the source's own publication clock, not true UTC.&lt;/strong&gt; At this snapshot &lt;strong&gt;144 of the 8,993&lt;/strong&gt; French stamps sat in the &lt;em&gt;future&lt;/em&gt; relative to our wall clock, the furthest ahead by &lt;strong&gt;17 minutes&lt;/strong&gt;. Compare these timestamps to each other, and do not build a “stale if older than &lt;em&gt;n&lt;/em&gt; minutes” rule that assumes they are synchronised with yours.&lt;/p&gt;

&lt;h3&gt;
  
  
  Querying by place
&lt;/h3&gt;

&lt;p&gt;And one more that costs an afternoon if you meet it in production: &lt;strong&gt;the stamp is not the same format in both countries that publish one.&lt;/strong&gt; France emits ISO 8601 with an offset (&lt;code&gt;2026-08-27T07:32:05+00:00&lt;/code&gt;); Italy emits &lt;code&gt;25/08/2026 08:02:02&lt;/code&gt; — day-first, space-separated, no timezone at all. We hand both through as the register wrote them rather than silently reinterpreting a date we cannot verify the zone of, so a parser pointed at ISO will throw on all &lt;strong&gt;20,289&lt;/strong&gt; Italian rows. Parse per country, and read an Italian stamp as local time.&lt;/p&gt;

&lt;p&gt;France and Spain are keyed by &lt;strong&gt;region&lt;/strong&gt; — 14 French and 19 Spanish subdivision codes carry priced stations (&lt;code&gt;FRA-OCC&lt;/code&gt;, &lt;code&gt;ESP-CT&lt;/code&gt;, and so on). Italy is a single national code, &lt;code&gt;ITA&lt;/code&gt;. The bare country codes &lt;code&gt;FRA&lt;/code&gt; and &lt;code&gt;ESP&lt;/code&gt; are separate jurisdiction rows of their own, not parents, and they do &lt;em&gt;not&lt;/em&gt; roll up their regions. At the snapshot, &lt;code&gt;ESP&lt;/code&gt; held a single record of its own, unpriced, and &lt;code&gt;FRA&lt;/code&gt; held 5 records of which &lt;strong&gt;4&lt;/strong&gt; carried a price. That second number is the dangerous one: a query on &lt;code&gt;jurisdiction=FRA&lt;/code&gt; returns four priced stations out of the country’s 9,300, so it neither errors nor comes back empty — it comes back looking like it worked. Use the regional codes, or skip codes entirely and ask spatially:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"X-API-Key: &lt;/span&gt;&lt;span class="nv"&gt;$KEY&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="s2"&gt;"https://api.napspan.com/api/v1/features?jurisdiction=FRA-OCC&amp;amp;type=fuel_stations&amp;amp;lat=43.60&amp;amp;lng=1.44&amp;amp;radius_km=50"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Where It Belongs: On the Route
&lt;/h2&gt;

&lt;p&gt;Querying a region is the analysis path. The one that changes a fuel bill is prices arriving already attached to the route the truck is driving.&lt;/p&gt;

&lt;p&gt;Fuel stations are a dense layer — mapped at essentially every interchange — so they ride a dedicated, lazy endpoint rather than the synchronous routing call. Compute a truck route, then ask for what is on it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"X-API-Key: &lt;/span&gt;&lt;span class="nv"&gt;$KEY&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="s2"&gt;"https://api.napspan.com/api/v1/routing/route/saved/&lt;/span&gt;&lt;span class="nv"&gt;$ROUTE_ID&lt;/span&gt;&lt;span class="s2"&gt;/features?types=fuel_stations&amp;amp;buffer_m=300"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"route_id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"01HKZ9P5XJVQ6NB8E2RTH4FMW7"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"features"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"fuel_station"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"180 Rue d'Herblay, Taverny"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"distance_along_route_m"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;56200&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"detour_m"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;120&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"side"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"left"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"source"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"FRA-IDF"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"properties"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"city"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Taverny"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"highway_type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"R"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"prices"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"gazole"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"value"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;2.25&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"currency"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"EUR"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"updated"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"..."&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Every match carries &lt;code&gt;distance_along_route_m&lt;/code&gt; (how far along the route it sits), &lt;code&gt;detour_m&lt;/code&gt; (how far off the line it is) and &lt;code&gt;side&lt;/code&gt; (left or right of the direction of travel) — the three fields that turn a list of nearby stations into a refuelling plan, because a cheap pump on the wrong carriageway is not cheap. The station's full &lt;code&gt;properties&lt;/code&gt;, prices included, pass through untouched. The call does not re-run the routing engine and does not count against routing quota.&lt;/p&gt;

&lt;p&gt;It rides the same corridor as the &lt;a href="https://napspan.com/blog/toll-cost-routing-api.html" rel="noopener noreferrer"&gt;toll cost&lt;/a&gt;, the &lt;a href="https://napspan.com/blog/cross-border-truck-restrictions-vms.html" rel="noopener noreferrer"&gt;truck bans and VMS signs&lt;/a&gt;, the &lt;a href="https://napspan.com/blog/truck-parking-occupancy-api.html" rel="noopener noreferrer"&gt;live parking occupancy&lt;/a&gt; and the &lt;a href="https://napspan.com/blog/eu-border-queue-wait-times.html" rel="noopener noreferrer"&gt;border queues&lt;/a&gt;. One route, and the answer to &lt;em&gt;what will this trip cost and where does it stop&lt;/em&gt; comes back with it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What You Cannot Get, and Why It Is Not a Coverage Gap
&lt;/h2&gt;

&lt;p&gt;The obvious question about a three-country fuel layer is why it is only three countries. The answer is worth publishing, because the constraint is legal rather than technical and every team that scopes this project discovers it the expensive way.&lt;/p&gt;

&lt;p&gt;Per-station prices exist in most of Europe. Reusing them commercially mostly does not:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Germany&lt;/strong&gt; — prices are collected by the official market-transparency unit for fuel. Redistributing them requires authorisation as a consumer information service under German competition law. That is an application, not an API key, and until it exists Germany stays a roadmap item.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Austria&lt;/strong&gt; — the public price service is shaped by regulation to return only the &lt;em&gt;five cheapest&lt;/em&gt; stations per query, with no national bulk endpoint. A complete per-station layer is not merely restricted; it is impossible by design.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Portugal&lt;/strong&gt; — per-station prices are published on a portal whose terms prohibit commercial use. The openly licensed distribution of the same dataset carries locations and metadata, without the prices.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Croatia&lt;/strong&gt; — prices are shown on a ministry website; a formal request for a machine-readable open-data release was refused.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Lithuania&lt;/strong&gt; — the national energy agency publishes strong daily per-station data and marks it all rights reserved.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Switzerland and Iceland&lt;/strong&gt; — no government per-station feed exists at all. What circulates is a motoring-club product in one case and a community scrape of oil-company sites in the other. Neither is licensed for redistribution.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A handful are genuinely open and simply not built yet — Cyprus publishes under a share-alike licence, Slovenia publishes without stating one, and Denmark's per-brand publication became a legal obligation on 1 January 2026. Those are engineering work. The list above is not.&lt;/p&gt;

&lt;p&gt;We would rather show you that map than colour in a continent and let you find out at integration time. A vendor claiming European per-station fuel coverage is either doing something we have concluded we cannot lawfully do, or is showing you locations and calling them prices.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Honest Limits
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Three countries. That is the coverage.&lt;/strong&gt; France, Spain, Italy. The other 36 countries in the fuel layer are locations only. If your corridor is Rotterdam–Warsaw, this feature does nothing for you today, and we would rather say so now.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Not every station in those three is priced.&lt;/strong&gt; Italy is 21,652 of 24,142 and France 9,300 of 9,821; Spain 11,371 of 11,418. In these three countries the station list now comes from the national registers alone, so an unpriced record is a register station with no current price, not a gap in the map. The absence of a &lt;code&gt;prices&lt;/code&gt; object means &lt;em&gt;unpriced&lt;/em&gt;, never &lt;em&gt;free&lt;/em&gt;. Your code needs that third state.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Italian prices are about a day old.&lt;/strong&gt; The median stamp was roughly 22 hours behind at the snapshot, after running two to three days behind in September. Good enough to choose between two regions, not good enough to promise a driver a number at the pump.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Spanish prices carry no observation time.&lt;/strong&gt; You have our poll time and nothing else.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;These are retail posted prices.&lt;/strong&gt; They are not your fuel-card contract price, and no register publishes negotiated fleet rates. The spread between regions and road classes is a real signal about where to buy; the absolute figure on your invoice will be your own.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A price is a snapshot, not a forecast.&lt;/strong&gt; The medians above are what 29 October looked like. Re-pull before you rely on them — and if a number in this post matters to your decision, the API call that produced it is printed above precisely so you can check whether it still holds.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The Common Thread
&lt;/h2&gt;

&lt;p&gt;This is the same shape as the &lt;a href="https://napspan.com/blog/european-road-data-challenges.html" rel="noopener noreferrer"&gt;five road-data problems every cross-border European fleet hits&lt;/a&gt;, and as the &lt;a href="https://napspan.com/blog/open-data-beyond-datex-ii.html" rel="noopener noreferrer"&gt;useful road data that lives outside the National Access Points&lt;/a&gt;. Three governments publish something genuinely valuable, properly, under open licences. They publish it in three different schemas, with three different words for diesel, on three different cadences, with three different attribution obligations — and one of them counts the same pump twice on purpose. Doing that join once per country, and then keeping it working, is a permanent maintenance commitment that competes with whatever you actually sell.&lt;/p&gt;

&lt;p&gt;NAPSPAN does the join once. The prices are open data and the credit travels with every record we hand you: French data under Licence Ouverte, with the &lt;em&gt;Ministères économiques et financiers&lt;/em&gt; as licensor; Spanish data as &lt;em&gt;Origen de los datos: Ministerio para la Transición Ecológica y el Reto Demográfico&lt;/em&gt;; Italian data as &lt;em&gt;Dati: Ministero delle Imprese e del Made in Italy (MIMIT) — Osservaprezzi Carburanti&lt;/em&gt;, under the Italian Open Data Licence 2.0. Station locations outside the priced registers come from OpenStreetMap under ODbL. Every source is licence-classified before it ships, and the ones that fail that check are the countries listed above — which is why they are absent rather than quietly included.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try It
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://napspan.com/docs.html" rel="noopener noreferrer"&gt;API docs&lt;/a&gt; — &lt;code&gt;/features&lt;/code&gt; with &lt;code&gt;type=fuel_stations&lt;/code&gt;, and &lt;code&gt;/routing/route/saved/{id}/features&lt;/code&gt; with &lt;code&gt;types=fuel_stations&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://map.napspan.com" rel="noopener noreferrer"&gt;Live map&lt;/a&gt; — the priced networks as they stand right now&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://portal.napspan.com/signup" rel="noopener noreferrer"&gt;Free API key&lt;/a&gt; — no card, 14-day trial&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://napspan.com/blog/per-station-fuel-prices-europe.html" rel="noopener noreferrer"&gt;napspan.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>logistics</category>
      <category>api</category>
      <category>dataengineering</category>
      <category>opendata</category>
    </item>
    <item>
      <title>When the Season Turns, “Is the Road Passable” Has 21 Different Answers</title>
      <dc:creator>Roman Kotenko</dc:creator>
      <pubDate>Thu, 22 Oct 2026 13:30:00 +0000</pubDate>
      <link>https://dev.to/road511/when-the-season-turns-is-the-road-passable-has-21-different-answers-3jjp</link>
      <guid>https://dev.to/road511/when-the-season-turns-is-the-road-passable-has-21-different-answers-3jjp</guid>
      <description>&lt;p&gt;It is the middle of September and every winter feed we carry says the roads are fine. Illinois reports &lt;em&gt;clear&lt;/em&gt; on 9,639 segments. Alberta and Saskatchewan say &lt;em&gt;bare dry&lt;/em&gt;. California has 1,009 chain-control checkpoints live and every single one reads &lt;code&gt;R-0&lt;/code&gt; — no restriction in force. That is the correct answer today, and it is exactly why this is the right week to wire the layer, not the second week of November when a dispatcher is refreshing six DOT pages by hand at 5 a.m.&lt;/p&gt;

&lt;p&gt;Because from October the thing that ruins a run usually is not an incident. It is a &lt;em&gt;condition&lt;/em&gt;. Nothing is closed, nothing is crashed, there is no event to query — the road is simply covered, and the question is whether your driver should be on it. That question lives in a different dataset from the one your incident feed reads, and it is the least standardized dataset in North American road data.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conditions Are Not Incidents, and They Are Not in Your Events Feed
&lt;/h2&gt;

&lt;p&gt;An incident feed answers &lt;em&gt;what happened at this point&lt;/em&gt;. A conditions feed answers &lt;em&gt;what this stretch is like right now&lt;/em&gt; — which is a property of a segment, published on its own cadence, usually by a different part of the same agency. If you are reading only events, a corridor with 200 miles of snow-covered pavement and no crashes on it looks identical to a corridor in July.&lt;/p&gt;

&lt;p&gt;We carry that layer as &lt;code&gt;road_conditions&lt;/code&gt;. Here is what it actually holds, read from production on &lt;strong&gt;17 September 2026, 12:42–13:02 UTC&lt;/strong&gt; — a single snapshot, and a deliberately off-season one:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;17,407 active condition segments across 21 states and provinces&lt;/strong&gt; — Illinois 9,246, Alberta 1,237, Wisconsin 1,175, North Dakota 750, Ontario 546, Montana 544, South Dakota 542, Alaska 496, Québec 446, Nevada 434, Arkansas 393, Manitoba 366, West Virginia 276, Idaho 237, Yukon 156, Newfoundland &amp;amp; Labrador 156, Utah 145, Colorado 100, New Brunswick 87, Northwest Territories 59, Washington 16.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;7,608 of them carry a LineString&lt;/strong&gt;, so they are real stretches of road you can intersect with a route rather than pins on a map; 17,287 of 17,407 carry geometry of some kind.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;All 21 sources were polled within a 20-minute window&lt;/strong&gt; at that snapshot — oldest reading 12:42:05, newest 13:02:10. This is a live layer, not a nightly dump.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Six Field Names, Twenty-Seven Words, One Question
&lt;/h2&gt;

&lt;p&gt;Here is the part that makes this a normalization problem rather than a plumbing one. Twenty-one agencies describe the same physical thing, and they do not agree on &lt;em&gt;what the field is called&lt;/em&gt;, let alone what goes in it. Across the layer the condition text arrives under &lt;strong&gt;six different property names&lt;/strong&gt;:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Property key&lt;/th&gt;
&lt;th&gt;Who publishes it&lt;/th&gt;
&lt;th&gt;Segments&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;condition&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;19 of 21 sources&lt;/td&gt;
&lt;td&gt;16,216&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;conditions&lt;/code&gt; &lt;em&gt;(in addition to &lt;code&gt;condition&lt;/code&gt;)&lt;/em&gt;
&lt;/td&gt;
&lt;td&gt;Ontario, Colorado&lt;/td&gt;
&lt;td&gt;646&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;condition_category&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;North Dakota&lt;/td&gt;
&lt;td&gt;750&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;condition_code&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Québec&lt;/td&gt;
&lt;td&gt;446&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;surface_conditions&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Alaska (part of its rows)&lt;/td&gt;
&lt;td&gt;164&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;road_condition&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Washington&lt;/td&gt;
&lt;td&gt;16&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;And inside those fields, &lt;strong&gt;27 distinct condition strings&lt;/strong&gt; across the 19 sources that publish one. Some of them are the same state of the world wearing four different coats:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;bare dry          1,275   (Alberta, Saskatchewan)
dry                 687   (3 sources)
bare and dry        309
3 - dry              75
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Others are not descriptions at all. North Dakota publishes &lt;code&gt;Green&lt;/code&gt; — a colour on its own scale, 750 segments of it. Québec publishes &lt;code&gt;Ds&lt;/code&gt; and &lt;code&gt;Dm&lt;/code&gt;, 309 and 137 segments, which mean something precise to Transports Québec and nothing to a dispatcher in Indiana. Several agencies offer &lt;code&gt;good&lt;/code&gt;, &lt;code&gt;fair&lt;/code&gt; and &lt;code&gt;open&lt;/code&gt;, which are judgements rather than observations.&lt;/p&gt;

&lt;p&gt;We do not flatten these into a severity score. That is a deliberate decision and it is worth stating plainly: inventing a five-point scale would mean deciding that Ontario’s &lt;code&gt;normal_seasonal&lt;/code&gt; and Alberta’s &lt;code&gt;bare dry&lt;/code&gt; are the same number, and we have no basis for that beyond our own opinion. &lt;strong&gt;You get the publisher’s own words, in one schema, on one endpoint&lt;/strong&gt;, plus the jurisdiction that said them — so you can map the vocabulary to your own risk policy once, in one place, instead of writing 21 scrapers and then doing it anyway.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the Layer Says Today, Off-Season
&lt;/h2&gt;

&lt;p&gt;A conditions feed in September is mostly a feed reporting that it is September. That is the honest reading, and the distribution shows it:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Condition, as published&lt;/th&gt;
&lt;th&gt;Segments&lt;/th&gt;
&lt;th&gt;Sources&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;clear&lt;/td&gt;
&lt;td&gt;9,639&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;no report&lt;/td&gt;
&lt;td&gt;1,715&lt;/td&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;bare dry&lt;/td&gt;
&lt;td&gt;1,275&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;seasonal conditions&lt;/td&gt;
&lt;td&gt;750&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;dry&lt;/td&gt;
&lt;td&gt;687&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;normal_seasonal&lt;/td&gt;
&lt;td&gt;546&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The interesting rows are the small ones, and they are all in the north, in September: &lt;strong&gt;24 segments already read &lt;code&gt;closed&lt;/code&gt;&lt;/strong&gt; — Manitoba 11, Northwest Territories 11, Alberta 2. Alaska publishes &lt;code&gt;no winter maintenance&lt;/code&gt; on 9. Yukon and Alaska carry &lt;code&gt;difficult&lt;/code&gt; on 13 between them, and the Northwest Territories &lt;code&gt;caution&lt;/code&gt; on 5. The season does not start everywhere on the same day, and the feed knows that before the calendar does.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;no report&lt;/code&gt; is not &lt;code&gt;clear&lt;/code&gt;.&lt;/strong&gt; Those 1,715 segments across 8 sources mean nobody has filed an observation, which is a different fact from a road that has been looked at and found fine. Any rule you build on this layer has to treat the two separately, and we keep them separate rather than collapsing silence into good news.&lt;/p&gt;

&lt;h2&gt;
  
  
  Chain Control Is the One That Is Actually Actionable — and California Is the Only State Proven in Winter
&lt;/h2&gt;

&lt;p&gt;Conditions tell you what the road is like. &lt;strong&gt;Chain control tells you what you are legally required to do about it&lt;/strong&gt;, which is the only part of winter data that changes a driver’s next ten minutes rather than a planner’s afternoon.&lt;/p&gt;

&lt;p&gt;We carry &lt;strong&gt;1,009 California chain-control checkpoints&lt;/strong&gt;, the only dedicated checkpoint feed in the set. Every one carries a complete record — &lt;code&gt;chain_status&lt;/code&gt;, &lt;code&gt;chain_control_active&lt;/code&gt;, &lt;code&gt;elevation&lt;/code&gt;, &lt;code&gt;county&lt;/code&gt; and &lt;code&gt;district&lt;/code&gt; are populated on all 1,009 rows, which is a fill rate almost nothing else in North American road data achieves. On 17 September every checkpoint read &lt;code&gt;R-0&lt;/code&gt;: no requirement in force.&lt;/p&gt;

&lt;p&gt;This is also the one winter type that &lt;strong&gt;surfaces on a route&lt;/strong&gt;. Ask for a truck route and an active chain control on it comes back as a warning in the response, keyed off &lt;code&gt;chain_control_active&lt;/code&gt;. The R-1/R-2/R-3 escalation on Donner Pass in January is a real operational signal and it is wired end to end.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;**Update, 15 October 2026:&lt;/em&gt;* this section first said chain control was one state. Since 11 October we also read the chain and traction requirement that &lt;strong&gt;Nevada, Idaho, Utah, Colorado and Washington&lt;/strong&gt; publish on their road-condition segments — NV 434, ID 237, UT 145, CO 100, WA 16, so &lt;strong&gt;1,941 rows across six states&lt;/strong&gt; with California. Every row carries &lt;code&gt;chain_control_active&lt;/code&gt;, and every row in the five new states keeps the operator’s own words in &lt;code&gt;source_restriction_text&lt;/code&gt;. Measured on 15 October, 16:02 UTC: &lt;strong&gt;0 active anywhere&lt;/strong&gt;.*&lt;/p&gt;

&lt;p&gt;Read that carefully before you lean on it. These five are not checkpoint feeds like California’s; they are a restriction field on the same segments listed above. Today they say “No Report”, “Dry”, “No restrictions” or a Colorado surface code, which proves only that the quiet case parses. &lt;strong&gt;Their winter wording has not been seen yet&lt;/strong&gt; — it cannot be until it snows — and a phrase that names neither chains, traction nor a known code would read as inactive. The text is kept on every row so you can check it yourself, and we will re-measure after the first active row outside California. Oregon is enabled and has published no rows yet. For I-70 west of Denver or I-90 over Snoqualmie this layer now carries the segment; it has not yet proven it carries the requirement.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;**Update, 22 October 2026 — the season has turned.&lt;/em&gt;* Measured 07:03 UTC. The first active row outside California arrived overnight: Nevada’s &lt;strong&gt;SR-431, the Mt. Rose Highway&lt;/strong&gt;, reads “Chains Required, All Vehicles except 4-wheel drive with Snow tires” and parses as active, so the Nevada wording is now proven for that phrase — Idaho, Utah, Colorado and Washington still are not. In California five checkpoints have left &lt;code&gt;R-0&lt;/code&gt; for &lt;code&gt;ROAD CLOSED&lt;/code&gt;: the seasonal closures over Sonora, Ebbetts and Monitor passes and the Tioga gate at Crane Flat. Those come back with &lt;code&gt;chain_control_active&lt;/code&gt; set, which is a closure carried on the chain field rather than a chain requirement — read &lt;code&gt;chain_status&lt;/code&gt; before you tell a driver to chain up. Across the conditions layer the vocabulary has grown from 27 distinct strings to &lt;strong&gt;37&lt;/strong&gt;, and Alaska now reports snow or ice on &lt;strong&gt;353&lt;/strong&gt; of its 497 segments. The September figures above stay as they were measured; this paragraph is the October reading.*&lt;/p&gt;

&lt;h2&gt;
  
  
  Querying It
&lt;/h2&gt;

&lt;p&gt;One feature type, one endpoint, filtered the same way as everything else we carry:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="err"&gt;GET /api/v1/features?
  type=road_conditions&amp;amp;
  jurisdiction=MT&amp;amp;
  limit=2
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Swap &lt;code&gt;type&lt;/code&gt; for &lt;code&gt;chain_controls&lt;/code&gt; to get the chain-control rows, drop &lt;code&gt;jurisdiction&lt;/code&gt; to sweep all 21, or pass a bounding box to take a corridor rather than a state. The response carries the publisher’s condition text in &lt;code&gt;properties&lt;/code&gt; under whichever of the six keys that agency uses, alongside the normalized fields — jurisdiction, geometry, &lt;code&gt;last_seen_at&lt;/code&gt; — that are the same for every type in the system. The &lt;code&gt;road_conditions&lt;/code&gt; and &lt;code&gt;chain_controls&lt;/code&gt; layers are on every plan, free trial included.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Honest Limits
&lt;/h2&gt;

&lt;p&gt;Four of them, and as with everything else we publish they matter more than the headline count.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Wisconsin publishes no condition text at all.&lt;/strong&gt; Its 1,175 segments arrive with &lt;code&gt;segment&lt;/code&gt; and &lt;code&gt;area_name&lt;/code&gt; and nothing else — a list of stretches with no state attached to them. They are in the layer because the segment list itself is useful and because the field may start arriving; they are not in it because we can tell you what those roads are like. That is 1,175 of 17,407 rows, and a naive count of “segments covered” would quietly include them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Road conditions do not enrich a route.&lt;/strong&gt; Chain controls do; conditions do not. Ask for a route today and you will get work zones, hazards, weigh stations, border crossings and chain controls shaped into warnings — and no road-condition warning, because the spatial rule for “this 40-mile segment is snow-covered and your route uses eleven miles of it” is not the same rule as “there is an incident 60 metres from the line”, and we have not shipped it. Query the layer directly and intersect it yourself, or wait; do not assume the route response has already checked.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The plow layer exists, and its counts are not trustworthy yet.&lt;/strong&gt; We carry &lt;code&gt;service_vehicles&lt;/code&gt; from 13 jurisdictions and today 1,222 of them are active — Pennsylvania 767, Indiana 243, Iowa 115. The lifecycle on this type flaps: a vehicle that stops reporting is deactivated and reactivated repeatedly, so the active count is a reading of who is transmitting this minute and not a measure of a state’s fleet or its effort. It is under repair. Until it is fixed, treat plow positions as a live sighting, never as a denominator.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Everything above is a September snapshot of a winter layer.&lt;/strong&gt; The counts will be different in January — that is the entire point of it being an endpoint rather than a table in a PDF. Re-run the queries and you will get the day you are standing in.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Wire It in September
&lt;/h2&gt;

&lt;p&gt;The work of adopting a conditions layer is not the querying. It is deciding what your operation does when Québec says &lt;code&gt;Dm&lt;/code&gt;, what &lt;code&gt;no report&lt;/code&gt; means for a load you have already quoted, and which of the 27 strings are allowed to hold a driver at a truck stop. That is a policy conversation with your dispatch team, and it is a much better conversation to have in September, against a live feed that says everything is clear, than during the first real storm of the season.&lt;/p&gt;

&lt;p&gt;The feed is running now. Point it at your corridors and read a month of boring answers — that is how you find out what your rules should be before the answers stop being boring. Most of the road-data problems we write about in &lt;a href="https://road511.com/blog/north-american-road-data-challenges.html" rel="noopener noreferrer"&gt;the five road-data problems every NA fleet team hits&lt;/a&gt; are this shape: the data exists, in 21 places, in 21 vocabularies, and the cost is never the fetching.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try It
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://road511.com/docs.html" rel="noopener noreferrer"&gt;API docs&lt;/a&gt; — the &lt;code&gt;/features&lt;/code&gt; surface, its jurisdiction and bounding-box filters, and the full feature-type list&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://road511.com/blog/weather-aware-dispatch-api.html" rel="noopener noreferrer"&gt;Weather at the incident&lt;/a&gt; — the observation layer that sits next to this one&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://portal.road511.com/signup" rel="noopener noreferrer"&gt;Free API key&lt;/a&gt; — no credit card, 14-day trial&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://road511.com/blog/winter-road-conditions-api.html?utm_source=devto&amp;amp;utm_medium=social&amp;amp;utm_campaign=winter-road-conditions-api&amp;amp;utm_content=dev-14" rel="noopener noreferrer"&gt;road511.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>api</category>
      <category>data</category>
      <category>logistics</category>
      <category>trucking</category>
    </item>
    <item>
      <title>"In Betrieb" Is Not "Free". Live Connector Status Across Five European Countries.</title>
      <dc:creator>Roman Kotenko</dc:creator>
      <pubDate>Thu, 15 Oct 2026 15:10:53 +0000</pubDate>
      <link>https://dev.to/road511/in-betrieb-is-not-free-live-connector-status-across-five-european-countries-24fc</link>
      <guid>https://dev.to/road511/in-betrieb-is-not-free-live-connector-status-across-five-european-countries-24fc</guid>
      <description>&lt;p&gt;Every European country now publishes where its public charge points are. That was the easy half, and the Alternative Fuels Infrastructure Regulation is the reason it happened: since April 2024 operators owe machine-readable data about publicly accessible recharging points, and the national access points duly carry it.&lt;/p&gt;

&lt;p&gt;So a planner asks “is there a charger at the depot turn-off?” and gets a confident yes. Then the driver arrives and both connectors are occupied, and the answer was worthless — not wrong, worthless. It answered a question about concrete.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Field That Looks Like an Answer and Isn’t
&lt;/h2&gt;

&lt;p&gt;Germany is the cleanest illustration, because its registry is genuinely good. We hold &lt;strong&gt;154,210&lt;/strong&gt; active German charging records, and &lt;strong&gt;141,083&lt;/strong&gt; of them carry a &lt;code&gt;status&lt;/code&gt; field. On &lt;strong&gt;116,422&lt;/strong&gt; it reads &lt;em&gt;In Betrieb&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;That word means the station is registered and commissioned. It is a fact about paperwork and hardware, and it does not change when a van pulls up. &lt;strong&gt;Zero&lt;/strong&gt; of those 116,422 &lt;em&gt;In Betrieb&lt;/em&gt; records carry any availability field at all. A fleet system that reads &lt;code&gt;status&lt;/code&gt; and colours the pin green has not made a small error — it has answered a different question and presented it as this one.&lt;/p&gt;

&lt;p&gt;Germany did start publishing live state in mid-September — &lt;strong&gt;0&lt;/strong&gt; stations on 10 September, &lt;strong&gt;327&lt;/strong&gt; on 3 October, &lt;strong&gt;3,424&lt;/strong&gt; on 15 October. But it does not arrive on the registry record. It arrives over the AFIR dynamic channel as a &lt;em&gt;separate&lt;/em&gt; record, and &lt;strong&gt;2,863&lt;/strong&gt; of those 3,424 sit within 30 metres of a registry record that still carries no state. The same charger can therefore appear twice: once saying &lt;em&gt;In Betrieb&lt;/em&gt;, once saying whether the cable is free. We do not merge the two yet, so filter on &lt;code&gt;availability_status&lt;/code&gt; rather than on the registry row.&lt;/p&gt;

&lt;p&gt;The distinction matters because the two fields look interchangeable, and only one of them answers the driver’s question.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where Live Status Actually Exists, and How Much of It
&lt;/h2&gt;

&lt;p&gt;Measured in one transaction against production on &lt;strong&gt;15 October 2026, 15:04 UTC&lt;/strong&gt;: of &lt;strong&gt;415,272&lt;/strong&gt; active charging records we serve across Europe, &lt;strong&gt;121,988&lt;/strong&gt; carry a live availability status, and &lt;strong&gt;121,956&lt;/strong&gt; of those carry it &lt;em&gt;per connector&lt;/em&gt; rather than per site. That is &lt;strong&gt;323,765 individual connectors&lt;/strong&gt; whose state is published.&lt;/p&gt;

&lt;p&gt;It is five countries, and they arrive over four national channels — Germany and Lithuania share the AFIR dynamic one:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Jurisdiction&lt;/th&gt;
&lt;th&gt;Stations with live status&lt;/th&gt;
&lt;th&gt;Channel&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Netherlands&lt;/td&gt;
&lt;td&gt;79,051&lt;/td&gt;
&lt;td&gt;&lt;code&gt;nl_ocpi&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;France&lt;/td&gt;
&lt;td&gt;22,079&lt;/td&gt;
&lt;td&gt;&lt;code&gt;fr_irve_dynamique&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Switzerland&lt;/td&gt;
&lt;td&gt;13,755&lt;/td&gt;
&lt;td&gt;&lt;code&gt;ch_oicp&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Lithuania&lt;/td&gt;
&lt;td&gt;3,679&lt;/td&gt;
&lt;td&gt;&lt;code&gt;afir_dynamic&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Germany&lt;/td&gt;
&lt;td&gt;3,424&lt;/td&gt;
&lt;td&gt;&lt;code&gt;afir_dynamic&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Read that table twice before building on it. &lt;strong&gt;Five countries out of the thirty-six we carry&lt;/strong&gt; — 29.4% of our charging rows, not “Europe”, and the German line is 2.2% of the German records. Anyone selling you continental live charging coverage today is rounding up.&lt;/p&gt;

&lt;p&gt;At that same moment the network read: &lt;strong&gt;99,659 available&lt;/strong&gt;, &lt;strong&gt;10,251 full&lt;/strong&gt;, &lt;strong&gt;9,470 unknown&lt;/strong&gt;, &lt;strong&gt;2,608 out of service&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Those last two categories are the ones that get flattened by careless code. &lt;em&gt;Unknown&lt;/em&gt; is not &lt;em&gt;full&lt;/em&gt;, and &lt;em&gt;out of service&lt;/em&gt; is neither — a charger that is broken will still be broken in twenty minutes, which is a different routing decision from one that is merely busy now. We keep the four states separate for exactly that reason.&lt;/p&gt;

&lt;h2&gt;
  
  
  Per Connector, Because a Station Is Not a Unit
&lt;/h2&gt;

&lt;p&gt;A site with two connectors is not half-free or fully-free; it is one cable in use and one cable open, and those two facts have different owners, different power ratings and different timestamps. The array comes back as it is published — here one Dutch station as it read on 10 September:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"X-API-Key: &lt;/span&gt;&lt;span class="nv"&gt;$KEY&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="s2"&gt;"https://api.napspan.com/api/v1/features?type=ev_charging&amp;amp;jurisdiction=NLD"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"NLD-ev-ALL-NLLOC016859"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"NL, Van der Meerstraat 20, 3863 AG Nijkerk"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"latitude"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;52.21755&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"longitude"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;5.472011&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"properties"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"network"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Allego"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"ports"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"connector_type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"IEC_62196_T2"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"availability_status"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"available"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"available_points"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"occupied_points"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"unavailable_points"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"reported_points"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"availability_source"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"nl_ocpi"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"availability_updated_at"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"2026-09-10T15:28:24Z"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"refill_points"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"NLALLEGO0134202"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"state"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"occupied"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="nl"&gt;"status"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"CHARGING"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="nl"&gt;"updated_at"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"2026-09-10T15:28:24Z"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"NLALLEGO0134201"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"state"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"available"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"status"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"AVAILABLE"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"updated_at"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"2026-09-09T14:26:19Z"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Look at the two &lt;code&gt;updated_at&lt;/code&gt; stamps in that array. They are the same station, and they are &lt;strong&gt;a day apart&lt;/strong&gt;. The connector someone is actively using reported twenty seconds ago; its neighbour last said anything the previous afternoon. That is not a defect in the feed and it is not one in our ingestion — a connector reports when its state changes, so a quiet cable is a stale cable. It is, however, exactly the sort of thing a dashboard will average into a single meaningless “last updated” if nobody looks.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three Things to Know Before You Build on It
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Freshness is uneven, and one country cannot be aged at all.&lt;/strong&gt; Of the 121,988 live rows, &lt;strong&gt;107,160&lt;/strong&gt; carry an &lt;code&gt;availability_updated_at&lt;/code&gt;. Only &lt;strong&gt;18,112&lt;/strong&gt; of those — 17% — are inside the last hour; 90,968 are inside 24 hours; and the oldest stamp in the set is from &lt;strong&gt;14 October 2023&lt;/strong&gt;, a three-year-old reading that is still, technically, a live status field. Set your own staleness threshold and enforce it. Switzerland’s &lt;strong&gt;13,755&lt;/strong&gt; stations publish no timestamp whatsoever, so they cannot be aged by us or by you; treat them accordingly.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The per-connector status strings are not normalised, on purpose.&lt;/strong&gt; Across 323,765 connectors the same state arrives in three casings — &lt;code&gt;AVAILABLE&lt;/code&gt; 141,719, &lt;code&gt;available&lt;/code&gt; 49,731, &lt;code&gt;Available&lt;/code&gt; 15,156 — &lt;code&gt;unknown&lt;/code&gt; arrives in three as well, &lt;code&gt;occupied&lt;/code&gt; in two. We normalise the station-level &lt;code&gt;availability_status&lt;/code&gt; into four values and pass the array through as the operator wrote it, because collapsing a vendor’s string is how you silently lose a state nobody anticipated. Case-fold before you compare.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;This is a live reading, not a reservation.&lt;/strong&gt; An available connector is available to whoever reaches it first. Nothing in AFIR, OCPI or any national feed holds a bay for your driver, and a charger that was free when the route was planned is a probability by the time the vehicle arrives, not a promise.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Same Call as Everything Else on the Corridor
&lt;/h2&gt;

&lt;p&gt;Charging state is not a separate product. It arrives in the same &lt;code&gt;/features&lt;/code&gt; schema, under the same jurisdiction filters, as the &lt;a href="https://napspan.com/blog/truck-parking-occupancy-api.html" rel="noopener noreferrer"&gt;live truck-parking occupancy&lt;/a&gt; that answers the parallel question for diesel fleets, the &lt;a href="https://napspan.com/blog/cross-border-truck-restrictions-vms.html" rel="noopener noreferrer"&gt;cross-border truck bans and VMS signs&lt;/a&gt;, and the &lt;a href="https://napspan.com/blog/toll-cost-routing-api.html" rel="noopener noreferrer"&gt;vehicle-class toll costs&lt;/a&gt; for the same corridor. One key, one schema, one set of jurisdiction codes — ISO 3166-1 alpha-3, so &lt;code&gt;NLD&lt;/code&gt; and &lt;code&gt;FRA&lt;/code&gt;, never &lt;code&gt;NL&lt;/code&gt; or &lt;code&gt;FR&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The point of normalising four national channels into one field set is not tidiness. It is that &lt;code&gt;nl_ocpi&lt;/code&gt;, &lt;code&gt;fr_irve_dynamique&lt;/code&gt;, &lt;code&gt;ch_oicp&lt;/code&gt; and &lt;code&gt;afir_dynamic&lt;/code&gt; are four different documents with four different vocabularies, and a fleet that wants “is the connector free” should not have to learn all four to find out — nor to discover, the hard way, that another country answers a different question in a field with a similar name.&lt;/p&gt;

&lt;h2&gt;
  
  
  What This Does Not Do
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;It is not European coverage.&lt;/strong&gt; Five countries carry live status; thirty-one do not. Germany, the largest registry we hold, carries it on 3,424 separate records — none of its 116,422 &lt;em&gt;In Betrieb&lt;/em&gt; registry records has it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It does not reserve anything.&lt;/strong&gt; See above; this is worth repeating because it is the assumption that costs a driver an hour.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It does not tell you the price.&lt;/strong&gt; Tariff data is a separate and much messier problem; the fuel side of it is covered in &lt;a href="https://napspan.com/blog/per-station-fuel-prices-europe.html" rel="noopener noreferrer"&gt;per-station fuel prices&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;An absent availability field means unknown, never free.&lt;/strong&gt; The 293,284 records without one are not empty car parks; they are stations whose operator publishes nothing about state.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Figures measured against production on 15 October 2026, 15:04 UTC, in a single transaction so they stay mutually consistent; the JSON example is one real record as it read on 10 September, when this article first ran. Charging availability moves by the minute — the counts above describe that moment, and the shape of the finding rather than the numbers is what will still be true next week.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try It
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://napspan.com/docs.html" rel="noopener noreferrer"&gt;API docs&lt;/a&gt; — &lt;code&gt;/features&lt;/code&gt; with &lt;code&gt;type=ev_charging&lt;/code&gt;, filtered by &lt;code&gt;jurisdiction&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://map.napspan.com" rel="noopener noreferrer"&gt;Live map&lt;/a&gt; — the network as it stands right now&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://portal.napspan.com/signup" rel="noopener noreferrer"&gt;Free API key&lt;/a&gt; — no card, 14-day trial&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://napspan.com/blog/ev-charging-live-availability-europe.html?utm_source=devto&amp;amp;utm_medium=social&amp;amp;utm_campaign=ev-charging-live-availability-europe&amp;amp;utm_content=dev-12" rel="noopener noreferrer"&gt;napspan.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>api</category>
      <category>dataengineering</category>
      <category>sustainability</category>
      <category>logistics</category>
    </item>
    <item>
      <title>The Truck's Actual Toll Bill, Returned With the Route</title>
      <dc:creator>Roman Kotenko</dc:creator>
      <pubDate>Thu, 08 Oct 2026 13:30:00 +0000</pubDate>
      <link>https://dev.to/road511/the-trucks-actual-toll-bill-returned-with-the-route-330</link>
      <guid>https://dev.to/road511/the-trucks-actual-toll-bill-returned-with-the-route-330</guid>
      <description>&lt;p&gt;The fastest route and the cheapest route are rarely the same line on the map. The difference is usually tolls — and a passenger car’s toll rate has almost nothing to do with what a 5-axle, 36-tonne, placarded tractor-trailer pays at the same plaza. If your dispatch math uses a car estimate and a fudge factor, the invoice is going to surprise you.&lt;/p&gt;

&lt;p&gt;Road511’s routing endpoint returns the toll cost computed for the truck you’re actually moving. Opt in on a route request and you get back two things: a per-currency &lt;strong&gt;total&lt;/strong&gt; for the whole trip, and a &lt;strong&gt;per-section breakdown&lt;/strong&gt; naming each toll system and the fare that applies to your vehicle class.&lt;/p&gt;

&lt;h2&gt;
  
  
  Opt In With &lt;code&gt;include&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;Toll pricing is opt-in, because computing it has an upstream cost — you only pay for it when you ask. Add &lt;code&gt;"tolls"&lt;/code&gt; to the &lt;code&gt;include&lt;/code&gt; array on &lt;code&gt;POST /api/v1/routing/route&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-X&lt;/span&gt; POST &lt;span class="s2"&gt;"https://api.road511.com/api/v1/routing/route"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"X-API-Key: your_key"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"Content-Type: application/json"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="s1"&gt;'{
    "origin":      { "lat": 40.7128, "lng": -74.0060 },
    "destination": { "lat": 39.9526, "lng": -75.1652 },
    "currency": "USD",
    "truck": {
      "profile":  "tractor",
      "weight_t": 36.0,
      "height_m": 4.2,
      "axle_count": 5,
      "hazardous": ["flammable"]
    },
    "include": ["tolls"]
  }'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That’s New York City→Philadelphia for a 5-axle placarded tractor. The &lt;code&gt;currency&lt;/code&gt; field (ISO 4217) controls what the fares are reported in; the &lt;code&gt;truck&lt;/code&gt; profile you already send is what makes the price the &lt;em&gt;truck’s&lt;/em&gt; price.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Response
&lt;/h2&gt;

&lt;p&gt;Two places carry toll data. The route &lt;code&gt;summary&lt;/code&gt; gets a &lt;code&gt;toll_costs&lt;/code&gt; array — one entry per distinct currency, because a single trip can cross systems billed in different currencies (think a US–Canada run mixing USD and CAD). Each route &lt;code&gt;section&lt;/code&gt; gets a &lt;code&gt;tolls&lt;/code&gt; array naming the systems charged on that stretch and the fares within them.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"routes"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"summary"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"distance_m"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;153400&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"duration_s"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;7320&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"toll_costs"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
          &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"currency"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"USD"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"value"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;38.75&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"sections"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
          &lt;/span&gt;&lt;span class="nl"&gt;"distance_m"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;92100&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
          &lt;/span&gt;&lt;span class="nl"&gt;"duration_s"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;4080&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
          &lt;/span&gt;&lt;span class="nl"&gt;"summary"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"I-95 S via New Jersey Turnpike"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
          &lt;/span&gt;&lt;span class="nl"&gt;"tolls"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
            &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
              &lt;/span&gt;&lt;span class="nl"&gt;"system"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"New Jersey Turnpike"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
              &lt;/span&gt;&lt;span class="nl"&gt;"fares"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
                &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Class 5 (5 axles)"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
                  &lt;/span&gt;&lt;span class="nl"&gt;"price"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"currency"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"USD"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"value"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;31.40&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
                  &lt;/span&gt;&lt;span class="nl"&gt;"payment_methods"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"transponder"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="w"&gt;
                  &lt;/span&gt;&lt;span class="nl"&gt;"transponders"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"E-ZPass"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="w"&gt;
                  &lt;/span&gt;&lt;span class="nl"&gt;"counted"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
                &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Class 5 (5 axles)"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
                  &lt;/span&gt;&lt;span class="nl"&gt;"price"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"currency"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"USD"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"value"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;39.25&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
                  &lt;/span&gt;&lt;span class="nl"&gt;"payment_methods"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"videoToll"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
              &lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
            &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
          &lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
          &lt;/span&gt;&lt;span class="nl"&gt;"distance_m"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;61300&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
          &lt;/span&gt;&lt;span class="nl"&gt;"duration_s"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;3240&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
          &lt;/span&gt;&lt;span class="nl"&gt;"summary"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Delaware River bridge crossing"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
          &lt;/span&gt;&lt;span class="nl"&gt;"tolls"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
            &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
              &lt;/span&gt;&lt;span class="nl"&gt;"system"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Delaware River Port Authority"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
              &lt;/span&gt;&lt;span class="nl"&gt;"fares"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
                &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"5-axle truck"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
                  &lt;/span&gt;&lt;span class="nl"&gt;"price"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"currency"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"USD"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"value"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;7.35&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
                  &lt;/span&gt;&lt;span class="nl"&gt;"payment_methods"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"transponder"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="w"&gt;
                  &lt;/span&gt;&lt;span class="nl"&gt;"transponders"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"E-ZPass"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="w"&gt;
                  &lt;/span&gt;&lt;span class="nl"&gt;"counted"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
              &lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
            &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
          &lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"geometry"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"LineString"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"coordinates"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;/*&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;...&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;*/&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"route_id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"rt_a17f93c0"&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;The fares under one toll system are alternatives, not line items — don’t add them up.&lt;/strong&gt; Each is the same charge under a different payment method (&lt;code&gt;payment_methods&lt;/code&gt;: &lt;code&gt;transponder&lt;/code&gt;, &lt;code&gt;videoToll&lt;/code&gt;, …) or time window (&lt;code&gt;applicable_times&lt;/code&gt;), and the driver pays exactly one of them. &lt;code&gt;summary.toll_costs&lt;/code&gt; has already picked one fare per system — the transponder tariff where one exists, otherwise the cheapest payment group — and marks it &lt;code&gt;counted: true&lt;/code&gt;. That total is the number you’d quote a customer or drop into a lane-cost model; the &lt;code&gt;sections[].tolls[]&lt;/code&gt; detail is where you see &lt;em&gt;which&lt;/em&gt; authority charges &lt;em&gt;what&lt;/em&gt;, and what the same stretch costs without a transponder.&lt;/p&gt;

&lt;h2&gt;
  
  
  Priced for the Vehicle, Not a Sedan
&lt;/h2&gt;

&lt;p&gt;This is the whole point. The fare you get back is keyed to the truck profile on the request — axle count, gross weight, height, and the hazmat flag all factor into the classification the toll engine prices against. A 5-axle combination doesn’t get a 2-axle rate; a heavy load doesn’t get a light-vehicle rate. The &lt;code&gt;fares[].name&lt;/code&gt; echoes the class that was applied (e.g. &lt;em&gt;“Class 5 (5 axles)”&lt;/em&gt;) so you can confirm the truck was rated the way you expected.&lt;/p&gt;

&lt;h2&gt;
  
  
  Routing Around Tolls
&lt;/h2&gt;

&lt;p&gt;Sometimes the answer is to skip the toll road entirely. That’s a different field: put &lt;code&gt;"toll_road"&lt;/code&gt; in the &lt;code&gt;avoid&lt;/code&gt; array and the engine routes around toll facilities where it can. The avoidance applies to every route in the response, so on its own it only shows you the detour.&lt;/p&gt;

&lt;p&gt;To see the trade-off, ask for it instead: add &lt;code&gt;"toll_alternative"&lt;/code&gt; to &lt;code&gt;include&lt;/code&gt; (it implies &lt;code&gt;"tolls"&lt;/code&gt;). You get the fast tolled route as usual, plus a second, toll-free route on &lt;code&gt;toll_alternative&lt;/code&gt; with its extra distance and time set against the toll dollars it saves — the decision made explicit instead of a guess.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"origin"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;/*&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;...&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;*/&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"destination"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;/*&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;...&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;*/&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"truck"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;/*&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;...&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;*/&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"include"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"toll_alternative"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It computes two routes, so it is billed as two routing calls. Full shape in the &lt;a href="https://road511.com/docs.html#toll-alternative" rel="noopener noreferrer"&gt;API docs&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to Expect From the Data
&lt;/h2&gt;

&lt;p&gt;A few honest notes so the numbers behave the way you expect:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Major corridors are well covered&lt;/strong&gt; — Interstate turnpikes, major bridges and tunnels, express lanes, and Canadian facilities like the 407 ETR price reliably for trucks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Coverage thins on the margins.&lt;/strong&gt; Some secondary or rural toll facilities are known to the engine but may return a system name with no priced fare for a given vehicle class — treat a missing &lt;code&gt;price&lt;/code&gt; as “not priced,” not “free.”&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Send &lt;code&gt;departure_time&lt;/code&gt; for an exact figure.&lt;/strong&gt; Some tolls change by time of day. Without a departure time the engine can’t resolve which window applies, and the total is the worst case for the chosen payment method rather than an optimistic one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It’s a planning estimate.&lt;/strong&gt; Toll pricing is computed at request time for the route and vehicle class; it’s built for dispatch and quoting, not for reconciling a transponder statement to the cent.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No tolls, no array.&lt;/strong&gt; A toll-free route, or a request that didn’t opt in, simply omits &lt;code&gt;toll_costs&lt;/code&gt; and section &lt;code&gt;tolls&lt;/code&gt; — the response shape stays stable.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  One Call, the Whole Trip
&lt;/h2&gt;

&lt;p&gt;Toll pricing rides the same &lt;code&gt;POST /api/v1/routing/route&lt;/code&gt; as the corridor hazard &lt;code&gt;warnings[]&lt;/code&gt; and the &lt;a href="https://road511.com/blog/hos-break-planning-api.html" rel="noopener noreferrer"&gt;Hours-of-Service break planning&lt;/a&gt;. A single request can hand back a drivable truck route, the clearances and restrictions on it, where the driver must legally stop, and what the trip costs in tolls — the operational picture a dispatcher actually needs before the truck rolls. Routing is on every paid plan from Starter up, and the free 14-day trial includes it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try It
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://road511.com/docs.html#truck-routing" rel="noopener noreferrer"&gt;API docs&lt;/a&gt; — full request and response reference for &lt;code&gt;POST /api/v1/routing/route&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://road511.com/blog/truck-routing-hazard-warnings.html" rel="noopener noreferrer"&gt;Truck routing with live hazard warnings&lt;/a&gt; — the corridor enrichment in the same call&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://portal.road511.com/signup" rel="noopener noreferrer"&gt;Free API key&lt;/a&gt; — no credit card, 14-day trial&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://road511.com/blog/toll-cost-routing-api.html?utm_source=devto&amp;amp;utm_medium=social&amp;amp;utm_campaign=toll-cost-routing-api&amp;amp;utm_content=dev-02" rel="noopener noreferrer"&gt;road511.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>trucking</category>
      <category>api</category>
      <category>logistics</category>
      <category>webdev</category>
    </item>
    <item>
      <title>The Stop Your Route Never Mentions: 126,002 At-Grade Crossings</title>
      <dc:creator>Roman Kotenko</dc:creator>
      <pubDate>Tue, 29 Sep 2026 13:30:00 +0000</pubDate>
      <link>https://dev.to/road511/the-stop-your-route-never-mentions-126002-at-grade-crossings-5f7l</link>
      <guid>https://dev.to/road511/the-stop-your-route-never-mentions-126002-at-grade-crossings-5f7l</guid>
      <description>&lt;p&gt;A placarded load does not get to treat a rail crossing as scenery. Under &lt;strong&gt;49 CFR 392.10&lt;/strong&gt;, a vehicle carrying placarded hazardous materials, a cargo tank — loaded or empty — or passengers must come to a full stop within 50 feet of the nearest rail, look and listen, and only then proceed. Not slow down. Stop.&lt;/p&gt;

&lt;p&gt;The rule has an exception that decides everything: it applies to &lt;em&gt;at-grade&lt;/em&gt; crossings. If the road goes over the track on a bridge, or under it, no stop is owed. So the operative question on a route is not “is there a crossing ahead” — it is &lt;strong&gt;which of the crossings ahead are at grade&lt;/strong&gt;. That is a data question with a data answer, and most routing products do not carry the field at all.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the Inventory Actually Says
&lt;/h2&gt;

&lt;p&gt;Road511 normalizes the federal highway-rail grade crossing inventory into the same &lt;code&gt;features&lt;/code&gt; schema as everything else. Measured against our North American production database on &lt;strong&gt;20 August 2026&lt;/strong&gt;:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Reading&lt;/th&gt;
&lt;th&gt;Count&lt;/th&gt;
&lt;th&gt;What it means for a placarded load&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Public crossings carried&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;162,284&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Across 50 states; the inventory we serve is public crossings only&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;… of which &lt;strong&gt;at grade&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;126,002&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;A stop is owed at each one&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;… grade separated (road over or under)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;36,282&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;No stop owed — and no reason to slow a schedule for one&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Carrying a warning-device code&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;129,610&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;What physically protects the crossing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Carrying no device code at all&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;32,674&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;The inventory does not say — treat as unknown, never as “none”&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;With a whistle ban in force&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;5,047&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;A quiet zone: the horn you would have heard is not coming&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;With an emergency contact number&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;155,510&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;The number to call when a vehicle is stopped on the tracks&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Roughly one crossing in five carries no device code, and among the 129,610 that do, &lt;strong&gt;58,355 — 45% — are passive-only&lt;/strong&gt;: crossbucks, a stop sign, or nothing that moves. Passive is not a defect in the data; it is the condition of the crossing, and it is exactly the condition where the driver’s stop is the last control in the system.&lt;/p&gt;

&lt;h2&gt;
  
  
  On the Route
&lt;/h2&gt;

&lt;p&gt;Crossings ride the same single call to &lt;code&gt;POST /api/v1/routing/route&lt;/code&gt; that returns the truck-aware route and its corridor warnings. What the route returns depends on what you are hauling:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;With &lt;code&gt;hazardous&lt;/code&gt; set on the truck profile&lt;/strong&gt;, every public at-grade crossing on the corridor comes back as a &lt;code&gt;critical&lt;/code&gt; warning citing 49 CFR 392.10. Every one — not a filtered selection, because the rule is not selective.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Without it&lt;/strong&gt;, the noise would be intolerable, so only crossings that are operationally interesting surface: those the inventory reports at &lt;strong&gt;20 or more trains a day&lt;/strong&gt; (20,840 of them nationally), plus any a source reports as humped, where a low trailer can ground out on the crest.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A dispatcher planning a placarded run gets a count of mandatory stops before the truck leaves — which is a schedule input, not a safety poster. Twenty stops on a lane is roughly twenty times a full deceleration and re-acceleration for a 36-tonne combination, and it is the difference between an ETA that holds and one that does not.&lt;/p&gt;

&lt;h2&gt;
  
  
  Query It Directly
&lt;/h2&gt;

&lt;p&gt;The same records are on &lt;code&gt;/features&lt;/code&gt;, filterable by jurisdiction and bounding box:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="err"&gt;GET /api/v1/features?type=rail_crossings&amp;amp;jurisdiction=IN&amp;amp;limit=5
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each record carries the USDOT crossing number, the railroad, the road name, the grade position, the warning device, day and night through-train counts, track counts, the highway AADT the inventory holds, the maximum timetable speed for the track, and where published, the emergency contact number posted at the crossing.&lt;/p&gt;

&lt;h2&gt;
  
  
  What This Data Is Not
&lt;/h2&gt;

&lt;p&gt;Four limits, stated plainly, because a compliance feature that oversells itself is worse than none:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;It does not know whether a train is coming.&lt;/strong&gt; Train counts are inventory averages — how much traffic the crossing normally sees, not a live movement. Nothing in this feed is a real-time train position, and no product should imply one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It is an inventory, not a sensor.&lt;/strong&gt; Records are maintained by railroads and state agencies and change on their schedule, not by the minute. Treat the device, track and traffic figures as the last thing the agencies published.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Private crossings are out.&lt;/strong&gt; We carry public crossings; the industrial and agricultural ones are excluded, so a facility approach road may hold a crossing this data does not describe.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;An absent field is unknown, never zero.&lt;/strong&gt; The 32,674 crossings without a device code are not 32,674 unprotected crossings. If your UI colours them, colour them grey.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The stop itself is also not ours to grant or excuse: 392.10 carries its own exceptions — a streetcar crossing, an industrial switching track, a crossing directed by a flagman or a police officer, one protected by a functioning gate or signal showing clear. The data tells you the crossing is at grade and what protects it. The driver, and the carrier’s policy, decide the rest.&lt;/p&gt;

&lt;h2&gt;
  
  
  Provenance
&lt;/h2&gt;

&lt;p&gt;The crossing inventory is the federal highway-rail grade crossing inventory published by the US Department of Transportation, in the public domain. Coordinates and road names come with it. Everything above is a count you can reproduce against the live API.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try It
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://road511.com/docs.html" rel="noopener noreferrer"&gt;API docs&lt;/a&gt; — features, routing, and the GeoJSON variants in one reference.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://map.road511.com/" rel="noopener noreferrer"&gt;Live map&lt;/a&gt; — crossings alongside the rest of the normalized 511 data.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://portal.road511.com/signup" rel="noopener noreferrer"&gt;Free API key&lt;/a&gt; — 14-day trial, no credit card.&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://road511.com/blog/rail-crossing-hazmat-stops-api.html?utm_source=devto&amp;amp;utm_medium=social&amp;amp;utm_campaign=rail-crossing-hazmat-stops-api&amp;amp;utm_content=dev-12" rel="noopener noreferrer"&gt;road511.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>api</category>
      <category>trucking</category>
      <category>logistics</category>
      <category>data</category>
    </item>
    <item>
      <title>The Dates DOTs Publish Aren't the Dates They Hit</title>
      <dc:creator>Roman Kotenko</dc:creator>
      <pubDate>Thu, 17 Sep 2026 12:28:32 +0000</pubDate>
      <link>https://dev.to/road511/the-dates-dots-publish-arent-the-dates-they-hit-5dfg</link>
      <guid>https://dev.to/road511/the-dates-dots-publish-arent-the-dates-they-hit-5dfg</guid>
      <description>&lt;p&gt;You did the responsible thing. Before quoting the haul you checked the corridor, found the ramp closure scheduled to start August 3, and planned around it. Three weeks later the truck arrives and the ramp is open — the job was pushed to August 24. Nobody lied to you. The DOT revised its own estimate eleven days ago, published the revision, and your copy of the date was simply the one you took a snapshot of.&lt;/p&gt;

&lt;p&gt;This is the failure mode that survives even after you solve the hard part. &lt;a href="https://road511.com/blog/planned-construction-api.html" rel="noopener noreferrer"&gt;Getting forward-looking schedules into one queryable schema&lt;/a&gt; answers &lt;em&gt;what is planned&lt;/em&gt;. It does not tell you &lt;strong&gt;how much that plan is worth&lt;/strong&gt; — and a start date with no track record behind it is a number, not information.&lt;/p&gt;

&lt;h2&gt;
  
  
  A Date Field Is a Snapshot. You Need the Record.
&lt;/h2&gt;

&lt;p&gt;Every planned-construction record we carry has an &lt;code&gt;estimated_start_time&lt;/code&gt; and an &lt;code&gt;estimated_end_time&lt;/code&gt;. Read them today and you get the agency’s current intent. Read them tomorrow and you may get a different answer, with nothing in the payload to tell you it changed, how far it moved, or whether this is the fourth time.&lt;/p&gt;

&lt;p&gt;So we keep the change log. Every time a source republishes a project with a different projected start or end, we record the old value, the new value, and when we saw it. That log is a first-class, queryable dataset — not an internal audit trail — and it converts a static date into something with a history you can weigh.&lt;/p&gt;

&lt;h2&gt;
  
  
  Eleven Weeks of Watching Dates Move
&lt;/h2&gt;

&lt;p&gt;Here is what the log actually holds as of 17 September 2026, on live North American data — not an illustration. These are readings, not constants: run the queries yourself and you will get today’s numbers, which is the point of the thing being an endpoint.&lt;/p&gt;

&lt;p&gt;Across the &lt;strong&gt;2,269 active planned-construction projects&lt;/strong&gt; we carry (Virginia 910, Delaware 775, West Virginia 257, New Jersey 247, North Carolina 77, and three in New Brunswick), we have recorded &lt;strong&gt;21,289 date revisions&lt;/strong&gt; in the window running 3 July to 17 September 2026 — 12,307 revisions to a projected start, 8,982 to a projected end. Those revisions land on &lt;strong&gt;4,414 distinct projects&lt;/strong&gt;, 289 of which are still on the board right now.&lt;/p&gt;

&lt;p&gt;The single most useful thing in that pile is the direction. Of the 21,289 revisions, &lt;strong&gt;21,128 moved a date later and 161 moved one earlier.&lt;/strong&gt; Schedule drift is not noise scattered around a central estimate; it is a one-way ratchet. A published date is, in practice, a floor.&lt;/p&gt;

&lt;p&gt;The size of the moves is where planning slack actually comes from:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;How far a projected start moved, per revision&lt;/th&gt;
&lt;th&gt;Revisions&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Exactly one week&lt;/td&gt;
&lt;td&gt;3,438&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;More than a week&lt;/td&gt;
&lt;td&gt;2,752&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Two to six days&lt;/td&gt;
&lt;td&gt;2,376&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Under a day (or pulled earlier)&lt;/td&gt;
&lt;td&gt;2,147&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Exactly one day&lt;/td&gt;
&lt;td&gt;1,594&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The median revision moves a start &lt;strong&gt;seven days&lt;/strong&gt;; the average is 5.8, pulled down by the sub-day nudges and the handful of moves that went the other way. The largest single revision we have on record pushed a ramp closure on I-81S at mile marker 291.2 from July 15 to September 14 — &lt;strong&gt;61 days in one edit&lt;/strong&gt;, published on 13 September. And &lt;strong&gt;1,657 separate projects&lt;/strong&gt; have taken at least one start revision larger than a week.&lt;/p&gt;

&lt;p&gt;None of that is knowable from a date field. All of it is knowable from the log.&lt;/p&gt;

&lt;h2&gt;
  
  
  Querying It
&lt;/h2&gt;

&lt;p&gt;The change log is one endpoint. Filter it by what changed, on what kind of feature, over what window:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="err"&gt;GET /api/v1/analytics/feature-history?
  feature_type=future_construction&amp;amp;
  change_type=estimated_start_time_change&amp;amp;
  limit=2

{
  "data": [
    {
      "id": 174240967,
      "feature_id": "VA-fcon-WZSW4664041-08182026-3",
      "source": "VA",
      "feature_type": "future_construction",
      "change_type": "estimated_start_time_change",
      "changed_field": "estimated_start_time",
      "old_value": "2026-09-15T10:30:00Z",
      "new_value": "2026-09-18T10:30:00Z",
      "recorded_at": "2026-09-17T11:26:47.870007Z"
    },
    {
      "id": 174240964,
      "feature_id": "VA-fcon-WZSW4638782-06152026-5",
      "source": "VA",
      "feature_type": "future_construction",
      "change_type": "estimated_start_time_change",
      "changed_field": "estimated_start_time",
      "old_value": "2026-09-11T11:00:00Z",
      "new_value": "2026-09-18T11:00:00Z",
      "recorded_at": "2026-09-17T11:26:47.870007Z"
    }
  ],
  "total": 12307,
  "limit": 2,
  "offset": 0,
  "has_more": true
}
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Swap &lt;code&gt;change_type&lt;/code&gt; for &lt;code&gt;estimated_end_time_change&lt;/code&gt; to watch completion dates instead, add &lt;code&gt;feature_id&lt;/code&gt; to pull the full history of one project you care about, or bound it with &lt;code&gt;from&lt;/code&gt; and &lt;code&gt;to&lt;/code&gt; and poll for what moved since your last run. The same endpoint carries &lt;code&gt;created&lt;/code&gt;, &lt;code&gt;deactivated&lt;/code&gt; and &lt;code&gt;reactivated&lt;/code&gt; entries, so a project quietly dropped from an agency’s feed shows up as an event too, rather than just vanishing from your result set.&lt;/p&gt;

&lt;p&gt;Entries are newest-first. The change log is analytics-tier (Pro and up); the &lt;code&gt;future_construction&lt;/code&gt; records themselves are on every plan, free trial included.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two Things Look Identical and Mean Opposite Things
&lt;/h2&gt;

&lt;p&gt;This is the part worth internalizing before you wire an alert, because the naive version of this monitor will page you every night.&lt;/p&gt;

&lt;p&gt;The most-revised project in our data is &lt;code&gt;VA-fcon-WZNO4585395-12252025-137&lt;/code&gt; — work on the I-66E Express Lanes between mile markers 43 and 65. Between July 3 and September 16 its dates were revised &lt;strong&gt;118 times&lt;/strong&gt; (59 starts and 59 ends, in lockstep). That sounds like a project in freefall. It isn’t. Read the log and the pattern is unmistakable:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;estimated_start_time  2026-07-02T13:00Z → 2026-07-03T13:00Z
estimated_start_time  2026-07-03T13:00Z → 2026-07-04T13:00Z
estimated_start_time  2026-07-04T13:00Z → 2026-07-05T13:00Z
estimated_start_time  2026-07-05T13:00Z → 2026-07-06T13:00Z
                              ... every night ...
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Same eight-hour window, rolled forward by exactly one day, every day. That is not a job slipping — it is a &lt;strong&gt;recurring daily closure&lt;/strong&gt; published as a single record whose window always points at the next occurrence. (The one break in the rhythm is instructive too: on July 11 the record went inactive, came back July 12, and jumped three days instead of one. It skipped the weekend.)&lt;/p&gt;

&lt;p&gt;Now contrast a genuine slip. &lt;strong&gt;810 Virginia projects&lt;/strong&gt; took between three and five start revisions that add up to a net move of more than two weeks — distinct edits, days apart, each one pushing a real start date further out. The worst of them moved 75 days across four edits between 21 July and 14 September. Same endpoint, same &lt;code&gt;change_type&lt;/code&gt;, completely different operational meaning.&lt;/p&gt;

&lt;p&gt;The rule that separates them is simple and worth building into whatever you wire on top: &lt;strong&gt;a stream of uniform one-day moves is a schedule shape; a few irregular multi-day moves is a schedule failing.&lt;/strong&gt; The 1,594 exactly-one-day start revisions in the table above are mostly the former. The 2,752 start revisions over a week are the ones that should reach a human.&lt;/p&gt;

&lt;h2&gt;
  
  
  What This Is Worth Downstream
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Pad the quote with evidence, not superstition.&lt;/strong&gt; If the corridor’s projects historically move seven days later and roughly one start revision in five moves more than a week, that is a number you can put in a bid instead of a gut feeling.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Watch the jobs on your lanes.&lt;/strong&gt; Poll &lt;code&gt;feature-history&lt;/code&gt; with &lt;code&gt;from&lt;/code&gt; set to your last check and get told when a date on a corridor you run has moved — before the truck finds out.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Re-check permits that were issued against a moved date.&lt;/strong&gt; An oversize permit written around an August closure window is worth revalidating when the closure walks into September.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Rank your sources honestly.&lt;/strong&gt; A project revised once and executed is a different planning risk from one revised six times, and the log is the only place that difference exists.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Filter the noise out of your own alerts.&lt;/strong&gt; Rolling nightly windows are a real slice of raw revisions but not the bulk of them — moves of exactly 24 hours are 1,568 of the 12,307 start revisions, about one in eight. Knowing which slice you are looking at up front is the difference between a useful monitor and one everybody mutes.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The Honest Limits
&lt;/h2&gt;

&lt;p&gt;Four of them, and they matter more than the headline numbers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Today this signal is Virginia.&lt;/strong&gt; All 21,289 revisions in the window come from VDOT’s feed — every last one. Delaware, New Jersey, West Virginia, North Carolina and the rest published &lt;em&gt;zero&lt;/em&gt; date revisions over the same eleven weeks — not because their projects run on time, but because those feeds don’t republish a revised date on the same record; a changed plan tends to arrive as a new record instead. We would rather say that plainly than average six jurisdictions together and imply a continental drift statistic we cannot support. As more sources start revising in place, the same query picks them up with no change on your side.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The window is eleven weeks, not six years.&lt;/strong&gt; The change log’s oldest entry of any kind is May 20, 2026, but construction date revisions only start on July 3 — that is the baseline behind every number above, and quoting the earlier date would overstate it. These are real observations over a short window — enough to characterize how dates move, not enough to claim a seasonal or multi-year pattern. It deepens every day.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;We record what the agency published, not why.&lt;/strong&gt; A revision tells you the date moved and when we saw it move. Whether that was weather, utilities, a contractor, or a clerical fix is not in any feed we consume, and we won’t invent a reason field to make the data look richer than it is.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;An estimate remains an estimate.&lt;/strong&gt; The point of the log is not to replace the DOT’s forecast with ours. It is to tell you how much that forecast has moved so far, which is the only honest input to how much slack you should carry.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Same Mechanism, Beyond Construction
&lt;/h2&gt;

&lt;p&gt;Schedule drift isn’t unique to roadwork — it is a property of anything published with an expected end. The same log carries &lt;strong&gt;25,107 revisions to the projected end of weather alerts&lt;/strong&gt; across 12,281 alerts, which is what a warning being extended hour by hour looks like when you record it instead of overwriting it. Any time-bounded feature type we carry — alerts, special events, seasonal restrictions — leaves the same trail, reachable with the same &lt;code&gt;feature_type&lt;/code&gt; filter.&lt;/p&gt;

&lt;p&gt;That is the general shape of the thing: not a new dataset, but the refusal to throw away the previous value. Most of the road-data problems we write about in &lt;a href="https://road511.com/blog/north-american-road-data-challenges.html" rel="noopener noreferrer"&gt;the five road-data problems every NA fleet team hits&lt;/a&gt; come down to a feed telling you only about now. Keeping the record is what makes a plan auditable.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try It
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://road511.com/docs.html" rel="noopener noreferrer"&gt;API docs&lt;/a&gt; — &lt;code&gt;/analytics/feature-history&lt;/code&gt;, plus the &lt;code&gt;future_construction&lt;/code&gt; surface and its scheduled-window filters&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://road511.com/blog/planned-construction-api.html" rel="noopener noreferrer"&gt;Planned construction, end to end&lt;/a&gt; — how the projects themselves are queried&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://portal.road511.com/signup" rel="noopener noreferrer"&gt;Free API key&lt;/a&gt; — no credit card, 14-day trial&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://road511.com/blog/construction-schedule-drift-api.html?utm_source=devto&amp;amp;utm_medium=social&amp;amp;utm_campaign=construction-schedule-drift-api&amp;amp;utm_content=dev-10" rel="noopener noreferrer"&gt;road511.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>api</category>
      <category>logistics</category>
      <category>trucking</category>
      <category>data</category>
    </item>
    <item>
      <title>What a Large-Vehicle Router Cannot Know</title>
      <dc:creator>Roman Kotenko</dc:creator>
      <pubDate>Tue, 15 Sep 2026 09:56:20 +0000</pubDate>
      <link>https://dev.to/road511/what-a-large-vehicle-router-cannot-know-3n93</link>
      <guid>https://dev.to/road511/what-a-large-vehicle-router-cannot-know-3n93</guid>
      <description>&lt;p&gt;Google Maps Platform took Large Vehicle Routing to GA last month — height, weight, length, width, axle count and hazmat class in the Routes API, US-wide. If you have ever had to explain to a dispatcher why a consumer routing API sent a 13'6" trailer under an 11'9" bridge, this is good news, and it makes truck-legal routing a commodity. Everyone will have it.&lt;/p&gt;

&lt;p&gt;So here is the part that does not become a commodity.&lt;/p&gt;

&lt;p&gt;A router avoids a low bridge because somebody published a height for it. That is the whole mechanism. And the layer underneath is much thinner and much messier than a rendered map suggests.&lt;/p&gt;

&lt;p&gt;I aggregate US and Canadian DOT feeds for a living. On the morning of 15 September 2026 our store held &lt;strong&gt;715,434 active bridge-clearance records from 53 state and provincial sources&lt;/strong&gt;. Of those, &lt;strong&gt;105,479 — 14.7% — carry a vertical clearance value at all.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The other 85% are not corrupt. They are federal NBI structural inventory: &lt;code&gt;structure_number&lt;/code&gt;, &lt;code&gt;deck_area_sqm&lt;/code&gt;, &lt;code&gt;year_built&lt;/code&gt;, &lt;code&gt;last_inspection_date&lt;/code&gt;, &lt;code&gt;scour_critical&lt;/code&gt;. The registry knows the bridge exists and when it was last inspected. It was never designed to record what fits underneath.&lt;/p&gt;

&lt;h2&gt;
  
  
  Twenty-seven names for one measurement
&lt;/h2&gt;

&lt;p&gt;Where a height does exist, it arrives under &lt;strong&gt;27 different property names&lt;/strong&gt; across those sources. There are 30 clearance-related keys in all; three of them are &lt;em&gt;horizontal&lt;/em&gt; clearances, a different measurement that must not be pooled in.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;key&lt;/th&gt;
&lt;th&gt;rows&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;clearance_m&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;92,473&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;clearance_ft&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;91,964&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;deck_clearance_ft&lt;/code&gt; / &lt;code&gt;deck_clearance_m&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;10,908 each&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;vertical_clearance_m&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;5,307&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;vertical_clearance_under_ft&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;3,850&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;vertical_clearance_ft&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;2,516&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;vertical_clearance_label&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;2,127&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;lane_1_clearance&lt;/code&gt; … &lt;code&gt;lane_9_clearance&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;1,881 – 2,050 each&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;posted_height&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;2,038&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;posted_clearance_ft&lt;/code&gt; / &lt;code&gt;posted_clearance_in&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;645 each&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;left_&lt;/code&gt; / &lt;code&gt;center_&lt;/code&gt; / &lt;code&gt;right_clearance_in&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;645 each&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;vertical_clearance_raw&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;509&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;vertical_clearance_on_ft&lt;/code&gt; / &lt;code&gt;_over_ft&lt;/code&gt; / &lt;code&gt;_deck_ft&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;30 – 243 each&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Normalizing names is tedious but mechanical. This is the one that is not — a real record, unedited:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"clearance_m"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;4.45&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"clearance_ft"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"14.6"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;One measurement, one object, two JSON types. The metric value is a number; the imperial value of the same physical distance is a string. Across the store that split is total and consistent: every one of the 92,473 rows with &lt;code&gt;clearance_m&lt;/code&gt; has it as a number, and every one of the 91,964 rows with &lt;code&gt;clearance_ft&lt;/code&gt; has it as a string.&lt;/p&gt;

&lt;p&gt;That is the kind of thing that passes a schema check, passes a null check, passes a range check, and then silently fails a comparison in a language where &lt;code&gt;4.45 &amp;lt; 4.6&lt;/code&gt; and &lt;code&gt;"14.6" &amp;lt; "4.6"&lt;/code&gt; are both true and mean different things. If your clearance test is one careless comparison away from that, it will be correct in staging for months.&lt;/p&gt;

&lt;h2&gt;
  
  
  It is not just clearances
&lt;/h2&gt;

&lt;p&gt;Same shape, every layer a truck actually cares about — active rows and distinct jurisdictions, same snapshot:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;layer&lt;/th&gt;
&lt;th&gt;rows&lt;/th&gt;
&lt;th&gt;jurisdictions&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;truck restrictions&lt;/td&gt;
&lt;td&gt;1,477,809&lt;/td&gt;
&lt;td&gt;63&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;bridge clearances&lt;/td&gt;
&lt;td&gt;715,434&lt;/td&gt;
&lt;td&gt;53&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;rail crossings&lt;/td&gt;
&lt;td&gt;162,284&lt;/td&gt;
&lt;td&gt;50&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;weight restrictions&lt;/td&gt;
&lt;td&gt;22,498&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;7&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;weigh stations&lt;/td&gt;
&lt;td&gt;975&lt;/td&gt;
&lt;td&gt;46&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;tunnel clearances&lt;/td&gt;
&lt;td&gt;580&lt;/td&gt;
&lt;td&gt;45&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Posted weight restrictions: seven jurisdictions. Not seven that &lt;em&gt;have&lt;/em&gt; weight limits — seven that publish them in a feed anyone can consume, and that is our ingestion coverage rather than a census of the law. Spring load restrictions apply across most of the northern half of the continent; they are &lt;em&gt;machine-readable&lt;/em&gt; in a handful of places.&lt;/p&gt;

&lt;h2&gt;
  
  
  The point
&lt;/h2&gt;

&lt;p&gt;The ceiling on any large-vehicle router — Google's, HERE's, mine — is publisher coverage, not routing quality. The routing converges. The data does not, and it is the part that decides whether a legal-looking route is actually legal.&lt;/p&gt;

&lt;p&gt;If you are building on top of one of these APIs, the useful design question is what your system does with an absence. A blank is a legitimate answer and it should reach the driver as a blank. The failure mode is interpolating one — filling a missing clearance from a neighbouring structure, or defaulting a missing weight limit to "no limit". We leave it empty. A blank is a blank.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;(I build Road511, a road-data API over US and Canadian 511 systems. The counts above are our own normalized store; the underlying feeds are public agency data, and the numbers move — these were pulled on the morning of 15 September 2026.)&lt;/em&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://road511.com/blog/truck-legal-routing-data-coverage.html?utm_source=devto&amp;amp;utm_medium=social&amp;amp;utm_campaign=truck-legal-routing-data-coverage&amp;amp;utm_content=dev-13" rel="noopener noreferrer"&gt;road511.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>api</category>
      <category>data</category>
      <category>postgres</category>
      <category>googlecloud</category>
    </item>
    <item>
      <title>561/2006 Tells You When to Stop. It Doesn't Tell You If the Bay Is Free.</title>
      <dc:creator>Roman Kotenko</dc:creator>
      <pubDate>Thu, 10 Sep 2026 13:18:40 +0000</pubDate>
      <link>https://dev.to/road511/5612006-tells-you-when-to-stop-it-doesnt-tell-you-if-the-bay-is-free-15dj</link>
      <guid>https://dev.to/road511/5612006-tells-you-when-to-stop-it-doesnt-tell-you-if-the-bay-is-free-15dj</guid>
      <description>&lt;p&gt;Regulation (EC) 561/2006 is arithmetic. Four and a half hours of driving, then a 45-minute break. Nine hours a day, eleven twice a week, a daily rest of at least eleven hours. Every planning tool worth the name can compute where the clock runs out, and ours does it too.&lt;/p&gt;

&lt;p&gt;The regulation says nothing about whether there is anywhere to put the truck.&lt;/p&gt;

&lt;p&gt;That is the part dispatchers actually lose sleep over, because the failure mode is not a fine — it is a driver at 21:30 standing in the entrance of a full lorry park, choosing between the hard shoulder and driving on illegally. And it is a genuinely hard problem to plan around, because the map is misleading in a very specific way: &lt;strong&gt;the lot does not disappear when it fills up.&lt;/strong&gt; Every static inventory keeps showing it, at full size, all night.&lt;/p&gt;

&lt;h2&gt;
  
  
  “Is There a Lorry Park?” Is the Wrong Question
&lt;/h2&gt;

&lt;p&gt;Take Austria, where we have bay-level truth to check the map against.&lt;/p&gt;

&lt;p&gt;The static inventory says the ASFINAG motorway and expressway network carries &lt;strong&gt;244 truck-parking sites with 9,185 truck bays&lt;/strong&gt;. That is the number a coverage map shows, and it is correct. It is also useless after dark, because it describes the concrete, not the availability.&lt;/p&gt;

&lt;p&gt;Of those, &lt;strong&gt;85 sites — 5,835 truck bays — publish live occupancy&lt;/strong&gt;, which we poll every &lt;strong&gt;60 seconds&lt;/strong&gt;. We have been recording every change for those sites since 30 June 2026: &lt;strong&gt;293,334 observations&lt;/strong&gt; as of 10 September 2026, of which &lt;strong&gt;127,387&lt;/strong&gt; fall inside the trailing thirty days the trend endpoint reads. Bucketing that history by hour of day produces the curve that the static map cannot show you — measured here over the thirty days to 10 September 2026:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Local time (Austria, CEST)&lt;/th&gt;
&lt;th&gt;Truck bays occupied&lt;/th&gt;
&lt;th&gt;Avg. free bays per site&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;08:00 – 14:00&lt;/td&gt;
&lt;td&gt;~39%&lt;/td&gt;
&lt;td&gt;~41&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;17:00&lt;/td&gt;
&lt;td&gt;52.4%&lt;/td&gt;
&lt;td&gt;31.9&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;19:00&lt;/td&gt;
&lt;td&gt;68.4%&lt;/td&gt;
&lt;td&gt;21.2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;21:00&lt;/td&gt;
&lt;td&gt;76.6%&lt;/td&gt;
&lt;td&gt;15.7&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;21:00 – 04:00 (plateau; peak 77.0% at 01:00)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;~76–77%&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;~16&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;00:00 – 04:00&lt;/td&gt;
&lt;td&gt;~75–77%&lt;/td&gt;
&lt;td&gt;~16&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Network-wide occupancy &lt;strong&gt;doubles between late morning and nightfall&lt;/strong&gt; — 38.4% at 11:00 local, 76.6% at 21:00 — and then holds on that plateau until about four in the morning, peaking at 77.0% around 01:00, before it falls away to 57.5% by six. Read as a fleet average, that still sounds survivable: 77% occupied means 23% free, and 16 open bays per site is not nothing.&lt;/p&gt;

&lt;p&gt;One arithmetic note, because getting it wrong moves that column by twenty points. Those percentages are &lt;strong&gt;truck bays occupied&lt;/strong&gt;, computed against each site’s &lt;code&gt;truck_spaces&lt;/code&gt;. Divide the same free-bay counts by each site’s total &lt;code&gt;capacity&lt;/code&gt; instead and the network reads 68–88% occupied all day, which is not a busier network — it is a numerator and a denominator that count different things. 84 of the 85 reporting Austrian sites are mixed sites where the two differ.&lt;/p&gt;

&lt;p&gt;That average is the trap. Occupancy does not distribute itself politely across the network; it concentrates, and individual lots go hard to zero:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;40 of the 86 sites observed in the thirty-day window hit zero free bays&lt;/strong&gt; at some point.&lt;/li&gt;
&lt;li&gt;At &lt;strong&gt;23:00 local, 22 of the 85&lt;/strong&gt; sites observed in that hour had been completely full at least once during the window — at &lt;strong&gt;21:00, 33 of them&lt;/strong&gt; had, and at &lt;strong&gt;07:00, three&lt;/strong&gt;. &lt;strong&gt;Eight lots record a zero in every single hour from 18:00 to 23:00.&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Take one ordinary lot — Wiener Neustadt, 40 truck bays. Average free bays at 07:00 local: &lt;strong&gt;22.0&lt;/strong&gt;. At 20:00 local: &lt;strong&gt;5.7&lt;/strong&gt;. Every hourly bucket from 18:00 to 23:00 local has a recorded minimum of &lt;strong&gt;0&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Wiener Neustadt is not an exceptional site. It is a normal one, and for the entire second half of the evening its honest answer to “can my driver stop here?” is &lt;em&gt;probably not, and you should have known that at dispatch.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Meanwhile the same network at 14:47 local on 10 September looked almost relaxed: &lt;strong&gt;zero of 85 sites full&lt;/strong&gt;, and exactly one lot down to its last two bays. Arnoldstein at the Italian border was sitting at 8% occupancy with 366 of its 402 truck bays open. Both pictures are true. They are six hours apart. A number that is right in the afternoon and wrong at bedtime has to be read live, or it is not worth reading.&lt;/p&gt;

&lt;h2&gt;
  
  
  Live Occupancy, in the Same &lt;code&gt;/features&lt;/code&gt; Call as Everything Else
&lt;/h2&gt;

&lt;p&gt;ASFINAG publishes this as two DATEX II documents: a static &lt;code&gt;ParkingTablePublication&lt;/code&gt; describing the sites, and a dynamic &lt;code&gt;ParkingStatusPublication&lt;/code&gt; carrying free-space counts. Neither is usable alone — the status document has no geometry, and the table has no occupancy. We join them on &lt;code&gt;parkingRecordReference&lt;/code&gt; and publish one feature per site with the live counts folded in:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"X-API-Key: &lt;/span&gt;&lt;span class="nv"&gt;$KEY&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="s2"&gt;"https://api.napspan.com/api/v1/features?type=truck_parking&amp;amp;jurisdiction=AUT"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"data"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"AUT-tp-PARK000064"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"source"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"AUT"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"jurisdiction"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"AUT"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"feature_type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"truck_parking"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Arnoldstein Zollamt"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"latitude"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;46.540813&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"longitude"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;13.670096&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"is_active"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"properties"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"truck_parking"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"capacity"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;431&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"truck_spaces"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;402&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"available_spots"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;366&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"occupied_spots"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;36&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"occupancy_pct"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;8&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"occupancy_status"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"spacesAvailable"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"opening_status"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"open"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"occupancy_updated"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"2026-09-10T12:33:34Z"&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"last_updated"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"2026-09-10T12:36:35Z"&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Three details in that payload matter more than they look:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;truck_spaces&lt;/code&gt; is the denominator, not &lt;code&gt;capacity&lt;/code&gt;.&lt;/strong&gt; Arnoldstein has 431 spaces of which 402 take a lorry, and &lt;code&gt;available_spots&lt;/code&gt; counts truck bays only. Divide by &lt;code&gt;capacity&lt;/code&gt; and you will quietly under-report how full the truck side is at every mixed site on the network — and that is 84 of the 85 Austrian sites that report. The rule generalises with one branch: use &lt;code&gt;truck_spaces&lt;/code&gt; where the feed publishes it, and &lt;code&gt;capacity&lt;/code&gt; where it does not. Austria stamps &lt;code&gt;truck_spaces&lt;/code&gt; on all 244 of its sites; the German federal feed stamps it on none, because its lorry-parking records are truck-only and &lt;code&gt;capacity&lt;/code&gt; already is the truck figure.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;available_spots: 0&lt;/code&gt; is a fact, not a gap.&lt;/strong&gt; It means &lt;em&gt;known full&lt;/em&gt;. A site with no live feed omits the field entirely. Those two states must not collapse into one in your code — treat “absent” as unknown and “0” as closed to you.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;occupancy_updated&lt;/code&gt; is the count’s own timestamp&lt;/strong&gt;, separate from &lt;code&gt;last_updated&lt;/code&gt;, so you can age out a stale reading on your own threshold rather than trusting our poll cycle.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And the jurisdiction code is &lt;strong&gt;ISO 3166-1 alpha-3&lt;/strong&gt;. &lt;code&gt;?jurisdiction=AUT&lt;/code&gt;, never &lt;code&gt;AT&lt;/code&gt; — the two-letter form is not an alias, it returns an empty result set.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Trend: “Is This Lot Typically Full at My ETA?”
&lt;/h2&gt;

&lt;p&gt;A live count answers a question about now. Dispatch plans a stop for six hours from now, when the live count will have changed. That gap is what the per-hour history is for, and it comes back on the feature-detail endpoint:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"X-API-Key: &lt;/span&gt;&lt;span class="nv"&gt;$KEY&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="s2"&gt;"https://api.napspan.com/api/v1/features/AUT-tp-PARK000402/details"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"data"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"AUT-tp-PARK000402"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Wr. Neustadt"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;...&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"availability_trend"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"hour"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="nl"&gt;"avg_available"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;22.0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"avg_capacity"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;71&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"samples"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;77&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"low_samples"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"hour"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"avg_available"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;15.2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"avg_capacity"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;71&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"samples"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;72&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"low_samples"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"hour"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;18&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"avg_available"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;5.7&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="nl"&gt;"avg_capacity"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;71&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"samples"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;41&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"low_samples"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"hour"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"avg_available"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;2.0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="nl"&gt;"avg_capacity"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;71&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"samples"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;22&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"low_samples"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Twenty-four buckets, built from the trailing thirty days of recorded occupancy for that specific lot. It is the difference between “there are two bays free right now” and “this lot has been down to single digits every evening for a month” — and only the second one is actionable at 14:00 when you are deciding where the driver sleeps.&lt;/p&gt;

&lt;p&gt;Three things to know before you plot it. &lt;strong&gt;Hours are UTC&lt;/strong&gt;; Austria ran at UTC+2 across this window, so bucket 18 is 20:00 on the driver’s dashboard clock — localize before you show it to a human. &lt;code&gt;samples&lt;/code&gt; is there to be read: buckets are recorded on change, so a thin bucket deserves less confidence than a fat one. We publish the count rather than smoothing it away.&lt;/p&gt;

&lt;p&gt;And the third is the one that will silently skew a chart: &lt;strong&gt;&lt;code&gt;avg_capacity&lt;/code&gt; is the site’s total capacity, while &lt;code&gt;avg_available&lt;/code&gt; counts truck bays only.&lt;/strong&gt; Wiener Neustadt has 40 truck bays inside 71 total spaces, which is why every bucket above reads &lt;code&gt;avg_capacity: 71&lt;/code&gt;. Computing &lt;code&gt;1 - avg_available / avg_capacity&lt;/code&gt; is therefore &lt;em&gt;not&lt;/em&gt; this lot’s truck occupancy — it mixes the two counts and reads about twenty points too full. Take the denominator from the feature’s &lt;code&gt;truck_spaces&lt;/code&gt; and use &lt;code&gt;avg_capacity&lt;/code&gt; only for what it is: the size of the whole site. It is the same trap as the live payload, one field name further along, and the fact that the two numbers sit side by side in the same object is exactly what makes it easy to miss.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where It Actually Belongs: On the Route, Next to the Break
&lt;/h2&gt;

&lt;p&gt;Querying a lot by id is the debugging path. The one that changes an evening is that occupancy arrives already attached to the route, and to the break the regulation demands.&lt;/p&gt;

&lt;p&gt;Send a normal truck route to &lt;code&gt;POST /api/v1/routing/route&lt;/code&gt; with &lt;code&gt;include_features: ["truck_parking"]&lt;/code&gt;, and parking comes back in the &lt;code&gt;features[]&lt;/code&gt; channel — distinct from hazard &lt;code&gt;warnings[]&lt;/code&gt;, opt-in, and costing nothing when you do not ask for it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"features"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"truck_parking"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Wr. Neustadt"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"distance_along_route_m"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;184000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"detour_m"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;240&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"side"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"right"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"available_spots"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"capacity"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;40&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"as_of"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"2026-07-30T18:02:11Z"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"source"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"AUT"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"geometry"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Point"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"coordinates"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mf"&gt;16.2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;47.8&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then add an &lt;code&gt;hos&lt;/code&gt; block with the driver’s clock and &lt;code&gt;ruleset: "eu_561"&lt;/code&gt;, and the response gains an &lt;code&gt;hos[]&lt;/code&gt; projection: where the break falls, and which parking is reachable &lt;em&gt;before&lt;/em&gt; the limit rather than after it. Where a feed publishes live occupancy, two things follow that a static inventory can never do:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Reachable parking is ordered by open spaces&lt;/strong&gt;, so the first suggestion is the one most likely to still have room, not merely the nearest concrete.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The stop is flagged &lt;code&gt;feasible: false&lt;/code&gt; when every reachable lot reports full.&lt;/strong&gt; That is the alert worth having. It fires at planning time, in an API response, hours before it would otherwise arrive as a phone call from a lay-by.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It rides the same request as the corridor’s &lt;a href="https://napspan.com/blog/cross-border-truck-restrictions-vms.html" rel="noopener noreferrer"&gt;truck bans and VMS signs&lt;/a&gt;, its &lt;a href="https://napspan.com/blog/toll-cost-routing-api.html" rel="noopener noreferrer"&gt;toll costs&lt;/a&gt;, its &lt;a href="https://napspan.com/blog/eu-border-queue-wait-times.html" rel="noopener noreferrer"&gt;border queues&lt;/a&gt;, and the &lt;a href="https://napspan.com/blog/hos-break-planning-api.html" rel="noopener noreferrer"&gt;561/2006 break plan&lt;/a&gt; itself. One call returns a drivable truck route, the rules that would stop it, what it costs, where the driver must legally rest — and whether there will be a bay there when they arrive.&lt;/p&gt;

&lt;h2&gt;
  
  
  What This Data Does Not Do
&lt;/h2&gt;

&lt;p&gt;The honest limits are part of the product, so here they are without decoration.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Most national feeds publish inventory, not occupancy.&lt;/strong&gt; Slovenia, the Netherlands, Bavaria and Latvia all hand us sites and capacities with no availability whatsoever, and the same is true of most of the general &lt;code&gt;parking&lt;/code&gt; feeds. Two feeds are the exception, and the larger one is German: the federal motorway lorry-parking layer carries live counts on &lt;strong&gt;1,759 of its 1,858 sites&lt;/strong&gt;, twenty times Austria’s reporting network, and it is live in the API in the same &lt;code&gt;truck_parking&lt;/code&gt; schema. This post is built on Austria anyway, for a reason worth stating plainly: ASFINAG’s terms are a confirmed CC BY 4.0, while the German federal licence variant is still being verified, and we would rather anchor a worked example on the layer whose redistribution terms we have finished checking. Query both; weigh the German one accordingly until we can say more.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Even in Austria it is 85 of 244 sites.&lt;/strong&gt; The other 159 are real lots that appear with capacity and no counts. Your UI needs a third state — free / full / &lt;em&gt;not reporting&lt;/em&gt; — and the absence of &lt;code&gt;available_spots&lt;/code&gt; is what selects it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Thirty days of history is thirty days, and it is a moving window.&lt;/strong&gt; The Austrian series starts 30 June 2026 — 293,334 observations by 10 September — but the trend endpoint reads only the trailing thirty days, so the record has already outgrown the window and what you get back today is a summer month, not the whole series. The difference is not academic: in the thirty days to 30 July, 57 of the 86 lots had hit zero free bays and 47 of the sites observed at 23:00 had been full at some point; in the thirty days to 14 August those figures are 40 and 29, and in the thirty days to 10 September, 40 and 22. Same network, same endpoint, weeks apart. Use the trend as a base rate for the season you are in, and re-pull it rather than caching a number from last month.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A free bay is not a reserved bay.&lt;/strong&gt; Nothing here books anything. It tells you what the operator reported and when, which is what you need to choose between two lots — not a guarantee that the space survives the next twenty minutes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The trend is a prior, not a prediction.&lt;/strong&gt; An hour-of-day average over thirty days is a solid base rate and it is blind to the specific Thursday your driver is having. Use it to rank candidates and to know when the network tightens; use the live count for the final call.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The Common Thread
&lt;/h2&gt;

&lt;p&gt;This is the same shape as the &lt;a href="https://napspan.com/blog/european-road-data-challenges.html" rel="noopener noreferrer"&gt;five road-data problems every cross-border European fleet hits&lt;/a&gt;. The information exists. A public authority publishes it, properly, under an open licence. It arrives split across two DATEX II documents that have to be joined on a reference key, in a national profile, on its own cadence — and doing that once per country, forever, is a maintenance commitment that competes with the product you actually sell.&lt;/p&gt;

&lt;p&gt;NAPSPAN does that join once. Austrian bay counts arrive in the same &lt;code&gt;truck_parking&lt;/code&gt; schema as every other parking feed in the system, filterable by jurisdiction, carried on the route beside the tolls and the rest breaks, served from Europe, and licence-classified before it ships. The Austrian data is published by ASFINAG under CC BY 4.0 — &lt;em&gt;Datenquelle: ASFINAG — licensed under CC BY 4.0&lt;/em&gt; — and that credit travels with every record we hand you.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try It
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://napspan.com/docs.html" rel="noopener noreferrer"&gt;API docs&lt;/a&gt; — &lt;code&gt;/features&lt;/code&gt; with &lt;code&gt;type=truck_parking&lt;/code&gt;, &lt;code&gt;/features/{id}/details&lt;/code&gt; for the trend, and &lt;code&gt;POST /routing/route&lt;/code&gt; with &lt;code&gt;include_features&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://map.napspan.com" rel="noopener noreferrer"&gt;Live map&lt;/a&gt; — the Austrian network as it stands right now&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://portal.napspan.com/signup" rel="noopener noreferrer"&gt;Free API key&lt;/a&gt; — no card, 14-day trial&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://napspan.com/blog/truck-parking-occupancy-api.html?utm_source=devto&amp;amp;utm_medium=social&amp;amp;utm_campaign=truck-parking-occupancy-api&amp;amp;utm_content=dev-10" rel="noopener noreferrer"&gt;napspan.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>logistics</category>
      <category>api</category>
      <category>trucking</category>
      <category>dataengineering</category>
    </item>
  </channel>
</rss>
