src/Geolocation.php
public function getCoordinatesByObject(AddressInterface $address) : CoordinatesInterface
    {
        $url = $this->addressQuery($address->getFormattedAddress());
        $json = $this->fetchUrl($url);

        // convert google data to coordinates
        $coordinates = CoordinatesBuild::create($json->results[0]);

        return $coordinates;
    }
public function getCoordinatesByObject(AddressInterface $address) : CoordinatesInterface
    {
        $url = $this->addressQuery($address->getFormattedAddress());
        $json = $this->fetchUrl($url);

        // convert google data to coordinates
        $coordinates = CoordinatesBuild::create($json->results[0]);

        return $coordinates;
    }
public function getCoordinatesByObject ( AddressInterface $ address ) : CoordinatesInterface { $ url = $ this -> addressQuery ( $ address -> getFormattedAddress ( ) ) ; $ json = $ this -> fetchUrl ( $ url ) ; // convert google data to coordinates $ coordinates = CoordinatesBuild :: create ( $ json -> results [ 0 ] ) ; return $ coordinates ; }
Get coordinates using AddressInterface

@param AddressInterface $address
@return CoordinatesInterface
Get coordinates using AddressInterface