Edit 1:
- Added "TimeWindowStart1" and "TimeWindowEnd1" to depot in UTC
Now, the date returned is the correct date but its started at 8.00am.
According to the documentation,
"EarliestStartTime" & "LatestStartTime"
cannot be null on the routes. If its null, "EarliestStartTime" will default to 8.00AM and "LatestStartTime" will default to 10.00AM.
However, regardless of whether I pass in as EPOCH time or UTC time or just time for both that parameters (11.00am), the result still shows at 8.xxAM
*weird
===============================================================================================================
Hi.
This is in regards to VRPS (Vehicle Routing Problem Service)
I am not clear if its something that I have done incorrectly but here goes:
On (https://logistics.arcgis.com/arcgis/rest/services/World/VehicleRoutingProblem/GPServer/SolveVehicleRoutingProblem/submit… ), the following is some of my POST request body param:
default_date: Time.now.to_i, (ruby in seconds)
time_units: 'Seconds',
distance_units: 'Meters'
depot: (total number of depots entered: 1)
{
"features": [
{
"geometry": {
"x": 103.963887,
"y": 1.334828
},
"attributes": {
"Name": "ABC"
"TimeWindowStart1": "Time in UTC"
"TimeWindowEnd1": "Time in UTC"
}
}
]
}
orders: (total number of orders entered = 21, all with the same structure as below)
{
"features": [
{
"geometry": {
"x": 103.947531,
"y": 1.356423
},
"attributes": {
"Name": "location_one"
}
}, {...}, ...
]
}
route: (total number of routes entered = 8, all with the same structure as below)
{
"features": [
{
"attributes": {
"Name": "vehicle_one",
"StartDepotName": "ABC",
"EarliestStartTime": 1453604400, (24 Jan 2016, 11am - local time)
"LatestStartTime": 1453604400
}
}, {...},...
]
}
In the response:
output orders:
- value.features.attributes.Name = "location_one"
- value.features.attributes.ArriveTime = <SPAN class="hljs-value"><SPAN class="hljs-value"><SPAN class="hljs-number">1454185449 (31st January 2016, 4.24pm - it takes > 1 day to reach here but in actual fact, it takes less than 30 minutes to reach this location from the starting depot location or less than 1 day to reach from anywhere within the country)</SPAN></SPAN></SPAN>
However, for output routes's "TotalTravelTime": <SPAN class="hljs-value"><SPAN class="hljs-value"><SPAN class="hljs-number">1355.3337866440415 seconds (assuming its seconds cause thats what I passed in) which equates to about 22 minutes</SPAN></SPAN></SPAN>
Weird.
*Totally have no clue
Would appreciate if anyone could provide a solution to my problem (or even a clue/hint) 