1
0
Fork 0
mirror of https://github.com/graphhopper/jsprit.git synced 2020-01-24 07:45:05 +01:00

test json stuff

This commit is contained in:
oblonski 2014-12-04 12:56:15 +01:00
parent 4883223541
commit e742231c5f
9 changed files with 357 additions and 13 deletions

View file

@ -0,0 +1,85 @@
{
"meta-info" : {
"distance-unit" : "m",
"time-unit" : "sec"
},
"vrp" : {
"fleet_size" : "FINITE",
"vehicles" : [ {
"id" : "v1",
"start_address" : {
"id" : "startLoc",
"lon" : 0.0,
"lat" : 0.0
},
"return_to_depot" : true,
"end_address" : {
"id" : "endLoc",
"lon" : 12.0,
"lat" : 13.0
},
"earliest_start" : 0.0,
"latest_end" : 1000.0,
"type_id" : "small",
"skills" : [ "screw-driver" ]
}, {
"id" : "v2",
"start_address" : {
"id" : "startLoc",
"lon" : 0.0,
"lat" : 0.0
},
"return_to_depot" : false,
"earliest_start" : 0.0,
"latest_end" : 1.7976931348623157E308,
"type_id" : "medium",
"skills" : [ "joo" ]
} ],
"vehicle_types" : [ {
"id" : "medium",
"capacity" : [ 1000, 4000 ],
"fixed_costs" : 1000.0,
"distance_dependent_costs" : 1.0,
"time_dependent_costs" : 200.0
}, {
"id" : "small",
"capacity" : [ 100, 400 ],
"fixed_costs" : 0.0,
"distance_dependent_costs" : 1.0,
"time_dependent_costs" : 20.0
} ],
"services" : [ {
"id" : "s1",
"type" : "service",
"name" : "no-name",
"address" : {
"id" : "s1_loc",
"lon" : 40.0,
"lat" : 10.0
},
"service_duration" : 1.0,
"time_window" : {
"start" : 0.0,
"end" : 1.7976931348623157E308
},
"size" : [ 20, 40 ],
"required_skills" : [ "joo-foo" ]
}, {
"id" : "pickup2",
"type" : "pickup",
"name" : "no-name",
"address" : {
"id" : "s2_loc",
"lon" : 40.0,
"lat" : 10.0
},
"service_duration" : 2.0,
"time_window" : {
"start" : 10.0,
"end" : 200.0
},
"size" : [ 10, 30 ],
"required_skills" : [ "screw-driver" ]
} ]
}
}