Class: Loqate::Geocoding::Direction

Inherits:
Dry::Struct::Value
  • Object
show all
Defined in:
lib/loqate/geocoding/direction.rb

Overview

A result from the directions API call.

Instance Method Summary collapse

Instance Method Details

#actionString

The type of routing instruction.



21
# File 'lib/loqate/geocoding/direction.rb', line 21

attribute :action, Types::Strict::String

#descriptionString

Textual description of the routing instruction.



27
# File 'lib/loqate/geocoding/direction.rb', line 27

attribute :description, Types::Strict::String

#roadString

The name of the road to turn onto.



33
# File 'lib/loqate/geocoding/direction.rb', line 33

attribute :road, Types::Strict::String

#segment_numberInteger

A zero based counter indicating the row number.



9
# File 'lib/loqate/geocoding/direction.rb', line 9

attribute :segment_number, Types::Strict::Integer

#step_distanceInteger

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_numberInteger

A zero based counter indicating the row number.



15
# File 'lib/loqate/geocoding/direction.rb', line 15

attribute :step_number, Types::Strict::Integer

#step_timeInteger

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_distanceInteger

The total distance in metres for the route.



57
# File 'lib/loqate/geocoding/direction.rb', line 57

attribute :total_distance, Types::Strict::Integer

#total_timeInteger

The total time in seconds for the route.



51
# File 'lib/loqate/geocoding/direction.rb', line 51

attribute :total_time, Types::Strict::Integer