Mountain Project Logo

Download all area names & GPS coordinates

Original Post
Ian Reed · · Redondo Beach, CA · Joined Sep 2016 · Points: 0

Is it possible to download all area names and GPS coordinates for a particular region as a CSV file? This would allow mass export of a regions wall locations to other GPS devices once the CSV format is converted to GPX (a simple task).

i can't find the feature already built in to the site, so i'm more curious if someone in the MP community knows how to data-mine this information.

For example, this is the information (and format) i would want to pull from the joshua tree region:

null

Andrew Krajnik · · Plainfield, IL · Joined Jul 2016 · Points: 1,739

+1 This would be a cool feature. I use a Garmin handheld, and I also like to make custom printed topo maps using Caltopo. In both cases, I have to copy and paste coordinates for individual areas one at a time. The ability to batch them with GPX would be fanbtastic!

Jim Urbec · · Sevierville, TN · Joined Jul 2015 · Points: 61
Andrew Krajnik wrote: +1 This would be a cool feature. I use a Garmin handheld, and I also like to make custom printed topo maps using Caltopo. In both cases, I have to copy and paste coordinates for individual areas one at a time. The ability to batch them with GPX would be fanbtastic!

+2


though I've also noticed depending on the area the GPS might get you to the very general area ( or maybe just a parking lot) and you then default to your own level of land nav skill.
Andrew Krajnik · · Plainfield, IL · Joined Jul 2016 · Points: 1,739
Jim Urbec wrote:

+2


though I've also noticed depending on the area the GPS might get you to the very general area ( or maybe just a parking lot) and you then default to your own level of land nav skill.

Yeah, that's a fair point. Not all areas have an exact GPS location in the database. It often defaults to the location of the next-higher area in the hierarchy.

Ian Reed · · Redondo Beach, CA · Joined Sep 2016 · Points: 0

Thanks for the comments!

The API looks the most promising, i'll have to come up with a query that returns what i'm after.

I don't really care about the GPS coordinates for the individual routes (although that would be super awesome), i'm more interested in getting coordinates for the wall/area and then depending on the MP pictures or guide book pictures to figure out the route location.

Any idea on how to apply for an API key? the "data" page linked above isn't very clear. I code in SQL for work pretty often, so this all make sense to me, just need to figure out how to start the query.

Andrew Krajnik · · Plainfield, IL · Joined Jul 2016 · Points: 1,739

Doesn't everyone have a key? When I go to that link, I see my private key listed on the right, along with a warning about how to use it, and what type of activity might result in its deactivation...

Ian Reed · · Redondo Beach, CA · Joined Sep 2016 · Points: 0

Success!

The following API URL generates some JSON data which i converted to CSV (attached) using this website
https://www.mountainproject.com/data/get-routes-for-lat-lon?lat=34.00&lon=-116.05&maxDistance=50&maxResults=500&minDiff=5.6&maxDiff=5.9&key=?????

this URL returns 500 climbs within 50mi of the split rocks parking lot in jtree (lat=34.00&lon=-116.05) which are between 5.6 and 5.9 rating. I got 404 results from Jtree and then 96 results from other crags, so i think it snagged everything i would care about.

i think my question is solved! hopefully this is helpful to other people as well.

null

khoa · · Tacomarado · Joined Mar 2007 · Points: 54

you should redact your key :)

Ian Reed · · Redondo Beach, CA · Joined Sep 2016 · Points: 0
khoa wrote: you should redact your key :)

woah good call! thanks for that, removed it

tom donnelly · · san diego · Joined Aug 2002 · Points: 394

why do some of those star values seem to be off?

Nick Wilder · · Boulder, CO · Joined Jan 2005 · Points: 4,098
tom donnelly wrote: why do some of those star values seem to be off?

When translated to numbers in the API, the value of 1 means "Bomb", the value of 2 means "1 star", the value of 3 means "2 stars" etc.  A value of 0 means we have no star submissions for that route.

Leo Klotz · · Salem, OR · Joined Mar 2020 · Points: 0

I don't know much about coding, but I have a feeling this is similar to what I would like to accomplish. Is there any way to take the CSV file of my to-do list and use that to get a GPX file of the location of all of the climbs within my to-do list? Or at least the wall location?

Andrew Krajnik · · Plainfield, IL · Joined Jul 2016 · Points: 1,739
Leo Klotz wrote: I don't know much about coding, but I have a feeling this is similar to what I would like to accomplish. Is there any way to take the CSV file of my to-do list and use that to get a GPX file of the location of all of the climbs within my to-do list? Or at least the wall location?

You can export a csv of your to-do list, but it doesn't include the lat/lon coordinates for the climbs in the list. The tick-list csv export does include lat/lon, so I imagine it would be a pretty easy feature to add.

Justin Lofthouse · · Ogden, UT · Joined Oct 2015 · Points: 0

How do you find your own private key?

Jonathan Bright · · Huntington, NY · Joined Feb 2018 · Points: 250
Justin Lofthouse wrote:

How do you find your own private key?

It appears to no longer exist.  :(

https://www.mountainproject.com/data

slim · · Unknown Hometown · Joined Dec 2004 · Points: 1,103
tom donnelly wrote: why do some of those star values seem to be off?

it's actually because it forgot to take into account the equation numstars = FFA stars minus 2.

Guideline #1: Don't be a jerk.

Discuss MountainProject.com
Post a Reply to "Download all area names & GPS coordinates"

Log In to Reply
Welcome

Join the Community! It's FREE

Already have an account? Login to close this notice.