New Features
.OpenCage
: addedannotations
param.
Contributed by mtmail. (#464).Photon
: addedbbox
param.
Contributed by Holger Bruch. (#472)- New geocoder:
.Geocodio
.
Contributed by Jon Duckworth. (#468) - New geocoder:
.HereV7
.
Contributed by Pratheek Rebala. (#433) - New geocoder:
.What3WordsV3
.
Contributed by Saïd Tezel. (#444) - New error class:
.exc.GeocoderRateLimited
. This error extends
.exc.GeocoderQuotaExceeded
and is now raised instead of it
for HTTP 422 error code. (#479) .AdapterHTTPError
: addedheaders
attribute. (#479)
Breaking Changes
- Removed GeocodeFarm class: the service is very unstable. (#445)
Deprecations
.GoogleV3
has been moved fromgeopy.geocoders.googlev3
module
togeopy.geocoders.google
. The old module is still present for
backwards compatibility, but it will be removed in geopy 3. (#483)
Bugfixes
.OpenCage
: improved error handling by using the default errors map
(e.g. to raise.exc.GeocoderQuotaExceeded
instead of
.exc.GeocoderQueryError
for HTTP 402 error). (#479)
Code Improvements
.Photon
: updated domain. Contributed by yrafalin. (#481).IGNFrance
: removed redundant check. Contributed by Miltos. (#469)- Changed default exception type for HTTP code 408: now it is raised as
.exc.GeocoderTimedOut
instead of a more
generic.exc.GeocoderServiceError
. (#479) - :mod:
geopy.exc
: extend more specific built-in exceptions where appropriate:
classes.ConfigurationError
,.GeocoderQueryError
,
.GeocoderNotFound
now extendValueError
;
.GeocoderRateLimited
and.GeocoderUnavailable
extendIOError
;
.GeocoderTimedOut
extendsTimeoutError
. (#484)