League\Geotools\Coordinate\Coordinate::getLatitude PHP Method

getLatitude() public method

{@inheritDoc}
public getLatitude ( )
    public function getLatitude()
    {
        return $this->latitude;
    }

Usage Example

Example #1
0
 /**
  * Returns a new Latitude 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($value, 0));
     $latitude = $coordinate->getLatitude();
     $this->value = $latitude;
 }
All Usage Examples Of League\Geotools\Coordinate\Coordinate::getLatitude