public interface RouteLegOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
int |
getDistanceMeters()
The travel distance of the route leg, in meters.
|
com.google.protobuf.Duration |
getDuration()
The length of time needed to navigate the leg.
|
com.google.protobuf.DurationOrBuilder |
getDurationOrBuilder()
The length of time needed to navigate the leg.
|
Location |
getEndLocation()
The end location of this leg.
|
LocationOrBuilder |
getEndLocationOrBuilder()
The end location of this leg.
|
RouteLeg.RouteLegLocalizedValues |
getLocalizedValues()
Text representations of properties of the `RouteLeg`.
|
RouteLeg.RouteLegLocalizedValuesOrBuilder |
getLocalizedValuesOrBuilder()
Text representations of properties of the `RouteLeg`.
|
Polyline |
getPolyline()
The overall polyline for this leg that includes each `step`'s
polyline.
|
PolylineOrBuilder |
getPolylineOrBuilder()
The overall polyline for this leg that includes each `step`'s
polyline.
|
Location |
getStartLocation()
The start location of this leg.
|
LocationOrBuilder |
getStartLocationOrBuilder()
The start location of this leg.
|
com.google.protobuf.Duration |
getStaticDuration()
The duration of travel through the leg, calculated without taking
traffic conditions into consideration.
|
com.google.protobuf.DurationOrBuilder |
getStaticDurationOrBuilder()
The duration of travel through the leg, calculated without taking
traffic conditions into consideration.
|
RouteLegStep |
getSteps(int index)
An array of steps denoting segments within this leg.
|
int |
getStepsCount()
An array of steps denoting segments within this leg.
|
List<RouteLegStep> |
getStepsList()
An array of steps denoting segments within this leg.
|
RouteLegStepOrBuilder |
getStepsOrBuilder(int index)
An array of steps denoting segments within this leg.
|
List<? extends RouteLegStepOrBuilder> |
getStepsOrBuilderList()
An array of steps denoting segments within this leg.
|
RouteLeg.StepsOverview |
getStepsOverview()
Overview information about the steps in this `RouteLeg`.
|
RouteLeg.StepsOverviewOrBuilder |
getStepsOverviewOrBuilder()
Overview information about the steps in this `RouteLeg`.
|
RouteLegTravelAdvisory |
getTravelAdvisory()
Contains the additional information that the user should be informed
about, such as possible traffic zone restrictions, on a route leg.
|
RouteLegTravelAdvisoryOrBuilder |
getTravelAdvisoryOrBuilder()
Contains the additional information that the user should be informed
about, such as possible traffic zone restrictions, on a route leg.
|
boolean |
hasDuration()
The length of time needed to navigate the leg.
|
boolean |
hasEndLocation()
The end location of this leg.
|
boolean |
hasLocalizedValues()
Text representations of properties of the `RouteLeg`.
|
boolean |
hasPolyline()
The overall polyline for this leg that includes each `step`'s
polyline.
|
boolean |
hasStartLocation()
The start location of this leg.
|
boolean |
hasStaticDuration()
The duration of travel through the leg, calculated without taking
traffic conditions into consideration.
|
boolean |
hasStepsOverview()
Overview information about the steps in this `RouteLeg`.
|
boolean |
hasTravelAdvisory()
Contains the additional information that the user should be informed
about, such as possible traffic zone restrictions, on a route leg.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofint getDistanceMeters()
The travel distance of the route leg, in meters.
int32 distance_meters = 1;boolean hasDuration()
The length of time needed to navigate the leg. If the `route_preference` is set to `TRAFFIC_UNAWARE`, then this value is the same as `static_duration`. If the `route_preference` is either `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic conditions into account.
.google.protobuf.Duration duration = 2;com.google.protobuf.Duration getDuration()
The length of time needed to navigate the leg. If the `route_preference` is set to `TRAFFIC_UNAWARE`, then this value is the same as `static_duration`. If the `route_preference` is either `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic conditions into account.
.google.protobuf.Duration duration = 2;com.google.protobuf.DurationOrBuilder getDurationOrBuilder()
The length of time needed to navigate the leg. If the `route_preference` is set to `TRAFFIC_UNAWARE`, then this value is the same as `static_duration`. If the `route_preference` is either `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic conditions into account.
.google.protobuf.Duration duration = 2;boolean hasStaticDuration()
The duration of travel through the leg, calculated without taking traffic conditions into consideration.
.google.protobuf.Duration static_duration = 3;com.google.protobuf.Duration getStaticDuration()
The duration of travel through the leg, calculated without taking traffic conditions into consideration.
.google.protobuf.Duration static_duration = 3;com.google.protobuf.DurationOrBuilder getStaticDurationOrBuilder()
The duration of travel through the leg, calculated without taking traffic conditions into consideration.
.google.protobuf.Duration static_duration = 3;boolean hasPolyline()
The overall polyline for this leg that includes each `step`'s polyline.
.google.maps.routing.v2.Polyline polyline = 4;Polyline getPolyline()
The overall polyline for this leg that includes each `step`'s polyline.
.google.maps.routing.v2.Polyline polyline = 4;PolylineOrBuilder getPolylineOrBuilder()
The overall polyline for this leg that includes each `step`'s polyline.
.google.maps.routing.v2.Polyline polyline = 4;boolean hasStartLocation()
The start location of this leg. This location might be different from the provided `origin`. For example, when the provided `origin` is not near a road, this is a point on the road.
.google.maps.routing.v2.Location start_location = 5;Location getStartLocation()
The start location of this leg. This location might be different from the provided `origin`. For example, when the provided `origin` is not near a road, this is a point on the road.
.google.maps.routing.v2.Location start_location = 5;LocationOrBuilder getStartLocationOrBuilder()
The start location of this leg. This location might be different from the provided `origin`. For example, when the provided `origin` is not near a road, this is a point on the road.
.google.maps.routing.v2.Location start_location = 5;boolean hasEndLocation()
The end location of this leg. This location might be different from the provided `destination`. For example, when the provided `destination` is not near a road, this is a point on the road.
.google.maps.routing.v2.Location end_location = 6;Location getEndLocation()
The end location of this leg. This location might be different from the provided `destination`. For example, when the provided `destination` is not near a road, this is a point on the road.
.google.maps.routing.v2.Location end_location = 6;LocationOrBuilder getEndLocationOrBuilder()
The end location of this leg. This location might be different from the provided `destination`. For example, when the provided `destination` is not near a road, this is a point on the road.
.google.maps.routing.v2.Location end_location = 6;List<RouteLegStep> getStepsList()
An array of steps denoting segments within this leg. Each step represents one navigation instruction.
repeated .google.maps.routing.v2.RouteLegStep steps = 7;RouteLegStep getSteps(int index)
An array of steps denoting segments within this leg. Each step represents one navigation instruction.
repeated .google.maps.routing.v2.RouteLegStep steps = 7;int getStepsCount()
An array of steps denoting segments within this leg. Each step represents one navigation instruction.
repeated .google.maps.routing.v2.RouteLegStep steps = 7;List<? extends RouteLegStepOrBuilder> getStepsOrBuilderList()
An array of steps denoting segments within this leg. Each step represents one navigation instruction.
repeated .google.maps.routing.v2.RouteLegStep steps = 7;RouteLegStepOrBuilder getStepsOrBuilder(int index)
An array of steps denoting segments within this leg. Each step represents one navigation instruction.
repeated .google.maps.routing.v2.RouteLegStep steps = 7;boolean hasTravelAdvisory()
Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a route leg.
.google.maps.routing.v2.RouteLegTravelAdvisory travel_advisory = 8;RouteLegTravelAdvisory getTravelAdvisory()
Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a route leg.
.google.maps.routing.v2.RouteLegTravelAdvisory travel_advisory = 8;RouteLegTravelAdvisoryOrBuilder getTravelAdvisoryOrBuilder()
Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a route leg.
.google.maps.routing.v2.RouteLegTravelAdvisory travel_advisory = 8;boolean hasLocalizedValues()
Text representations of properties of the `RouteLeg`.
.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9;RouteLeg.RouteLegLocalizedValues getLocalizedValues()
Text representations of properties of the `RouteLeg`.
.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9;RouteLeg.RouteLegLocalizedValuesOrBuilder getLocalizedValuesOrBuilder()
Text representations of properties of the `RouteLeg`.
.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9;boolean hasStepsOverview()
Overview information about the steps in this `RouteLeg`. This field is only populated for TRANSIT routes.
.google.maps.routing.v2.RouteLeg.StepsOverview steps_overview = 10;RouteLeg.StepsOverview getStepsOverview()
Overview information about the steps in this `RouteLeg`. This field is only populated for TRANSIT routes.
.google.maps.routing.v2.RouteLeg.StepsOverview steps_overview = 10;RouteLeg.StepsOverviewOrBuilder getStepsOverviewOrBuilder()
Overview information about the steps in this `RouteLeg`. This field is only populated for TRANSIT routes.
.google.maps.routing.v2.RouteLeg.StepsOverview steps_overview = 10;Copyright © 2025 Google LLC. All rights reserved.