This guide will help you start using the Rocky Mountain Trails API to plan your backcountry adventures.
Start by exploring available locations in the trail network:
query GetAllPlaces {places {idnametypecoordinates {latitudelongitudeelevation}facilities}}
Get a list of all available trails:
query GetAllTrails {trails {idnamestart {name}distanceKmestimatedHoursdifficulty {overall}}}
Check the weather at a specific location:
query GetCurrentWeather {getWeatherAt(placeId: "lake-louise") {temperatureconditionswindSpeedKmhvisibilityuvIndex}}
Get a multi-day forecast for trip planning:
query GetForecast {getWeatherForecast(placeId: "lake-louise", days: 5) {datehighTemplowTempconditionsprecipitationChance}}
Find the best route between two locations:
query FindRoute {findRoute(startId: "moraine-lake-parking",endId: "sentinel-pass",options: {preferredDifficulty: MODERATEavoidTerrain: [GLACIER]}) {trails {namedistanceKm}totalDistanceKmestimatedHourscampgrounds {namefacilities}}}
Plan a complete multi-day adventure:
query PlanBackpackingTrip {planTrip(startId: "lake-louise-parking",endId: "egypt-lake-shelter",startDate: "2024-07-15",options: {maxDays: 3fitnessLevel: MODERATEpreferLoop: true}) {route {totalDistanceKmestimatedDays}itinerary {daystart {name}end {name}distanceKmestimatedHours}weatherForecast {dateconditionsprecipitationChance}recommendedGear}}
Check if a trail is passable:
query CheckTrailConditions {getTrailConditions(trailId: "iceline-trail") {statussnowLinewarningslastUpdatedrecentReports {dateconditionshazards}}}
Find trails matching your skill level:
query FindModerateTrails {trailsByDifficulty(level: MODERATE) {namedistanceKmdifficulty {scrambleClassexposureLevelrouteFinding}terrain}}
Explore trail connections and branches:
query ExploreTrailNetworks {trails {nametrailTypeend {nametype}branches {trail {nameend {name}}distanceFromStartconnectionType}}}
Help the community by sharing your trail experiences:
mutation SubmitReport {submitTripReport(trailId: "parker-ridge",date: "2024-06-20",conditions: "Trail clear to treeline, snow above 2400m",hazards: ["ICY_SECTIONS", "AVALANCHE_RISK"],photos: ["https://example.com/photo1.jpg"]) {dateconditionshazards}}
Safe travels and enjoy the mountains! 🏔️