3

我在网上找到了这段代码,但它对我不起作用:

from geopy import geocoders

    g = geocoders.GeoNames(username="myusersname")
    (place, point) = g.geocode("Palo Alto, CA 94306")
    print place

    print point


    (new_place,new_point) = g.reverse(point)
    print new_place

    print new_point

错误:

   raise GeocoderTimedOut('Service timed out')
geopy.exc.GeocoderTimedOut: Service timed out
4

0 回答 0