ECSP




Pay Notebook Creator: Haige Cui0
Set Container: Numerical CPU with TINY Memory for 10 Minutes 0
Total0
In [28]:
from geopy import GoogleV3
geocode = GoogleV3('AIzaSyDNqc0tWzXHx_wIp1w75-XTcCk4BSphB5w').geocode 
In [29]:
geocode('128-12 18th Ave., Queens, NY')
Out[29]:
Location(128-12 18th Ave, Flushing, NY 11356, USA, (40.7830768, -73.8398519, 0.0))
In [30]:
# x = geocode('128-12 18th Ave., Queens, NY')
# #geometry = [Point(xy) for xy in zip(x.Longitude, x.Latitude)]
# user_coor= zip(x.Longitude, x.Latitude)
# point(user_coor)
In [36]:
lat=x.latitude
lat
Out[36]:
40.7830768
In [37]:
lon=x.longitude
lon
Out[37]:
-73.8398519
In [33]:
user_coor = x.longitude, x.latitude
user_coor
Out[33]:
(-73.8398519, 40.7830768)
In [34]:
a[0]+10
Out[34]:
-63.8398519
In [ ]: