public function setDistanceInfo($latitude, $longitude, $podId = null)
    {
        if (isset($this->_distance) || isset($this->_referenceCoordinates) || isset($this->_referencePodId)) {
            throw new PodException("Cannot update the distance info from an existing query.");
        }

        $this->_distance = $this->_data['_paradox_distance_parameter'];
        unset($this->_data['_paradox_distance_parameter']);

        $this->_referenceCoordinates = array('latitude' => $latitude, 'longitude' => $longitude);
        $this->_referencePodId = $podId;
    }
public function setDistanceInfo($latitude, $longitude, $podId = null)
    {
        if (isset($this->_distance) || isset($this->_referenceCoordinates) || isset($this->_referencePodId)) {
            throw new PodException("Cannot update the distance info from an existing query.");
        }

        $this->_distance = $this->_data['_paradox_distance_parameter'];
        unset($this->_data['_paradox_distance_parameter']);

        $this->_referenceCoordinates = array('latitude' => $latitude, 'longitude' => $longitude);
        $this->_referencePodId = $podId;
    }
public function setDistanceInfo ( $ latitude , $ longitude , $ podId = null ) { if ( isset ( $ this -> _distance ) || isset ( $ this -> _referenceCoordinates ) || isset ( $ this -> _referencePodId ) ) { throw new PodException ( "Cannot update the distance info from an existing query." ) ; } $ this -> _distance = $ this -> _data [ '_paradox_distance_parameter' ] ; unset ( $ this -> _data [ '_paradox_distance_parameter' ] ) ; $ this -> _referenceCoordinates = array ( 'latitude' => $ latitude , 'longitude' => $ longitude ) ; $ this -> _referencePodId = $ podId ; }
Sets the distance information to the pod. This is intended to be used by the API and is not for public comsumption.
@param  float        $distance  The distance from this pod to the reference pod in meters.
@param  float        $latitude  The latitude of the reference point.
@param  float        $longitude The longitude of the reference point.
@param  string       $podId     If the reference point is a pod, the pod id.
@throws PodException
Sets the distance information to the pod . This is intended to be used by the API and is not for public comsumption .