Skip to content

Commit

Permalink
Fix: no start_point in vehicle
Browse files Browse the repository at this point in the history
  • Loading branch information
senhalil committed Sep 24, 2020
1 parent fde14ca commit c4ada55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/interpreters/split_clustering.rb
Original file line number Diff line number Diff line change
Expand Up @@ -510,8 +510,8 @@ def self.collect_cluster_data(vrp, nb_clusters)
v_id: [vehicle.id],
days: compute_day_skills(tw),
depot: {
coordinates: [vehicle.start_point.location.lat, vehicle.start_point.location.lon],
matrix_index: vehicle.start_point.matrix_index
coordinates: [vehicle.start_point&.location&.lat, vehicle.start_point&.location&.lon],
matrix_index: vehicle.start_point&.matrix_index
},
capacities: capacities,
skills: vehicle.skills.flatten.uniq, # TODO : improve case with alternative skills. Current implementation collects all skill sets into one
Expand Down

0 comments on commit c4ada55

Please sign in to comment.