Class: Aws::LocationService::Types::Step

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-locationservice/lib/aws-sdk-locationservice/types.rb

Overview

Represents an element of a leg within a route. A step contains instructions for how to move to the next step in the leg.

Constant Summary collapse

SENSITIVE =
[:end_position, :start_position]

Instance Attribute Summary collapse

Instance Attribute Details

#distanceFloat

The travel distance between the step's StartPosition and EndPosition.

Returns:

  • (Float)


5057
5058
5059
5060
5061
5062
5063
5064
5065
# File 'gems/aws-sdk-locationservice/lib/aws-sdk-locationservice/types.rb', line 5057

class Step < Struct.new(
  :distance,
  :duration_seconds,
  :end_position,
  :geometry_offset,
  :start_position)
  SENSITIVE = [:end_position, :start_position]
  include Aws::Structure
end

#duration_secondsFloat

The estimated travel time, in seconds, from the step's StartPosition to the EndPosition. . The travel mode and departure time that you specify in the request determines the calculated time.

Returns:

  • (Float)


5057
5058
5059
5060
5061
5062
5063
5064
5065
# File 'gems/aws-sdk-locationservice/lib/aws-sdk-locationservice/types.rb', line 5057

class Step < Struct.new(
  :distance,
  :duration_seconds,
  :end_position,
  :geometry_offset,
  :start_position)
  SENSITIVE = [:end_position, :start_position]
  include Aws::Structure
end

#end_positionArray<Float>

The end position of a step. If the position the last step in the leg, this position is the same as the end position of the leg.

Returns:

  • (Array<Float>)


5057
5058
5059
5060
5061
5062
5063
5064
5065
# File 'gems/aws-sdk-locationservice/lib/aws-sdk-locationservice/types.rb', line 5057

class Step < Struct.new(
  :distance,
  :duration_seconds,
  :end_position,
  :geometry_offset,
  :start_position)
  SENSITIVE = [:end_position, :start_position]
  include Aws::Structure
end

#geometry_offsetInteger

Represents the start position, or index, in a sequence of steps within the leg's line string geometry. For example, the index of the first step in a leg geometry is 0.

Included in the response for queries that set IncludeLegGeometry to True.

Returns:

  • (Integer)


5057
5058
5059
5060
5061
5062
5063
5064
5065
# File 'gems/aws-sdk-locationservice/lib/aws-sdk-locationservice/types.rb', line 5057

class Step < Struct.new(
  :distance,
  :duration_seconds,
  :end_position,
  :geometry_offset,
  :start_position)
  SENSITIVE = [:end_position, :start_position]
  include Aws::Structure
end

#start_positionArray<Float>

The starting position of a step. If the position is the first step in the leg, this position is the same as the start position of the leg.

Returns:

  • (Array<Float>)


5057
5058
5059
5060
5061
5062
5063
5064
5065
# File 'gems/aws-sdk-locationservice/lib/aws-sdk-locationservice/types.rb', line 5057

class Step < Struct.new(
  :distance,
  :duration_seconds,
  :end_position,
  :geometry_offset,
  :start_position)
  SENSITIVE = [:end_position, :start_position]
  include Aws::Structure
end