Class: Loqate::Geocoding::Direction
- Inherits:
-
Dry::Struct::Value
- Object
- Dry::Struct::Value
- Loqate::Geocoding::Direction
- Defined in:
- lib/loqate/geocoding/direction.rb
Overview
A result from the directions API call.
Instance Method Summary collapse
-
#action ⇒ String
The type of routing instruction.
-
#description ⇒ String
Textual description of the routing instruction.
-
#road ⇒ String
The name of the road to turn onto.
-
#segment_number ⇒ Integer
A zero based counter indicating the row number.
-
#step_distance ⇒ Integer
The distance in metres for this part of the route.
-
#step_number ⇒ Integer
A zero based counter indicating the row number.
-
#step_time ⇒ Integer
The time in seconds for this part of the route.
-
#total_distance ⇒ Integer
The total distance in metres for the route.
-
#total_time ⇒ Integer
The total time in seconds for the route.
Instance Method Details
#action ⇒ String
The type of routing instruction.
21 |
# File 'lib/loqate/geocoding/direction.rb', line 21 attribute :action, Types::Strict::String |
#description ⇒ String
Textual description of the routing instruction.
27 |
# File 'lib/loqate/geocoding/direction.rb', line 27 attribute :description, Types::Strict::String |
#road ⇒ String
The name of the road to turn onto.
33 |
# File 'lib/loqate/geocoding/direction.rb', line 33 attribute :road, Types::Strict::String |
#segment_number ⇒ Integer
A zero based counter indicating the row number.
9 |
# File 'lib/loqate/geocoding/direction.rb', line 9 attribute :segment_number, Types::Strict::Integer |
#step_distance ⇒ Integer
The distance in metres for this part of the route.
45 |
# File 'lib/loqate/geocoding/direction.rb', line 45 attribute :step_distance, Types::Strict::Integer |
#step_number ⇒ Integer
A zero based counter indicating the row number.
15 |
# File 'lib/loqate/geocoding/direction.rb', line 15 attribute :step_number, Types::Strict::Integer |
#step_time ⇒ Integer
The time in seconds for this part of the route.
39 |
# File 'lib/loqate/geocoding/direction.rb', line 39 attribute :step_time, Types::Strict::Integer |
#total_distance ⇒ Integer
The total distance in metres for the route.
57 |
# File 'lib/loqate/geocoding/direction.rb', line 57 attribute :total_distance, Types::Strict::Integer |
#total_time ⇒ Integer
The total time in seconds for the route.
51 |
# File 'lib/loqate/geocoding/direction.rb', line 51 attribute :total_time, Types::Strict::Integer |