League\Geotools\Coordinate\Coordinate::getLongitude PHP Method

getLongitude() public method

{@inheritDoc}
public getLongitude ( )
    public function getLongitude()
    {
        return $this->longitude;
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * Returns a new Longitude object
  *
  * @param $value
  * @throws InvalidNativeArgumentException
  */
 public function __construct($value)
 {
     $value = \filter_var($value, FILTER_VALIDATE_FLOAT);
     if (false === $value) {
         throw new InvalidNativeArgumentException($value, array('float'));
     }
     // normalization process through Coordinate object
     $coordinate = new BaseCoordinate(array(0, $value));
     $longitude = $coordinate->getLongitude();
     $this->value = $longitude;
 }
All Usage Examples Of League\Geotools\Coordinate\Coordinate::getLongitude