ncaspari

Vehicle Routing Problem via REST - Problem with times

Discussion created by ncaspari on May 8, 2013
Latest reply on May 29, 2013 by mcrowder-esristaff
I am trying to get a Vehicle Routing Problem to work as a geoprocessing service on one of our servers.
http://arcgisserver01.cloud.alta4.com:6080/arcgis/rest/services/koop_uni_fh_trier/TrierApp/GPServer/SolveVRP

If I call the geoprocessing service via REST url and submit depots, orders and routes WITHOUT time information, output stops are returned. As soon as I also submit time information (TimeWindowStart1 etc.), no output stops are returned.

I have tried different time formats: "10:00:00", "10:00 AM", Unix Timestamp (with and without the "), but no success.

Before I publish the service, the VRP works on my ArcGIS Desktop with times.

Our ArcGIS Server configuration: ArcGIS Server 10.1.1 with Security Patch 1, System: Red Hat Enterprise Linux 6.3, 64 bit

Here's one of the REST commands that I tried. Can anyone spot a mistake?

http://arcgisserver01.cloud.alta4.com:6080/arcgis/rest/services/koop_uni_fh_trier/TrierApp/GPServer/SolveVRP/submitJob?
orders={
 "displayFieldName": "POIs",
 "geometryType": "esriGeometryPoint",
 "spatialReference": {
  "wkid": 3857,
  "latestWkid": 3857
 },
 "features":[
 {
 "attributes":{
  "Name":"POI1", 
  "TimeWindowStart1": 1367820000,
  "TimeWindowEnd1": 1367848800,
  "MaxViolationTime1":0,
  "ServiceTime":10
 },
 "geometry":{"x":739116,"y":6404262.603}
 },
 {
 "attributes":{
  "Name":"POI2",
  "TimeWindowStart1": 1367820000,
  "TimeWindowEnd1": 1367848800,
  "MaxViolationTime1":0,
  "ServiceTime":10
 },
 "geometry":{"x":739216,"y":6404262.603}
 }
 ]
}
&routes={
 "displayFieldName": "Route",
 "features": [
 {
 "attributes":{
  "Name":"myRoute", 
  "StartDepotName":"myStartPoint", 
  "EndDepotName":"myEndPoint",
  "EarliestStartTime": 1367820000,
  "LatestStartTime": 1367820000,
  "MaxOrderCount": 30
 }
 }
 ],
 "exceededTransferLimit": false
}
&depots={
 "displayFieldName": "Start- and Endpoint",
 "geometryType": "esriGeometryPoint",
 "spatialReference": {
  "wkid": 3857,
  "latestWkid": 3857
 },
 "features": [
 {
 "attributes":{
  "Name":"myStartPoint"
 },
 "geometry":{"x":739612,"y":6404755}
 },
  {
 "attributes":{
  "Name":"myEndPoint"
 },
 "geometry":{"x":739612,"y":6404755}
 }
 ]
}

Outcomes