Class: Aws::LocationService::Types::CalculateRouteSummary
- Inherits:
-
Struct
- Object
- Struct
- Aws::LocationService::Types::CalculateRouteSummary
- Defined in:
- gems/aws-sdk-locationservice/lib/aws-sdk-locationservice/types.rb
Overview
A summary of the calculated route.
Constant Summary collapse
- SENSITIVE =
[:route_b_box, :distance, :duration_seconds]
Instance Attribute Summary collapse
-
#data_source ⇒ String
The data provider of traffic and road network data used to calculate the route.
-
#distance ⇒ Float
The total distance covered by the route.
-
#distance_unit ⇒ String
The unit of measurement for route distances.
-
#duration_seconds ⇒ Float
The total travel time for the route measured in seconds.
-
#route_b_box ⇒ Array<Float>
Specifies a geographical box surrounding a route.
Instance Attribute Details
#data_source ⇒ String
The data provider of traffic and road network data used to calculate the route. Indicates one of the available providers:
EsriGrabHere
For more information about data providers, see Amazon Location Service data providers.
1304 1305 1306 1307 1308 1309 1310 1311 1312 |
# File 'gems/aws-sdk-locationservice/lib/aws-sdk-locationservice/types.rb', line 1304 class CalculateRouteSummary < Struct.new( :route_b_box, :data_source, :distance, :duration_seconds, :distance_unit) SENSITIVE = [:route_b_box, :distance, :duration_seconds] include Aws::Structure end |
#distance ⇒ Float
The total distance covered by the route. The sum of the distance travelled between every stop on the route.
400 RoutesValidationException error.
1304 1305 1306 1307 1308 1309 1310 1311 1312 |
# File 'gems/aws-sdk-locationservice/lib/aws-sdk-locationservice/types.rb', line 1304 class CalculateRouteSummary < Struct.new( :route_b_box, :data_source, :distance, :duration_seconds, :distance_unit) SENSITIVE = [:route_b_box, :distance, :duration_seconds] include Aws::Structure end |
#distance_unit ⇒ String
The unit of measurement for route distances.
1304 1305 1306 1307 1308 1309 1310 1311 1312 |
# File 'gems/aws-sdk-locationservice/lib/aws-sdk-locationservice/types.rb', line 1304 class CalculateRouteSummary < Struct.new( :route_b_box, :data_source, :distance, :duration_seconds, :distance_unit) SENSITIVE = [:route_b_box, :distance, :duration_seconds] include Aws::Structure end |
#duration_seconds ⇒ Float
The total travel time for the route measured in seconds. The sum of the travel time between every stop on the route.
1304 1305 1306 1307 1308 1309 1310 1311 1312 |
# File 'gems/aws-sdk-locationservice/lib/aws-sdk-locationservice/types.rb', line 1304 class CalculateRouteSummary < Struct.new( :route_b_box, :data_source, :distance, :duration_seconds, :distance_unit) SENSITIVE = [:route_b_box, :distance, :duration_seconds] include Aws::Structure end |
#route_b_box ⇒ Array<Float>
Specifies a geographical box surrounding a route. Used to zoom into
a route when displaying it in a map. For example, [min x, min y,
max x, max y].
The first 2 bbox parameters describe the lower southwest corner:
The first
bboxposition is the X coordinate or longitude of the lower southwest corner.The second
bboxposition is the Y coordinate or latitude of the lower southwest corner.
The next 2 bbox parameters describe the upper northeast corner:
The third
bboxposition is the X coordinate, or longitude of the upper northeast corner.The fourth
bboxposition is the Y coordinate, or latitude of the upper northeast corner.
1304 1305 1306 1307 1308 1309 1310 1311 1312 |
# File 'gems/aws-sdk-locationservice/lib/aws-sdk-locationservice/types.rb', line 1304 class CalculateRouteSummary < Struct.new( :route_b_box, :data_source, :distance, :duration_seconds, :distance_unit) SENSITIVE = [:route_b_box, :distance, :duration_seconds] include Aws::Structure end |