TransitRouteRequest class

Represents API request parameters for the Transit API route endpoint.

Constructors

TransitRouteRequest.new({required LatLngLiteral origin, required LatLngLiteral destination, List<String>? modes, String? departureTime, String? arrivalTime})
Constructor for the TransitRouteRequest class.
TransitRouteRequest.fromJson(Map<String, dynamic> json)
Creates an instance of TransitRouteRequest from a JSON map.
factory

Properties

arrivalTime String?
Specifies the arrival time. Use either arrivalTime or departureTime, not both.
final
departureTime String?
Specifies the departure time for real-time traffic calculations.
final
destination LatLngLiteral
The ending point in latitude/longitude coordinates.
final
hashCode int
The hash code for this object.
no setterinherited
modes List<String>?
Specifies the mode of transport to use when calculating distance.
final
origin LatLngLiteral
The starting point in latitude/longitude coordinates.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts an instance of TransitRouteRequest to a JSON map.
toString() String
A string representation of this object.
inherited

Operators

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