GeoCoder v4.0.0 Release Notes
Release Date: 2017-08-01 // over 6 years ago-
- ⬇️ Dropped support for PHP < 7
- Introduced
GeocodeQuery
andReverseQuery
. - ⚡️
Provider
andGeocoder
interfaces has been updated to use query objects - All providers are stateless and immutable.
- Moved all providers to new namespaces. Previous
Geocoder\Provider\BingMaps
is now located atGeocoder\Provider\BingMaps\BingMaps
- ➕ Added: Interface for
Geocoder\Model\AddressCollection
calledGeocoder\Collection
. Public APIs are updated to type hint forGeocoder\GeocoderResult
. - ➕ Added: Interface for
Geocoder\Model\Address
calledGeocoder\Location
. Public APIs are updated to type hint forGeocoder\Location
. - ➕ Added: GeoArray dumper
- ➕ Added:
Collection::isEmpty
- 🔄 Changed:
Location::getCoordinates
will return null or aCoordinates
object with coordinates data. It will never returnCoordinates
without data. - 🔄 Changed:
Location::getBounds
will return null or aBounds
object with coordinates data. It will never returnBounds
without data. - 🔄 Changed: Support for unsecure transfer protocol was removed. The providers only support HTTPS.
- 🔄 Changed: Using PSR-4 instead of PSR-0 for autoloading.
- 🛠 Fixed: ArcGISOnline's street address should not contain city and country.
- ✂ Removed:
AdminLevel::toString
in favor forAdminLevel::__toString
. - ✂ Removed:
Country::toString
in favor forCountry::__toString
. - ✂ Removed:
Address::getCountryCode
in favor forAddress::getCountry()->getCode()
. - ✂ Removed:
Address::getLongitude
in favor forAddress::getCoordinates()->getLongitude()
. - ✂ Removed:
Address::getLatitude
in favor forAddress::getCoordinates()->getLatitude()
. - ✂ Removed:
Bounds::isDefined
as it is always defined. - ✂ Removed: The following exception was removed:
ZeroResults
,ChainZeroResults
,HttpError
,UnexpectedValue