NAME

Paws::LocationService::Step

USAGE

This class represents one of two things:

Arguments in a call to a service

Use the attributes of this class as arguments to methods. You shouldn't make instances of this class. Each attribute should be used as a named argument in the calls that expect this type of object.

As an example, if Att1 is expected to be a Paws::LocationService::Step object:

$service_obj->Method(Att1 => { Distance => $value, ..., StartPosition => $value  });

Results returned from an API call

Use accessors for each attribute. If Att1 is expected to be an Paws::LocationService::Step object:

$result = $service_obj->Method(...);
$result->Att1->Distance

DESCRIPTION

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

ATTRIBUTES

REQUIRED Distance => Num

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

REQUIRED DurationSeconds => Num

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.

REQUIRED EndPosition => ArrayRef[Num]

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.

GeometryOffset => Int

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.

REQUIRED StartPosition => ArrayRef[Num]

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.

SEE ALSO

This class forms part of Paws, describing an object used in Paws::LocationService

BUGS and CONTRIBUTIONS

The source code is located here: https://github.com/pplu/aws-sdk-perl

Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues