Show / Hide Table of Contents

Class RouteMatrixElement

Contains route information computed for an origin/destination pair in the ComputeRouteMatrix API. This proto can be streamed to the client.

Inheritance
object
RouteMatrixElement
Implements
IMessage<RouteMatrixElement>
IEquatable<RouteMatrixElement>
IDeepCloneable<RouteMatrixElement>
IBufferMessage
IMessage
Inherited Members
object.GetHashCode()
object.GetType()
object.ToString()
Namespace: Google.Maps.Routing.V2
Assembly: Google.Maps.Routing.V2.dll
Syntax
public sealed class RouteMatrixElement : IMessage<RouteMatrixElement>, IEquatable<RouteMatrixElement>, IDeepCloneable<RouteMatrixElement>, IBufferMessage, IMessage

Constructors

RouteMatrixElement()

Declaration
public RouteMatrixElement()

RouteMatrixElement(RouteMatrixElement)

Declaration
public RouteMatrixElement(RouteMatrixElement other)
Parameters
Type Name Description
RouteMatrixElement other

Properties

Condition

Indicates whether the route was found or not. Independent of status.

Declaration
public RouteMatrixElementCondition Condition { get; set; }
Property Value
Type Description
RouteMatrixElementCondition

DestinationIndex

Zero-based index of the destination in the request.

Declaration
public int DestinationIndex { get; set; }
Property Value
Type Description
int

DistanceMeters

The travel distance of the route, in meters.

Declaration
public int DistanceMeters { get; set; }
Property Value
Type Description
int

Duration

The length of time needed to navigate the route. If you set the [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.routing_preference] to TRAFFIC_UNAWARE, then this value is the same as static_duration. If you set the routing_preference to either TRAFFIC_AWARE or TRAFFIC_AWARE_OPTIMAL, then this value is calculated taking traffic conditions into account.

Declaration
public Duration Duration { get; set; }
Property Value
Type Description
Duration

FallbackInfo

In some cases when the server is not able to compute the route with the given preferences for this particular origin/destination pair, it may fall back to using a different mode of computation. When fallback mode is used, this field contains detailed information about the fallback response. Otherwise this field is unset.

Declaration
public FallbackInfo FallbackInfo { get; set; }
Property Value
Type Description
FallbackInfo

HasDestinationIndex

Gets whether the "destination_index" field is set

Declaration
public bool HasDestinationIndex { get; }
Property Value
Type Description
bool

HasOriginIndex

Gets whether the "origin_index" field is set

Declaration
public bool HasOriginIndex { get; }
Property Value
Type Description
bool

LocalizedValues

Text representations of properties of the RouteMatrixElement.

Declaration
public RouteMatrixElement.Types.LocalizedValues LocalizedValues { get; set; }
Property Value
Type Description
RouteMatrixElement.Types.LocalizedValues

OriginIndex

Zero-based index of the origin in the request.

Declaration
public int OriginIndex { get; set; }
Property Value
Type Description
int

StaticDuration

The duration of traveling through the route without taking traffic conditions into consideration.

Declaration
public Duration StaticDuration { get; set; }
Property Value
Type Description
Duration

Status

Error status code for this element.

Declaration
public Status Status { get; set; }
Property Value
Type Description
Status

TravelAdvisory

Additional information about the route. For example: restriction information and toll information

Declaration
public RouteTravelAdvisory TravelAdvisory { get; set; }
Property Value
Type Description
RouteTravelAdvisory
In this article
Back to top Generated by DocFX