Traildiffculty not explained?

Hey,
I want to use extra infos for trail difficulty.
API provides following values as output.
For Example:

object(stdClass)#9 (2) {
  ["values"]=>
  array(4) {
    [0]=>
    array(3) {
      [0]=>
      int(0)
      [1]=>
      int(1)
      [2]=>
      int(2)
    }
    [1]=>
    array(3) {
      [0]=>
      int(1)
      [1]=>
      int(2)
      [2]=>
      int(0)
    }
    [2]=>
    array(3) {
      [0]=>
      int(2)
      [1]=>
      int(58)
      [2]=>
      int(3)
    }
    [3]=>
    array(3) {
      [0]=>
      int(58)
      [1]=>
      int(118)
      [2]=>
      int(4)
    }
  }
  ["summary"]=>
  array(4) {
    [0]=>
    object(stdClass)#10 (3) {
      ["value"]=>
      float(3)
      ["distance"]=>
      float(681.3)
      ["amount"]=>
      float(54.58)
    }
    [1]=>
    object(stdClass)#11 (3) {
      ["value"]=>
      float(4)
      ["distance"]=>
      float(556.3)
      ["amount"]=>
      float(44.57)
    }
    [2]=>
    object(stdClass)#12 (3) {
      ["value"]=>
      float(0)
      ["distance"]=>
      float(5.3)
      ["amount"]=>
      float(0.43)
    }
    [3]=>
    object(stdClass)#13 (3) {
      ["value"]=>
      float(2)
      ["distance"]=>
      float(5.2)
      ["amount"]=>
      float(0.42)
    }
  }
}

But i can not find any explainations to this values?
It can not be 1-6 for T1-T6, because some values are 58 or 118 for example.

Hey Tom,

extra info can indeed be a little tricky to read, sorry for that :wink:
Here’s an explanation of the numbers returned:

Here is the link to the documentation explaining the encoding for ease of use :slight_smile:
https://github.com/GIScience/openrouteservice-docs#trail-difficulty

Best regards,
Jakob

Ah, thanks for your answer.
I figured it out out by playing around with the classic map.
Classic map offers trail difficulty in the options, which the new map does not offer.
What T1-T6 means i did knew before and found it before my question.
Btw: API Playground offers the option for traildifficulty but response is always empty.

Hey,
great to hear :slight_smile:

I have opened an issue regarding trail difficulty not being an option, so the feature is at least requested :slight_smile:

Could you provide the request that you sent in the playground that gives an empty response for trail difficulty?

Best regards,
Jakob

Would be nice to have traildifficulty in new map too!

Sorry, was my fault. In Playground traildifficulty is correct!

Hey. The new map client already supports traildifficulty. Check the maps.openrouteservice.org/#/settings/ Map view and extra information

1 Like