I am trying to convert Canadian Postal codes into lat, long coordinates however geopy returns them as either none or somewhere in a different country
postal_code = "A1B 2C3" #<-- in this format
location = geolocator.geocode(postal_code)
print(location.latitude, location.longitude)
Output
AttributeError: 'NoneType' object has no attribute 'latitude'
OR
some random address