Class RoutingSummary
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.
Implements
Namespace: Google.Maps.Places.V1
Assembly: Google.Maps.Places.V1.dll
Syntax
public sealed class RoutingSummary : IMessage<RoutingSummary>, IEquatable<RoutingSummary>, IDeepCloneable<RoutingSummary>, IBufferMessage, IMessage
Constructors
RoutingSummary()
Declaration
public RoutingSummary()
RoutingSummary(RoutingSummary)
Declaration
public RoutingSummary(RoutingSummary other)
Parameters
Type | Name | Description |
---|---|---|
RoutingSummary | other |
Properties
Legs
The legs of the trip.
When you calculate travel duration and distance from a set origin, legs
contains a single leg containing the duration and distance from the origin
to the destination. When you do a search along route, legs
contains two
legs: one from the origin to place, and one from the place to the
destination.
Declaration
public RepeatedField<RoutingSummary.Types.Leg> Legs { get; }
Property Value
Type | Description |
---|---|
RepeatedField<RoutingSummary.Types.Leg> |