/ trailapi

Discusiones

22
All
Questions
Answers
El más nuevo
A
1
Trail IDs are returned for search results. For example, you would use the 'Find Bike Trails' endpoint to get a list of trails and their IDs. The 'find' response includes basic info about each trail; if you need more details about each trail in the results, you would plug each ID into the 'Bike Trail Info' endpoint to get that info.
jue. 4:56 9/9/21
A
1
Thank you for pointing that out. We are working on a fix and will post here once it is complete.
mar. 1:03 24/8/21
A
1
Strange. Sounds like a Javascript error. Please post the code you are using, along with the URL of the endpoint you're testing.
lun. 6:10 9/8/21
A
1
It doesn't look like you are sending the required 'x-rapidapi-key' header. Be sure to check out the RapidAPI examples like this one: const settings = { "async": true, "crossDomain": true, "url": "https://trailapi-trailapi.p.rapidapi.com/trails/map/%7Bid%7D/gpx/", "method": "GET", "headers": { "x-rapidapi-key": "YOUR_API_KEY", "x-rapidapi-host": "trailapi-trailapi.p.rapidapi.com" } }; $.ajax(settings).done(function (response) { console.log(response); });
mié. 1:05 7/7/21
A
1
Unfortunately that's not currently possible but it's something we may consider adding in the future.
mié. 1:00 7/7/21
A
1
For bike trails, you'll want to first use the 'find' endpoint to get a list of trail IDs based on a location. The results of that query will include trail IDs along with some basic info about the trail. For more detailed info about a trail, you can send the ID from the 'find' query to the 'info' endpoint. You should not be scraping a range of trail IDs.
mié. 12:58 7/7/21