GeoCoder v4.0.0 Release Notes

Release Date: 2017-08-01 // over 6 years ago
    • ⬇️ Dropped support for PHP < 7
    • Introduced GeocodeQuery and ReverseQuery.
    • ⚡️ Provider and Geocoder 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 at Geocoder\Provider\BingMaps\BingMaps
    • ➕ Added: Interface for Geocoder\Model\AddressCollection called Geocoder\Collection. Public APIs are updated to type hint for Geocoder\GeocoderResult.
    • ➕ Added: Interface for Geocoder\Model\Address called Geocoder\Location. Public APIs are updated to type hint for Geocoder\Location.
    • ➕ Added: GeoArray dumper
    • ➕ Added: Collection::isEmpty
    • 🔄 Changed: Location::getCoordinates will return null or a Coordinates object with coordinates data. It will never return Coordinates without data.
    • 🔄 Changed: Location::getBounds will return null or a Bounds object with coordinates data. It will never return Bounds 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 for AdminLevel::__toString.
    • ✂ Removed: Country::toString in favor for Country::__toString.
    • ✂ Removed: Address::getCountryCode in favor for Address::getCountry()->getCode().
    • ✂ Removed: Address::getLongitude in favor for Address::getCoordinates()->getLongitude().
    • ✂ Removed: Address::getLatitude in favor for Address::getCoordinates()->getLatitude().
    • ✂ Removed: Bounds::isDefined as it is always defined.
    • ✂ Removed: The following exception was removed: ZeroResults, ChainZeroResults, HttpError, UnexpectedValue