In [8]:
    
from geopy.geocoders import Nominatim
import pandas as pd
import connect_aws_db as cadb
    
In [3]:
    
engine = cadb.connect_aws_db(write_unicode=True)
    
In [9]:
    
geolocator = Nominatim()
    
In [10]:
    
location = geolocator.geocode("175 5th Ave NYC")
    
In [11]:
    
location.address
    
    Out[11]:
In [12]:
    
print(location.latitude, location.longitude)
    
    
In [13]:
    
location = geolocator.geocode("260 Whitney Ave, New Haven, CT")
    
In [14]:
    
print(location.address)
print(location.latitude, location.longitude)
    
    
In [17]:
    
location = geolocator.geocode("555 San Antonio Rd Mountain View, CA")
print(location.address)
print(location.latitude, location.longitude)
    
    
In [18]:
    
location = geolocator.geocode("Row NYC Hotel New York City, NY")
print(location.address)
print(location.latitude, location.longitude)
    
    
In [19]:
    
from geopy.geocoders import GoogleV3
    
In [20]:
    
ggeolocator = GoogleV3()
    
In [21]:
    
location = ggeolocator.geocode("Row NYC Hotel New York City, NY")
print(location.address)
print(location.latitude, location.longitude)
    
    
In [22]:
    
location = ggeolocator.geocode("Hilton Garden Inn Times Square")
print(location.address)
print(location.latitude, location.longitude)
    
    
In [ ]: