0
1377
Install requests python module as follows
$ pip install requests
CODE
import requests
url = 'http://maps.googleapis.com/maps/api/directions/json'
params = dict(
origin='Chicago,IL',
destination='Los+Angeles,CA',
sensor='false'
)
resp = requests.get(url=url, params=params)
data = resp.json()
print('place_id', data['geocoded_waypoints'][0]['place_id'])
Comment here