This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

How does one identify GPX speed in JOSM?

0

I haven't been able to locate a speed key for JOSM's color coding when using "Car" mode for coloring GPX tracks by speed. Where can I find what color corresponds to what speed?

asked 08 Jan '12, 07:51

Baloo%20Uriza's gravatar image

Baloo Uriza
3.2k143061
accept rate: 9%

Rationale: I'm looking to update the "maxspeed" rendering style for JOSM to support the full range of US speed limits, and to get color consistency with GPX rendering.

(08 Jan '12, 07:52) Baloo Uriza

One Answer:

2

You find the relevant section of code here.

The default color is HSB((v / 45 * 300), 1, 1) where v is the speed in m/s.

answered 08 Jan '12, 08:30

Gnonthgol's gravatar image

Gnonthgol ♦
13.8k16103198
accept rate: 16%

edited 17 Jan '12, 04:50

Baloo%20Uriza's gravatar image

Baloo Uriza
3.2k143061

Hmm, could I get an example of how to calculate that? I definitely appreciate the comprehensive answer, but not sure how to use it.

(09 Jan '12, 14:52) Baloo Uriza
3

OK, I stumbled into what the HSB is by accident. For others trying to find how to figure this out, it's at http://www.tomjewett.com/colors/hsb.html

(17 Jan '12, 04:28) Baloo Uriza
1

The last referenced URL seems to be down now, the most recent internet archive link is https://web.archive.org/web/20190407225549/http://www.tomjewett.com/colors/hsb.html .

(16 Oct '20, 17:32) Richlv

Source code available on GitHub .