pub struct Route {Show 35 fields
pub id: u64,
pub name: Option<String>,
pub description: Option<String>,
pub distance: Option<f64>,
pub elevation_gain: Option<f64>,
pub elevation_loss: Option<f64>,
pub visibility: Option<Visibility>,
pub user_id: Option<u64>,
pub url: Option<String>,
pub html_url: Option<String>,
pub created_at: Option<String>,
pub updated_at: Option<String>,
pub locality: Option<String>,
pub administrative_area: Option<String>,
pub country_code: Option<String>,
pub track_type: Option<String>,
pub has_course_points: Option<bool>,
pub terrain: Option<String>,
pub difficulty: Option<String>,
pub first_lat: Option<f64>,
pub first_lng: Option<f64>,
pub last_lat: Option<f64>,
pub last_lng: Option<f64>,
pub sw_lat: Option<f64>,
pub sw_lng: Option<f64>,
pub ne_lat: Option<f64>,
pub ne_lng: Option<f64>,
pub unpaved_pct: Option<f64>,
pub surface: Option<String>,
pub archived: Option<bool>,
pub activity_types: Option<Vec<String>>,
pub track_points: Option<Vec<TrackPoint>>,
pub course_points: Option<Vec<CoursePoint>>,
pub points_of_interest: Option<Vec<PointOfInterest>>,
pub photos: Option<Vec<Photo>>,
}Expand description
A route
Fields§
§id: u64Route ID
name: Option<String>Route name
description: Option<String>Route description
distance: Option<f64>Distance in meters
elevation_gain: Option<f64>Elevation gain in meters
elevation_loss: Option<f64>Elevation loss in meters
visibility: Option<Visibility>Route visibility
user_id: Option<u64>User ID of the route owner
url: Option<String>API URL
html_url: Option<String>HTML/web URL
created_at: Option<String>Created timestamp
updated_at: Option<String>Updated timestamp
locality: Option<String>Locality/location
administrative_area: Option<String>Administrative area
country_code: Option<String>Country code
track_type: Option<String>Track type
has_course_points: Option<bool>Whether the route has course points
terrain: Option<String>Terrain rating
difficulty: Option<String>Difficulty rating
first_lat: Option<f64>First point latitude
first_lng: Option<f64>First point longitude
last_lat: Option<f64>Last point latitude
last_lng: Option<f64>Last point longitude
sw_lat: Option<f64>Southwest corner latitude (bounding box)
sw_lng: Option<f64>Southwest corner longitude (bounding box)
ne_lat: Option<f64>Northeast corner latitude (bounding box)
ne_lng: Option<f64>Northeast corner longitude (bounding box)
unpaved_pct: Option<f64>Percentage of unpaved surface
surface: Option<String>Surface type
archived: Option<bool>Whether the route is archived
activity_types: Option<Vec<String>>Activity types
track_points: Option<Vec<TrackPoint>>Track points (included when fetching a specific route)
course_points: Option<Vec<CoursePoint>>Course points/cues (included when fetching a specific route)
points_of_interest: Option<Vec<PointOfInterest>>Points of interest along the route (included when fetching a specific route)
photos: Option<Vec<Photo>>Photos (included when fetching a specific route)