Hello.
I would like to know if it is hard to change the VRP code to calculate distance between two locations with google maps API instead of úsing the manhattan distance.
Sorry but my knowledge of Python is really limited.
Í would like to change this to something that would me allow to calculate distance between position_1 and position_2 using googlemaps :
def manhattan_distance(position_1, position_2):
"""Computes the Manhattan distance between two points"""
return (abs(position_1[0] - position_2[0]) +
abs(position_1[1] - position_2[1]))
Thanks!