RoadService class

Constructors

RoadService({required TflApiClientContext context})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

disruptedStreetsByQueryStartDateQueryEndDate([DateTime? startDate, DateTime? endDate]) Future<List<DisruptedStreetSegment>>
Gets a list of disrupted streets. If no date filters are provided, current disruptions are returned.
disruptionByIdByPathDisruptionIdsQueryStripContent(List<String> disruptionIds, [bool? stripContent]) Future<List<RoadDisruption>>
Gets a list of active disruptions filtered by disruption Ids.
disruptionByPathIdsQueryStripContentQuerySeveritiesQueryCategoriesQuery(List<String> ids, [bool? stripContent, List<String>? severities, List<String>? categories, bool? closures]) Future<List<RoadDisruption>>
Get active disruptions, filtered by road ids
get() Future<List<RoadCorridor>>
Gets all roads managed by TfL
getByPathIds(List<String> ids) Future<List<RoadCorridor>>
Gets the road with the specified id (e.g. A1)
metaCategories() Future<List<String>>
Gets a list of valid RoadDisruption categories
metaSeverities() Future<List<StatusSeverity>>
Gets a list of valid RoadDisruption severity codes
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
statusByPathIdsQueryStartDateQueryEndDate(List<String> ids, [DateTime? startDate, DateTime? endDate]) Future<List<RoadCorridor>>
Gets the specified roads with the status aggregated over the date range specified, or now until the end of today if no dates are passed.
toString() String
A string representation of this object.
inherited

Operators

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