We are getting loads of errors (Bad Request) from PTV xRoute2 since yesterday evening. This is the error message:
Code: Select all
{
"message": "Unrecognized field \"currency\" (class com.ptvgroup.xserver.profile.RequestProfile), not marked as ignorable (7 known properties: \"clusterPlanningProfile\", \"routingProfile\", \"mapLanguage\", \"vehicleProfile\", \"featureLayerProfile\", \"userLanguage\", \"renderingProfile\"])\n at [Source: (org.apache.cxf.transport.http.AbstractHTTPDestination$1); line: 119, column: 2] (through reference chain: com.ptvgroup.xserver.xroute.RouteRequest[\"requestProfile\"]->com.ptvgroup.xserver.profile.RequestProfile[\"currency\"])",
"errorLine": 119,
"errorColumn": 2,
"faultType": "com.ptvgroup.xserver.exceptions.InvalidRequestFault"
}
Here's a request example:
Code: Select all
{
"resultFields": {
"polyline": true,
"legs": {
"enabled": true,
"polyline": false,
"tollSummary": true
},
"toll": {
"enabled": true,
"sections": true,
"systems": true
},
"eventTypes": [
"TOLL_EVENT",
"COUNTRY_EVENT",
"ROUTE_VIOLATION_EVENT"
],
"segments": {
"enabled": true,
"polyline": true,
"featureThemeIds": [
"PTV_SpeedPatterns",
"PTV_TrafficIncidents"
]
}
},
"geometryOptions": {
"responseGeometryTypes": [
"PLAIN"
]
},
"routeOptions": {
"tollOptions": {
"useDetailedToll": true
},
"timeConsideration": {
"$type": "ExactTimeConsiderationAtStart",
"referenceTime": "2020-09-28T14:06:10+00:00"
}
},
"requestProfile": {
"featureLayerProfile": {
"themes": [
{
"id": "PTV_SpeedPatterns",
"enabled": true
},
{
"id": "PTV_TrafficIncidents",
"enabled": true
}
]
},
"routingProfile": {
"course": {
"toll": {
"tollPenalty": 0
},
"distanceTimeWeighting": 90,
"combinedTransport": {
"boatPenalty": 0
}
}
},
"vehicleProfile": {
"electronicTollCollectionSubscriptions": "NONE",
"engine": {
"emissionTechnology": "SELECTIVE_CATALYTIC_REDUCTION",
"emissionStandardEU": "EURO_EEV"
},
"axle": {
"axleLoad": 15,
"numberOfAxles": 5
},
"dimensions": {
"height": "380",
"heightAboveFrontAxle": 2.9,
"length": "1362",
"width": "255"
},
"weight": {
"emptyWeight": 18,
"loadWeight": 40
}
},
"currency": "EUR"
},
"coordinateFormat": "EPSG:4326",
"waypoints": [
{
"$type": "OffRoadWaypoint",
"location": {
"offRoadCoordinate": {
"x": 10.881190312,
"y": 56.413471194
}
}
},
{
"$type": "OffRoadWaypoint",
"location": {
"offRoadCoordinate": {
"x": 12.857498132,
"y": 56.672267934
}
}
},
{
"$type": "OffRoadWaypoint",
"location": {
"offRoadCoordinate": {
"x": 12.249170269,
"y": 57.107879628
}
}
}
]
}
Thanks,
John