4
我正在使用Geopy。代碼中出現以下錯誤。反向地理編碼的地理錯誤
我都使用相同的代碼作爲https://code.google.com/p/geopy/wiki/ReverseGeocoding
from geopy import geocoders
g = geocoders.GeoNames()
(place, point) = g.geocode("Palo Alto, CA 94306")
print place
>> "Palo Alto, US 94306"
print point
>> (37.418008999999998, -122.127375)
(new_place,new_point) = g.reverse(point)
print new_place
>> 3998 Ventura Ct, Palo Alto, US 94306
print new_point
>> (37.417850000000001, -122.12793000000001)
工作得很好,直到打印點。發生錯誤g.reverse(point)
Traceback (most recent call last):
File "<interactive input>", line 1, in <module>
File "C:\Python27\lib\site-packages\geopy\geocoders\base.py", line 9, in reverse
raise NotImplementedError
NotImplementedError
有什麼建議嗎?
也被張貼在gis.se:http://gis.stackexchange.com/questions/59216/geopy-error-with-reverse-geocoding – 2013-05-08 15:08:27