|
查了下手册:
设置第三个参数,把timeout设置更大, 是可以解决这个问题的, 如果不行就继续加大这个参数的值
reverse(query, exactly_one=True, timeout=None, distance=None, wkid=4326)
Given a point, find an address.
Parameters:
query (geopy.point.Point, list or tuple of (latitude, longitude), or string as “%(latitude)s, %(longitude)s”.) – The coordinates for which you wish to obtain the closest human-readable addresses.
exactly_one (bool) – Return one result, or a list?
timeout (int) – Time, in seconds, to wait for the geocoding service to respond before raising a geopy.exc.GeocoderTimedOut exception. Set this only if you wish to override, on this call only, the value set during the geocoder’s initialization.
distance (int) – Distance from the query location, in meters, within which to search. ArcGIS has a default of 100 meters, if not specified.
wkid (string) – WKID to use for both input and output coordinates. |
|