How to implement multiple end location for vehicle

jsprit default vehicle class can only support one end location, and there is a case that the driver would like to go several places, and he want to pickup one of the best cost route finally. I tried to add HardActivityConstraint, and the delivery shipment location which is close to the end locations of the new vehicle, but it doesn’t work. Can anyone give some light on this?