Retrieve the longitude from the object's longitude property.

@return float|null
337952
public function lng()
    {
        if ($this->lng !== null) {
            return $this->lng;
        }

        if (!$this->hasObj() || !$this->lngProperty()) {
            return null;
        }

        return $this->obj()[$this->lngProperty()];
    }
1020205
public function latitude(): float
    {
        if (preg_match('/\n4 LATI (.+)/', $this->gedcom, $match)) {
            $gedcom_service = new GedcomService();

            return $gedcom_service->readLatitude($match[1]);
        }

        return 0.0;
    }
443219
public function getFloatPath()
    {
        if ($this->startsWith($this->path, '0'))
            return (float) ('0.'.substr($this->path, 1));
        return (float) $this->path;
    }
1237270
public function parsedVal()
    {
        if (!isset($this->parsedVal[$this->lang()])) {
            $val = $this->propertyVal();

            if ($val === null) {
                return null;
            }
            $val = $this->p()->parseVal($val);

            // Could be Translation instance
            // Could be array
            if (isset($val[$this->lang()])) {
                $val = $val[$this->lang()];
            }

            // Doing this in the parseVal method of abstract property
            // was causing multiple && l10n properties not to save.
            if (!is_array($val) && $this->p()->multiple()) {
                $val = explode($this->p()->multipleSeparator(), $val);
            }

            $this->parsedVal[$this->lang()] = $val;
        }
        return $this->parsedVal[$this->lang()];
    }
1318022
public function getCustomPropertyValue()
	{
		if (!is_array($this->_aCustomProperties)) {
			return;
		}
		$aKeys = array_keys($this->_aCustomProperties);
		return $this->_aCustomProperties[$aKeys[0]];
	}
117097
public function getVideoGeoLocation()
    {
        if ($this->getWhere() != null &&
            $this->getWhere()->getPoint() != null &&
            ($position = $this->getWhere()->getPoint()->getPos()) != null) {

            $positionString = $position->__toString();

            if (strlen(trim($positionString)) > 0) {
                $positionArray = explode(' ', trim($positionString));
                if (count($positionArray) == 2) {
                    $returnArray = array();
                    $returnArray['latitude'] = $positionArray[0];
                    $returnArray['longitude'] = $positionArray[1];
                    return $returnArray;
                }
            }
        }
        return null;
    }
1367683
@Nullable
    public GeoLocation getGeoLocation()
    {
        Rational[] latitudes = getRationalArray(TAG_LATITUDE);
        Rational[] longitudes = getRationalArray(TAG_LONGITUDE);
        String latitudeRef = getString(TAG_LATITUDE_REF);
        String longitudeRef = getString(TAG_LONGITUDE_REF);

        // Make sure we have the required values
        if (latitudes == null || latitudes.length != 3)
            return null;
        if (longitudes == null || longitudes.length != 3)
            return null;
        if (latitudeRef == null || longitudeRef == null)
            return null;

        Double lat = GeoLocation.degreesMinutesSecondsToDecimal(latitudes[0], latitudes[1], latitudes[2], latitudeRef.equalsIgnoreCase("S"));
        Double lon = GeoLocation.degreesMinutesSecondsToDecimal(longitudes[0], longitudes[1], longitudes[2], longitudeRef.equalsIgnoreCase("W"));

        // This can return null, in cases where the conversion was not possible
        if (lat == null || lon == null)
            return null;

        return new GeoLocation(lat, lon);
    }
1362081
public function getCenterOfBounds()
    {
        return (null !== $this->bounds && $this->bounds instanceof LatLngBounds)
            ? $this->bounds->getCenterCoordinates()
            : null;
    }
7362
public function getBoundingBox()
    {
        return array(
            new Coordinate(array(
                $this->latitudeInterval[0],
                $this->longitudeInterval[0]
            )),
            new Coordinate(array(
                $this->latitudeInterval[1],
                $this->longitudeInterval[1]
            ))
        );
    }
1254369
public function getPrevious()
    {
        $pos = $this->getPosition();
        if ($pos == 0) {
            return null;
        } else {
            $this->getInternalIterator()->seek($pos - 1);

            return $this->getCurrent();
        }
    }
1308188
public function getCurrencyNumeric()
    {
        $currency = Currency::find($this->getCurrency());

        return $currency ? $currency->getNumeric() : null;
    }
624970
public function lat()
    {
        if ($this->lat !== null) {
            return $this->lat;
        }

        if (!$this->hasObj() || !$this->latProperty()) {
            return null;
        }

        return $this->obj()[$this->latProperty()];
    }
746913
public function getValue()
	{
		$value = parent::getValue();
		if ($value instanceof \DateTime) {
			$value->setTime(0, 0, 0);
			return $value;
		}
		return $value;
	}
804206
public function duration(): ?float
    {
        $endTime = $this->call->endTime();

        if (null === $endTime) {
            return null;
        }

        return $endTime - $this->call->time();
    }
344424
public function getLocation(): Location
    {
        if ($this->location === false && $this->_repository !== null) {
            $this->_repository->injectLocation($this);
        }

        return $this->location ?: null;
    }
707185
public function latLng()
    {
        $lat = $this->lat();
        $lng = $this->lng();

        if ($lat && $lng) {
            return [ $lat, $lng ];
        } else {
            return null;
        }
    }
937881
public function getValue(): ?Range
	{
		if (!empty($this->value)) {
			$result = new Range;
			@list($from, $to) = explode($this->delimiter, $this->value);

			if ($from && $to) {
				$result->from = DateTime::createFromFormat($this->format, $from);
				$result->to = DateTime::createFromFormat($this->format, $to);
				return $result;
			}
		}
		return null;
	}