Color of the Track depending on Speed

Use this forum to discuss your feature requests.
Post Reply
breenild
Posts: 5
Joined: Tue Jun 10, 2014 7:36 pm

Color of the Track depending on Speed

Post by breenild »

I would like to suggest, that the Track can be paint in different colours depending of the driven speed.
For example: blue for very slow, green is faster, yellow more fast, red is very fast and lila is the fastest. (like the rainbow)

Perhaps this feature should be able to deactivate, if someone don't like.
Perhaps the speed-Range should be configurable. If someone drive with the car needs other limits, than one, who only drive bicycle.

It will be awesome, if you can built in this Idea :)

Greets
Burkhard
admin
Site Admin
Posts: 3130
Joined: Tue Feb 06, 2007 12:36 pm

Re: Color of the Track depending on Speed

Post by admin »

Hi,
I'm not sure if it's that easy. Maybe this will be an optional feature. By default the colours should be solid to make distinction easier.
breenild
Posts: 5
Joined: Tue Jun 10, 2014 7:36 pm

Re: Color of the Track depending on Speed

Post by breenild »

This would be great!

I think it cannot be so difficult, to translate the speed in RGB-Values to draw the track.

Perhaps you easy can do so:

percent = actual_speed / configurated_max_speed * 100
if percent > 100 then percent = 100

select case percent
when 0 to 20 then set color = blue
when 20,1 to 40 then set color = green
when 40,1 to 60 then set color = orange
when 60,1 to 80 then set color = red
when 80,1 to 100 then set color = violett

or something like this :)
admin
Site Admin
Posts: 3130
Joined: Tue Feb 06, 2007 12:36 pm

Re: Color of the Track depending on Speed

Post by admin »

The problem is that the single segments are not drawn separately. Instead the whole track is passed to the Google Maps library which cares about drawing. I have to check if different colors in the same track are supported by this library.
breenild
Posts: 5
Joined: Tue Jun 10, 2014 7:36 pm

Re: Color of the Track depending on Speed

Post by breenild »

Today I found by random this picture here:
https://lh4.ggpht.com/kiGdte4ltl6McCP1v ... wXayQ=h900

This seems, google is able to paint tracks in multiple colors.... :o
admin
Site Admin
Posts: 3130
Joined: Tue Feb 06, 2007 12:36 pm

Re: Color of the Track depending on Speed

Post by admin »

The image looks as if the developer has added many tiny tracks comprising only a few track points. The Greenalp tracks uses one large track to display the trackpoints (looks smoother).
admin
Site Admin
Posts: 3130
Joined: Tue Feb 06, 2007 12:36 pm

Re: Color of the Track depending on Speed

Post by admin »

Btw, please note that the website also supports displaying a track profile displaying speed and elevation.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 46 guests