Hiyas, hopefully some quick questions.
I’ve built my cost matrix from lat,longs - Now I need to setup services.
Service s1 = Service.Builder.newInstance("1").addSizeDimension(0, 1).setLocation(Location.newInstance("1")).build();
Adding a service, newInstance(“1”) is in relation to an ID?
This then correlates to
costMatrixBuilder.addTransportDistance(“ **idFrom** ”, “ **idTo** ”, **distance** ); where the idFrom is “1” ?
So I only need to loop through all idFrom’s I used in the cost matrix and add a service?
Then when building the vrp, can I add all services?
In the examples it has;
Instead I setup the jobs as a collection and pass it via .addVehicle(vehicle).addAllJobs().build();
Is my thinking correct?