xs2 storedProfile truck7_5t is missing

This forum deals with any kind of routing computation whether it is simple A:B-routing, calculation of isochrones, simple matrix computation or nearest search.
Post Reply
Eratosthenes
Posts: 6
Joined: Wed Sep 02, 2015 8:09 am

xs2 storedProfile truck7_5t is missing

Post 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?
User avatar
Bernd Welter
Site Admin
Posts: 2574
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: xs2 storedProfile truck7_5t is missing

Post 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
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany

Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning... :twisted:
Eratosthenes
Posts: 6
Joined: Wed Sep 02, 2015 8:09 am

Re: xs2 storedProfile truck7_5t is missing

Post by Eratosthenes »

Awesome!
Thanks
Post Reply