Package com.google.maps.routing.v2
Interface RouteLegOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
RouteLeg
,RouteLeg.Builder
public interface RouteLegOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getDistanceMeters
int getDistanceMeters()
The travel distance of the route leg, in meters.
int32 distance_meters = 1;
- Returns:
- The distanceMeters.
-
hasDuration
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;
- Returns:
- Whether the duration field is set.
-
getDuration
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;
- Returns:
- The duration.
-
getDurationOrBuilder
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;
-
hasStaticDuration
boolean hasStaticDuration()
The duration of travel through the leg, calculated without taking traffic conditions into consideration.
.google.protobuf.Duration static_duration = 3;
- Returns:
- Whether the staticDuration field is set.
-
getStaticDuration
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;
- Returns:
- The staticDuration.
-
getStaticDurationOrBuilder
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;
-
hasPolyline
boolean hasPolyline()
The overall polyline for this leg that includes each `step`'s polyline.
.google.maps.routing.v2.Polyline polyline = 4;
- Returns:
- Whether the polyline field is set.
-
getPolyline
Polyline getPolyline()
The overall polyline for this leg that includes each `step`'s polyline.
.google.maps.routing.v2.Polyline polyline = 4;
- Returns:
- The polyline.
-
getPolylineOrBuilder
PolylineOrBuilder getPolylineOrBuilder()
The overall polyline for this leg that includes each `step`'s polyline.
.google.maps.routing.v2.Polyline polyline = 4;
-
hasStartLocation
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;
- Returns:
- Whether the startLocation field is set.
-
getStartLocation
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;
- Returns:
- The startLocation.
-
getStartLocationOrBuilder
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;
-
hasEndLocation
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;
- Returns:
- Whether the endLocation field is set.
-
getEndLocation
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;
- Returns:
- The endLocation.
-
getEndLocationOrBuilder
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;
-
getStepsList
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;
-
getSteps
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;
-
getStepsCount
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;
-
getStepsOrBuilderList
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;
-
getStepsOrBuilder
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;
-
hasTravelAdvisory
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;
- Returns:
- Whether the travelAdvisory field is set.
-
getTravelAdvisory
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;
- Returns:
- The travelAdvisory.
-
getTravelAdvisoryOrBuilder
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;
-
hasLocalizedValues
boolean hasLocalizedValues()
Text representations of properties of the `RouteLeg`.
.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9;
- Returns:
- Whether the localizedValues field is set.
-
getLocalizedValues
RouteLeg.RouteLegLocalizedValues getLocalizedValues()
Text representations of properties of the `RouteLeg`.
.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9;
- Returns:
- The localizedValues.
-
getLocalizedValuesOrBuilder
RouteLeg.RouteLegLocalizedValuesOrBuilder getLocalizedValuesOrBuilder()
Text representations of properties of the `RouteLeg`.
.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9;
-
hasStepsOverview
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;
- Returns:
- Whether the stepsOverview field is set.
-
getStepsOverview
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;
- Returns:
- The stepsOverview.
-
getStepsOverviewOrBuilder
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;
-
-