RdwClient class final

Looks up vehicles in RDW open data (opendata.rdw.nl).

The API is public. Without an appToken RDW limits how many requests you can make; with one the limit is much higher. Call close when done.

Constructors

RdwClient({String? appToken, Client? httpClient, Uri? baseUri, Duration timeout = const Duration(seconds: 15)})
Creates a client.

Properties

appToken → String?
A Socrata app token, sent as X-App-Token. Get one for free at opendata.rdw.nl.
final
baseUri → Uri
The base URI of the datasets; defaultBaseUri unless overridden.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
timeout → Duration
How long to wait for each response.
final

Methods

close() → void
Closes the HTTP client, unless it was passed in.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
vehicle(LicensePlate plate, {Set<RdwData> include = const {}}) → Future<Vehicle?>
Looks up the vehicle with plate.
vehicles(Iterable<LicensePlate> plates, {Set<RdwData> include = const {}}) → Future<Map<LicensePlate, Vehicle>>
Looks up the vehicles with plates, a hundred plates per request.

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

defaultBaseUri → Uri
Where RDW's datasets live.
final