I am trying to get a Vehicle Routing Problem to work as a geoprocessing service on one of our servers.
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}
}
]
}
Sat Jan 17 1970 05:57:00 GMT+1000 (EST)
andSat Jan 17 1970 05:57:28 GMT+1000 (EST)
, I wouldn't expect that you would get any data back. Try the bounds of(-8640000000000000, 8640000000000000)
instead.