The function will use the latitude and longitude of two locations, and calculate the distance between them in both miles and metric units.