This release contains a lot of public API cleanup. Also make sure to
check out the updated docs! A new Semver
doc section has been added,
explaining the geopy's policy on breaking changes.
-
ADDED: Nominatim geocoder now supports an
addressdetails
option in
thereverse
method.
Contributed by Serphentas. (#285) -
ADDED: ArcGIS geocoder now supports an
out_fields
option in
thegeocode
method.
Contributed by Jonathan Batchelor. (#227) -
ADDED: Yandex geocoder now supports a
kind
option in the
reverse
method. -
ADDED: Some geocoders were missing
format_string
option. Now all
geocoders support it. -
ADDED:
geopy.distance.lonlat
function for conveniently converting
(x, y, [z])
coordinate tuples to thePoint
instances, which use
(y, x, [z])
.
Contributed by svalee. (#282) -
ADDED:
geopy.geocoders.options
object, which allows to configure
geocoder defaults (such as User-Agent, timeout, format_string)
application-wide. (#288) -
ADDED: Support for supplying a custom SSL context. See docs for
geopy.geocoders.options.default_ssl_context
. (#291) -
ADDED: Baidu geocoder was missing the
exactly_one
option in itsreverse
method. -
ADDED: GeocodeFarm now supports a
scheme
option. -
CHANGED: Baidu and Yandex geocoders now use https scheme by default
instead of http. -
CHANGED: ArcGIS geocoder was updated to use the latest API.
Please note thatLocation.raw
results forgeocode
have changed
a little due to that.
Contributed by Jonathan Batchelor. (#227) -
CHANGED: Explicitly passed
timeout=None
in geocoder calls now
issues a warning. Currently it means "use geocoder's default timeout",
while in geopy 2.0 it would mean "use no timeout". (#288) -
CHANGED: GoogleV3
geocode
call now supportscomponents
without
query
being specified. (#296) -
CHANGED: GeoNames, GoogleV3, IGNFrance, OpenCage and Yandex erroneously
hadexactly_one=False
by default forreverse
methods, which must have
been True. This behavior has been kept, however a warning will be issued
now unlessexactly_one
option is explicitly specified inreverse
calls
for these geocoders. The default value will be changed in geopy 2.0. (#295) -
CHANGED: Point now throws a
ValueError
exception instead of normalizing
latitude and tolerating NaN/inf values for coordinates. (#294) -
CHANGED:
Vincenty
usage now issues a warning.Geodesic
should be used
instead. Vincenty is planned to be removed in geopy 2.0. (#293) -
CHANGED: ArcGIS
wkid
option forreverse
call has been deprecated
because it was never working properly, and it won't, due to
the coordinates normalization in Point. -
FIXED: ArcGIS and What3Words did not respect
exactly_one=False
.
Now they respect it and return a list of a single location in this case. -
FIXED: ArcGIS was throwing an exception on empty response of
reverse
.
NowNone
is returned, as expected. -
FIXED:
GeocodeFarm
was raising an exception on empty response instead
of returningNone
. Contributed by Arthur Pemberton. (#240) -
FIXED:
GeocodeFarm
had missingLocation.address
value sometimes. -
REMOVED:
geopy.geocoders.DEFAULT_*
constants (in favor of
geopy.geocoders.options.default_*
attributes). (#288) -
REMOVED: YahooPlaceFinder geocoder. (#283)
-
REMOVED: GeocoderDotUS geocoder. (#286)