Strava Segments

bartel6 shared this idea 8 years ago
Gathering feedback

It would be great to have Strava segments in Locus. Segments could be downloaded online realtime or once before ride by selecting area.

Replies (9)

photo
2

I would like to implement in Garmin.

Cyclist rides, and during the movement get message: "you approach the Strava segment"

photo
1

I had the same idea yesterday. I'm not sure whether Locus team member knows what you mean. An example: https://www.strava.com/segments/644313 I'd like to get notification about:

lenght, best time (with name?), elevation


The segment shows one problem as well. For some stupid reason, someone has created duplicated KOMs (hill is divided into two). So you start two KOMs under the hill :-/

photo
1

This would bring the app to whole new level for road cyclists.

photo
1

It would be even better if there would be a "live display" during the strata segment like:


garmin-connect-edge-520-strava-segments.png

photo
2

Wishes: when approaching the beginning of the segment, speak (voice output on Bluetooth headsets) "you approach the Strava segment" and Your place in the results table (is the current segment) and The recommended speed for improving the result.

To do this, you will need to import data from Strat, such as:

  • My place in the table of results for this segment;
  • Speed and time of my prior result.


Make the necessary speed calculation in order to improve the result and pronounce it.

If this calculation is too complicated, then say the following result in the table (time and speed).


If you implement this functionality, it will serve as an excellent motivation for those who actively ride or train. Thanks.

photo
2

A few years ago I made this: https://github.com/liskin/strava-segments-kml and it seems it still works. It's just a way to view segments and possibly save them as tracks, nothing fancy like Live Segments, but still, if you want to know where exactly a segment starts/ends, it's nice.

photo
1

Has this stopped working only for me or generally?

photo
2

I'm affraid it stopped working in version 3.38.x. I have this same problem. If you want to use strava segments, you have to install version 3.37.x.

photo
1

Thanks bro.

@menion, what has changed so this does not work in 3.38?


Thanks in advance.


Igor.

photo
1

Hello Igor,

I've never used Strava segments and to be true, I do not even know what is it.

Point me please on some information: "what should I do/try to simulate problem you talk about", thanks.

photo
1

Hi guys.

I'm really sorry, but I confused Strava segments with Strava heat map. For me Strava segments works fine in version 3.38, but Strava heat map is totally messed up. I use KLM file available in this post on Locus Maps forum. Once again sorry for misleading information.

photo
1

Hello Menion,

if you'd like to debug you need to have strava account to begin with.

Then you need to follow instructions from github page few posts above.

Basically, what it is, is what made strava popular in the first place. Take MTB for example, there is some trail, you record gps track of it, upload it to strava and this is called segment. People can compete who is the fastest on this trail, or you can simply research and find new trails for mtb-ing this way(what I use it for).

Now, this "plugin" is live a kml, from locus map it dynamically loads segments from strava based on bounding box data.

live kml relevant part looks like this:

<href>https://nomi.cz/strava/segmentsView.kml</href><viewFormat>south=[bboxSouth]&west=[bboxWest]&north=[bboxNorth]&east=[bboxEast]&token=...

feeds bbox info to web service which downloads segments and feeds into locus.

Hope this helps.

EDIT: ok sorry for the noise, look like it works for me too when Jaro Trapic pointed me to the forum post.

From instructions point 6. is the crucial i guess, I tried to move the kml file every other way but this, needs to be downloaded to computer, moved to android folder(for example Downloads) and then with Android file explorer moved to locus mapItems folder.

4. Download the kml file

5. Copy it on the Smartphone (USB, E-Mail, Dropbox etc.)

6. Using a file explorer on android move the kml file to .../Locus/mapItems/ (My path was for example.

photo
1

@Jaro

No problem, it happens. Regards Strava heatmap, please check this post: https://help.locusmap.eu/topic/strava-heatmap-requires-now-authentification-at-higher-zoom#comment-70872

@Igor

Oki, so I ended on this nice page from Tomáš: https://github.com/liskin/strava-segments-kml , in the middle, is a button "save the KML file", so I did it. Placed downloaded KML into Locus/mapItems and activated and it works correctly for me as well.

If you use same file like me, maybe your file already lost valid authorization from Strava so suggest to download this file once again.

photo
1

Tomas, awesome: This worked right away and now my mtb-pathfinding is so much more fun!!!

Thanks Tomas!!!

photo
photo
1

with the newest version of locus it isn´t working anymore for me.

when i load the segments.kml

i get a screen: there are no points/tracks for he import. load and show on the map.


yes/no


but there are not segments on the map

photo
1

Just quickly checked the solution provider by Tomáš here and all seems to work correctly with the latest version. So I may only suggest to re-download KML file.

Menion

photo
1

yes, that helped.


but in the past this option was activated all he time when it was once activated

now i have to activate it after every locus start.

photo
1

ah this one .. yes, sorry. Known problem on some devices. Will be fixed in the next version.

photo
1

ok.

thank you

photo
1

This works for a few days.

Then i have time Download The File again. In The past this wasn't necessary

photo
1

Yeah, Strava made some changes to their OAuth a few months ago and I haven't had time to update my code yet. As I'm not using this very often I can't promise that I'll get to it very soon, I'm sorry.

photo
1

hi Tomas, thx for that KMLs! did sb already find a way to show it without redownloading? thanks

photo
1

I know how to do it, just don't have time/motivation. Strava changed how oauth tokens work so access_token is valid only for a limited time and we'd need to use refresh_tokens instead. The library that my code uses doesn't implement refresh tokens, and the author/maintainer of that library no longer uses it, and the same can be said about me and strava-segments-kml: I no longer use it as I don't care that much about segments these days, so it's hard for me to find motivation to spend a weekend fixing this. I'm sorry. :-/

photo
Leave a Comment
 
Attach a file