Page 1 of 1

xs2 storedProfile truck7_5t is missing

Posted: Thu Feb 03, 2022 9:14 am
by Eratosthenes
We are using your xServer2 online apis.
Now we have noticed that the " truck7_5t" profile cannot be found for route calculations.
All other "storedProfile" like car, truck40t or truck11_99t are available and working fine.
Just the truck7_5t profile is missing.
For example:

Code: Select all

{
  "storedProfile":"truck7_5t",
  "waypoints": [
    {
      "$type": "OffRoadWaypoint",
      "location": {
        "offRoadCoordinate": {
          "x": 6.22029,
          "y": 49.61513
        }
      }
    },
    {
      "$type": "OffRoadWaypoint",
      "location": {
        "offRoadCoordinate": {
          "x": 6.06479,
          "y": 49.62127
        }
      }
    }
  ],
  "resultFields": {
    "polyline": true
  }
}
running at: https://xserver2-europe.cloud.ptvgroup. ... culateRout
Will return a "Bad Request"


What is the problem/solution here?

Re: xs2 storedProfile truck7_5t is missing

Posted: Thu Feb 03, 2022 9:44 am
by Bernd Welter
Hello Eratosthenes,

Try "truck7_49t" ;-)

Code: Select all

{
  "storedProfile":"truck7_49t",
  "waypoints": [
    {
      "$type": "OffRoadWaypoint",
      "location": {
        "offRoadCoordinate": {
          "x": 6.22029,
          "y": 49.61513
        }
      }
    },
    {
      "$type": "OffRoadWaypoint",
      "location": {
        "offRoadCoordinate": {
          "x": 6.06479,
          "y": 49.62127
        }
      }
    }
  ],
  "resultFields": {
    "polyline": true
  }
}
returns a proper result. You can gather the available profiles within the configuration files or via an xRuntime call.

Best regards,
Bernd

Re: xs2 storedProfile truck7_5t is missing

Posted: Thu Feb 03, 2022 2:43 pm
by Eratosthenes
Awesome!
Thanks