标签: geopy
我正试图通过geopy将地址设置为None,以返回经度和纬度值。
from geopy.geocoders import Nominatim geolocator = Nominatim() addr = None location = geolocator.geocode(addr) print location.latitude, location.longitude
结果
44.933143 7.540121