Class: Strava::Models::Waypoint
- Inherits:
-
Response
- Object
- Hashie::Trash
- Strava::Model
- Response
- Strava::Models::Waypoint
- Defined in:
- lib/strava/models/waypoint.rb
Overview
Represents a waypoint on a route.
Waypoints are markers along a route that can indicate points of interest, turns, or other significant locations. They include GPS coordinates and descriptive information.
Instance Method Summary collapse
-
#categories ⇒ Array<String>
Categories or types for this waypoint (e.g., ["water", "rest"]).
-
#description ⇒ String?
Detailed description of the waypoint.
-
#distance_into_route ⇒ Float
Distance from the start of the route to this waypoint in meters.
-
#latlng ⇒ LatLng
GPS coordinates of the waypoint.
-
#target_latlng ⇒ LatLng?
Target GPS coordinates (may differ from latlng for snapped waypoints).
-
#title ⇒ String
Title or name of the waypoint.
Instance Method Details
#categories ⇒ Array<String>
Returns Categories or types for this waypoint (e.g., ["water", "rest"]).
33 |
# File 'lib/strava/models/waypoint.rb', line 33 property 'categories' |
#description ⇒ String?
Returns Detailed description of the waypoint.
39 |
# File 'lib/strava/models/waypoint.rb', line 39 property 'description' |
#distance_into_route ⇒ Float
Returns Distance from the start of the route to this waypoint in meters.
42 |
# File 'lib/strava/models/waypoint.rb', line 42 property 'distance_into_route' |
#latlng ⇒ LatLng
Returns GPS coordinates of the waypoint.
27 |
# File 'lib/strava/models/waypoint.rb', line 27 property 'latlng', transform_with: ->(v) { Strava::Models::LatLng.new(v) } |
#target_latlng ⇒ LatLng?
Returns Target GPS coordinates (may differ from latlng for snapped waypoints).
30 |
# File 'lib/strava/models/waypoint.rb', line 30 property 'target_latlng', transform_with: ->(v) { Strava::Models::LatLng.new(v) } |
#title ⇒ String
Returns Title or name of the waypoint.
36 |
# File 'lib/strava/models/waypoint.rb', line 36 property 'title' |