RoutingSummary class

The duration and distance from the routing origin to a place in the response, and a second leg from that place to the destination, if requested. Note: Adding routingSummaries in the field mask without also including either the routingParameters.origin parameter or the searchAlongRouteParameters.polyline.encodedPolyline parameter in the request causes an error.

Documentation: https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/RoutingSummary

Inheritance
Available extensions
Annotations
  • @JsonSerializable()
  • @CopyWith()

Constructors

RoutingSummary.new({List<Leg>? legs, String? directionsUri})
RoutingSummary.fromJson(Map<String, dynamic> json)
factory

Properties

copyWith → _$RoutingSummaryCWProxy

Available on RoutingSummary, provided by the $RoutingSummaryCopyWith extension

Returns a callable class that can be used as follows: instanceOfRoutingSummary.copyWith(...).
no setter
directionsUri String?
A link to show directions on Google Maps using the waypoints from the given routing summary. The route generated by this link is not guaranteed to be the same as the route used to generate the routing summary. The link uses information provided in the request, from fields including routingParameters and searchAlongRouteParameters when applicable, to generate the directions link.
final
hashCode int
The hash code for this object.
no setterinherited
legs List<Leg>?
The legs of the trip.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

fromJsonList(List? jsonList) List<RoutingSummary>?
inherited
fromJsonMap(Map<String, dynamic>? json) RoutingSummary?
override
fromJsonString(String? json) RoutingSummary?
inherited
fromJsonStringList(String? jsonStringList) List<RoutingSummary>?
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toFieldsMask({String? parentKey}) List<String>
inherited
toJson() Map<String, dynamic>
override
toJsonMap() Map<String, dynamic>
inherited
toJsonString() String
inherited
toString() String
This is just to suggest children to implement a named constructor to support creating objects fromJson(...) and fromJsonString(...) as easy as T.build().fromJson(...) or T.build().fromJsonString(...)
inherited

Operators

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