Trailforks Overlay

Jan Weigand shared this idea 3 years ago
Collecting votes

Trailforks gets better every Month and a Map Overlay for Locus would be splendid.


http://www.trailforks.com/about/api


The Api is alive and no big deal for you guys I guess.


User Interface. Suggestion


Checkbox -> Show Trailforks Trails as Overlay.

  • Show Double Black Diamond Trails
  • Show Black Diamon Trails
  • ...
  • Show Access Road
  • optional show only trails with recent ridelogs (lets you decide if the trail is maintainanced or the data is to old to bother)
  • optional show only trails with rating higher than xy


kind regards

Comments (16)

photo
2

Workaround to get some Trailforks trails in a previous known area in a nice way displayed in locus maps:

1) Identify the coordinates of the area you are interested in. the area will be an rectangle. Look for the upper left and lower right corrdinate.

-> assume the coordinates are 43.034,10.453 and 42.429,11.034

2) put both coordinates comma separated in a list: "43.034,10.453,42.429,11.034"

3) use trailforks api to get data: https://www.trailforks.com/api/1/maptrails?output=kml&filter=bbox::43.034,10.453,42.429,11.034&api_key=docs

4) result will be a json. copy everything inside "data" - without sourrunding quotes! - into a .kml file.

5) correct escaping: replace \n with a correct line break. Replace \" with "

6) save in Locus\mapItems

Disclaimer: please respect usage conditions of the trailforks api!

photo
1

Sure... you can also use the Locus "Favorites" feature to automate about half of that monster shebang. Unfortunately, its development stopped just an hour short of being really finished... so it doesn't seem to be possible to display the result in Locus directly... at least I failed trying to jump through a dozen hoops :).

Shame... it would be so easy with a little more help from Locus...

photo
2

This feature is very nice. Trailforks is being used by more and more mountain bikers. But I do not want to use 2 apps. If possible, I want to do as much as possible with Locus.

photo
1

If only locus team were m... instead of g... :)

photo
2

What a great idea. Best idea for me. Very important for MTB. But also hiking, as there are often hiking trails here.

photo
2

Maybe there is also the possibility with an online map and then use this as an overlay?

photo
3

Topic also mentioned in German MTB-News-Forum.

Jan shared his idea already 2 years ago, but up2now no feedback... What do we have to do?


Kind regards,


Jensus

photo
1

A snowballs chance in hell for this, Locus team has nothing to do whatsoever with mountain biking. Maybe if you send menion a cool funky carbon mtb and wait a couple years until he's good enough for single tracks... then he might start looking into trailforks :).

photo
photo
1

Now I'm using two applications :/

photo
1

In any case, it should be fairly simple to connect Locus and Trailforks with their respective APIs. Things have changed a little in the last two years and I figure at least having Trailforks show up in Locus on the press of a favorites button would work meanwhile with just a tiny bit of scripting. Who volunteers?

photo
1

It's super easy to create network "live" kml, similar to described here in thread, but api is broken and for any given bounding box it shows only 3 trails.

photo
2

I've done some research. Unfortunately the locus public api returns only simplified versions of gpx tracks (version for drawing rougher sketch on a map).

If I missed something, please correct me.

photo
1

Is there something new here. Locus will have little capacity here this year, now LM4 has to run first. Can you do something yourself here? About the API? I cannot cope with the above instructions.

photo
2

Hi guys,

we requested already twice for access to Trailforks API, unfortunately no response. Seems that the Locus team is just ignored ...

@Adam S wrote, "Unfortunately the locus public api returns only simplified versions of gpx tracks"? You mean "Trailforks API"? Otherwise, there is no limit on the Locus Map side. Someone with access to trailforks API, may write quite a simple add-on that download and display tracks (not just) in the Locus Map app. At least Locus Map API is ready for this task.

photo
1

Yes I meant the Trailforks API. Sorry for the mix-up.

photo
1

I also requested an API key in january with no response :-(

I implemented a little php script to work with Locus URL favourites that should download all trails of an area from trailforks and imports them to Locus. It works, but the demo version only returns 3 tracks.

I thought I got no response because I'm only a single person with a little hobby project, but the fact that even Locus Team got no answer makes me wonder if anybody reads these mails at trailforks at all?