def moveDist(address, addressPharm): # function to send the drone the distance it needs to fly # also used for return trips deliveryLat = Distance.latitude(address) # converts an address to its latitude equivalent deliveryLong = Distance.longtitude(address) # converts an address to its longitude equivalent pharmcacyLat = Distance.latitude(addressPharm) pharmacyLong = Distance.longitude(addressPharm) flyDist = Distance.conversion(deliveryLat, deliveryLong, pharmcacyLat, pharmacyLong) # conversion finds the distance in miles between two longitudes and latitudes drone.moveForward() time.sleep(Distance.findtime(flyDist, speedofdrone)) # receives the time the drone must move for