我正在使用Geopy。对于这段代码,我得到了以下错误。
我使用的是与https://code.google.com/p/geopy/wiki/ReverseGeocoding相同的代码。
有什么建议吗?
我使用的是与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
有什么建议吗?