public function getCoordinatesByString(string $address) : CoordinatesInterface
    {
        $url = $this->addressQuery($address);
        $json = $this->fetchUrl($url);

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

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

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

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

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