GraphHopper.com | Forum | GitHub | Maps | Blog

How to tell whether a shipment is on a vehicle or not


#1

Hello,

is it possible to tell which shipments are on the vehicle and which ones are not?
I want to know which shipments are on the vehicle during the simulation + set some pre-packed shipments on the vehicle as an initial setting.


#2

It’s pretty easy to traverse a given solution and build a map from vehicle to shipments served by it. Just get the job ID for each activity, which will be the ID of the shipment that generated it.


#3

Oh, that was a blind spot for me.
Thank you so much Esteban!