pypi geopy 2.2.0

latest releases: 2.4.1, 2.4.0, 2.3.0...
2 years ago

New Features

  • .OpenCage: added annotations param.
    Contributed by mtmail. (#464)
  • .Photon: added bbox 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: added headers attribute. (#479)

Breaking Changes

  • Removed GeocodeFarm class: the service is very unstable. (#445)

Deprecations

  • .GoogleV3 has been moved from geopy.geocoders.googlev3 module
    to geopy.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 extend ValueError;
    .GeocoderRateLimited and .GeocoderUnavailable
    extend IOError;
    .GeocoderTimedOut extends TimeoutError. (#484)

Docs Improvements

  • Be more explicit in lat lon ordering.
    Contributed by Mateusz Konieczny. (#476)
  • Added tests for geocoders' signatures (to ensure that all parameters
    are documented) and fixed docstrings which didn't pass them. (#480)
  • Added docs for .Distance class
    and :meth:.Distance.destination method (#473)

Don't miss a new geopy release

NewReleases is sending notifications on new releases.