autobahn roads
List all motorways the API knows about (e.g. A1, A2, ...)
autobahn roads [options]Every command, argument and option of autobahn 0.9.0, read from the CLI itself.
These options work with every command.
| Option | Description | Default |
|---|---|---|
-V, --version |
output the version number | |
--base-url <url> |
API base URL (env AUTOBAHN_BASE_URL); a user:password@ in it is sent as HTTP Basic auth | "https://verkehr.autobahn.de" |
--timeout <ms> |
per-request timeout in milliseconds (default 30000; 0 disables; at most 2147483647; a timed-out request is not retried) | |
--user-agent <ua> |
User-Agent header value (default: "autobahn-cli/0.9.0 (+https://github.com/maschinenlesbar-org/autobahn-cli)") | |
--max-retries <n> |
retries for transient 429/502/503/504 responses and reset connections (default 2, 0..10; waits Retry-After, else backs off — up to 3–5 min in total at 10; details in README) | |
--max-response-bytes <n> |
cap response body size in bytes (0 = unlimited; default 100 MiB) | |
--log-format <format> |
how errors, warnings and notes are written to stderr: text (log4j style: time, level, [topic], message) or jsonl (one JSON object per line: ts, level, topic, msg); default text | |
--compact |
print JSON on a single line instead of pretty-printed |
autobahn roadsList all motorways the API knows about (e.g. A1, A2, ...)
autobahn roads [options]autobahn roadworksRoadworks along a motorway
autobahn roadworks listList roadworks along a motorway (e.g. A1)
autobahn roadworks list [options] <roadId>Arguments
<roadId>
requiredautobahn roadworks getFetch one item's details by its identifier
autobahn roadworks get [options] <identifier>Arguments
<identifier>
requiredautobahn webcamsWebcams along a motorway
autobahn webcams listList webcams along a motorway (e.g. A1)
autobahn webcams list [options] <roadId>Arguments
<roadId>
requiredautobahn webcams getFetch one item's details by its identifier
autobahn webcams get [options] <identifier>Arguments
<identifier>
requiredautobahn parkingLorry parking areas along a motorway
autobahn parking listList lorry parking areas along a motorway (e.g. A1)
autobahn parking list [options] <roadId>Arguments
<roadId>
requiredautobahn parking getFetch one item's details by its identifier
autobahn parking get [options] <identifier>Arguments
<identifier>
requiredautobahn warningsTraffic warnings along a motorway
autobahn warnings listList traffic warnings along a motorway (e.g. A1)
autobahn warnings list [options] <roadId>Arguments
<roadId>
requiredautobahn warnings getFetch one item's details by its identifier
autobahn warnings get [options] <identifier>Arguments
<identifier>
requiredautobahn closuresClosures along a motorway
autobahn closures listList closures along a motorway (e.g. A1)
autobahn closures list [options] <roadId>Arguments
<roadId>
requiredautobahn closures getFetch one item's details by its identifier
autobahn closures get [options] <identifier>Arguments
<identifier>
requiredautobahn chargingElectric charging stations along a motorway
autobahn charging listList electric charging stations along a motorway (e.g. A1)
autobahn charging list [options] <roadId>Arguments
<roadId>
requiredautobahn charging getFetch one item's details by its identifier
autobahn charging get [options] <identifier>Arguments
<identifier>
required