I was wanting to do some recreational GIS stuff using Mountainproject.com spatial data. In particular, I was wondering if MP's API supports code for fetching the coordinates of the climbing areas in all of Colorado, for example. In particular, I thought it would be cool to generate a map of all climbing areas along the path of totality of the coming eclipse. If someone more well versed in json or https could help me out, that'd be rad! I know a bit of python, but am not having much luck trying to query for this spatial data.
You need to log in and generate your own API key to access the data. I used R and the httr package to query the routes. So far, I have only used the getRoutes method; for this method you need:
- your API key
- list of route ids of routes you are interested in (the 9 digit number in the url of each route.) Unfortunately, the numbers don't seem to have any structure to them, so I was not able to use logic to query all routes from a certain area or crag, perhaps I haven't figured that out yet...
- the query url
It seems like there's a new method called getRoutesForLatLon, which returns routes in a certain distance and difficulty range from a lat lon specified, like you wanted. Here's a quick tutorial on how to use R to extract data from web APIs. https://tclavelle.github.io/blog/r_and_apis/
Even though the solar eclipse is over, have fun playing around with the data!