Elastica\Query\AbstractGeoDistance::setLongitude PHP Method

setLongitude() public method

public setLongitude ( float $longitude )
$longitude float
    public function setLongitude($longitude)
    {
        $this->_longitude = (double) $longitude;
        $this->_locationType = self::LOCATION_TYPE_LATLON;
        return $this;
    }