[Not a bug] Run threshold_pace units

Hi Team,

I’ve picked up an issue in the API for Athlete profile under Run profile. Currently the UI reports.

Threshold pace “##.##” and Units “per_km”;

In the API you return Units MINS_KM but the actual threshold_pace is stored in “Meters Per Sec”. I’m having to artificially fix it right now after I get the data, but source is really the issue. Otherwise, I’m reporting Olympic qualifying times for many :wink:

"hr_load_type": "HRSS",
      "hrrc_min_percent": 100,
      "threshold_pace": 3.5714285,
      "pace_units": "MINS_KM",
      "pace_zones": [
        77.5,
        87.7,
        94.3,
        100,
        103.4,
        111.5,
        999
      ],

Clive

Data is always stored in SI units (so m/s in this case). The “MINS_KM” is only the GUI settings, so that the client (you) know, how to convert it to the correct user setting.

Correct but the units state MINS_KM in API response. That’s the issue.

As I said, it’s the display setting. So your users don’t have to set these settings in third party apps. But all apps have to convert it by themself.

Thanks, R2Tom - I understand its reflecting UI but it sure is misleading, that the units given in API therefore have nothing to do with the actual value stored :wink:

I understand it’s misleading in this case, because it’s in the response of the same dat type.

But it’s also the case for all other metrics. You don’t get speed in mph or km/h, but in m/s, regardless of the setting set to imperial or metric units.

1 Like

Thanks for the quick response - you can close this thread. I’ve fixed in the app in any case. This is the only issue ive seen when representing the data values so far.

1 Like