Class RoutePedestrianSpan
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<RoutePedestrianSpan.Builder,RoutePedestrianSpan>
Span computed for the requested SpanAdditionalFeatures.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal LongDuration of the computed span without traffic congestion.static RoutePedestrianSpan.Builderbuilder()final Stringcountry()3 letter Country code corresponding to the Span.final Longdistance()Distance of the computed span.final Longduration()Duration of the computed span.Dynamic speed details corresponding to the span.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final IntegerA numerical value indicating the functional classification of the road segment corresponding to the span.final IntegerOffset in the leg geometry corresponding to the start of this span.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final booleanFor responses, this returns true if the service returned a value for the Incidents property.final booleanhasNames()For responses, this returns true if the service returned a value for the Names property.final booleanFor responses, this returns true if the service returned a value for the PedestrianAccess property.final booleanFor responses, this returns true if the service returned a value for the RoadAttributes property.final booleanFor responses, this returns true if the service returned a value for the RouteNumbers property.Incidents corresponding to the span.final List<LocalizedString> names()Provides an array of names of the pedestrian span in available languages.Access attributes for a pedestrian corresponding to the span.Access attributes for a pedestrian corresponding to the span.final Stringregion()2-3 letter Region code corresponding to the Span.final List<RouteSpanRoadAttribute> Attributes for the road segment corresponding to the span.Attributes for the road segment corresponding to the span.final List<RouteNumber> Designated route name or number corresponding to the span.static Class<? extends RoutePedestrianSpan.Builder> Speed limit details corresponding to the span.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final LongDuration of the computed span under typical traffic congestion.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
bestCaseDuration
Duration of the computed span without traffic congestion.
Unit:
seconds- Returns:
- Duration of the computed span without traffic congestion.
Unit:
seconds
-
country
3 letter Country code corresponding to the Span.
- Returns:
- 3 letter Country code corresponding to the Span.
-
distance
Distance of the computed span. This feature doesn't split a span, but is always computed on a span split by other properties.
- Returns:
- Distance of the computed span. This feature doesn't split a span, but is always computed on a span split by other properties.
-
duration
Duration of the computed span. This feature doesn't split a span, but is always computed on a span split by other properties.
Unit:
seconds- Returns:
- Duration of the computed span. This feature doesn't split a span, but is always computed on a span split
by other properties.
Unit:
seconds
-
dynamicSpeed
Dynamic speed details corresponding to the span.
Unit:
kilometers per hour- Returns:
- Dynamic speed details corresponding to the span.
Unit:
kilometers per hour
-
functionalClassification
A numerical value indicating the functional classification of the road segment corresponding to the span.
Classification values are part of the hierarchical network that helps determine a logical and efficient route, and have the following definitions:
-
Roads that allow for high volume, maximum speed traffic movement between and through major metropolitan areas.
-
Roads that are used to channel traffic to functional class 1 roads for travel between and through cities in the shortest amount of time.
-
Roads that intersect functional class 2 roads and provide a high volume of traffic movement at a lower level of mobility than functional class 2 roads.
-
Roads that provide for a high volume of traffic movement at moderate speeds between neighborhoods.
-
Roads with volume and traffic movement below the level of any other functional class.
- Returns:
- A numerical value indicating the functional classification of the road segment corresponding to the
span.
Classification values are part of the hierarchical network that helps determine a logical and efficient route, and have the following definitions:
-
Roads that allow for high volume, maximum speed traffic movement between and through major metropolitan areas.
-
Roads that are used to channel traffic to functional class 1 roads for travel between and through cities in the shortest amount of time.
-
Roads that intersect functional class 2 roads and provide a high volume of traffic movement at a lower level of mobility than functional class 2 roads.
-
Roads that provide for a high volume of traffic movement at moderate speeds between neighborhoods.
-
Roads with volume and traffic movement below the level of any other functional class.
-
-
-
geometryOffset
Offset in the leg geometry corresponding to the start of this span.
- Returns:
- Offset in the leg geometry corresponding to the start of this span.
-
hasIncidents
public final boolean hasIncidents()For responses, this returns true if the service returned a value for the Incidents property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
incidents
Incidents corresponding to the span. These index into the Incidents in the parent Leg.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasIncidents()method.- Returns:
- Incidents corresponding to the span. These index into the Incidents in the parent Leg.
-
hasNames
public final boolean hasNames()For responses, this returns true if the service returned a value for the Names property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
names
Provides an array of names of the pedestrian span in available languages.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasNames()method.- Returns:
- Provides an array of names of the pedestrian span in available languages.
-
pedestrianAccess
Access attributes for a pedestrian corresponding to the span.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasPedestrianAccess()method.- Returns:
- Access attributes for a pedestrian corresponding to the span.
-
hasPedestrianAccess
public final boolean hasPedestrianAccess()For responses, this returns true if the service returned a value for the PedestrianAccess property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
pedestrianAccessAsStrings
Access attributes for a pedestrian corresponding to the span.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasPedestrianAccess()method.- Returns:
- Access attributes for a pedestrian corresponding to the span.
-
region
2-3 letter Region code corresponding to the Span. This is either a province or a state.
- Returns:
- 2-3 letter Region code corresponding to the Span. This is either a province or a state.
-
roadAttributes
Attributes for the road segment corresponding to the span.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasRoadAttributes()method.- Returns:
- Attributes for the road segment corresponding to the span.
-
hasRoadAttributes
public final boolean hasRoadAttributes()For responses, this returns true if the service returned a value for the RoadAttributes property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
roadAttributesAsStrings
Attributes for the road segment corresponding to the span.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasRoadAttributes()method.- Returns:
- Attributes for the road segment corresponding to the span.
-
hasRouteNumbers
public final boolean hasRouteNumbers()For responses, this returns true if the service returned a value for the RouteNumbers property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
routeNumbers
Designated route name or number corresponding to the span.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasRouteNumbers()method.- Returns:
- Designated route name or number corresponding to the span.
-
speedLimit
Speed limit details corresponding to the span.
Unit:
kilometers per hour- Returns:
- Speed limit details corresponding to the span.
Unit:
kilometers per hour
-
typicalDuration
Duration of the computed span under typical traffic congestion.
Unit:
seconds- Returns:
- Duration of the computed span under typical traffic congestion.
Unit:
seconds
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<RoutePedestrianSpan.Builder,RoutePedestrianSpan> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-