I am trying to find the distance between multiple addresses in a CSV file. However, when trying to single out the issue, the output returns the same incorrect address no matter when I put in the lat/long, or physical address.
import sys
sys.path.append('C:\Python36\Lib\site-packages')
import google maps
gmaps = googlemaps.Client(key='-')
origins = ['26.650032', '-81.842073']
destinations = ['26.617167', '-81.860763']
JTC = gmaps.distance_matrix('origins'+", Florida", 'destinations'+", Florida", units="imperial")
print(JTC)
{'destination_addresses': ['633 N Orange Ave, Orlando, FL 32801, USA'], 'origin_addresses': ['933 45th St, West Palm Beach, FL 33407, USA'], 'rows': [{'elements': [{'distance': {'text': '167 mi', 'value': 269040}, 'duration': {'text': '2 hours 27 mins', 'value': 8822}, 'status': 'OK'}]}], 'status': 'OK'}
.....
origins = ['3438 Lantana St, 33916, USA']
destinations = ['2560 Kennesaw St, 33901, USA']
JTC = gmaps.distance_matrix('origins'+", Florida", 'destinations'+", Florida", units="imperial")
print(JTC)
{'destination_addresses': ['633 N Orange Ave, Orlando, FL 32801, USA'], 'origin_addresses': ['933 45th St, West Palm Beach, FL 33407, USA'], 'rows': [{'elements': [{'distance': {'text': '167 mi', 'value': 269040}, 'duration': {'text': '2 hours 27 mins', 'value': 8822}, 'status': 'OK'}]}], 'status': 'OK'}
.....
Am I doing something wrong with my code?