WordPress at Your Fingertips
function is not described

SimplePie_Source::get_latitude() public WP 1.0

{} It's a method of the class: SimplePie_Source{}

No Hooks.

Return

null. Nothing.

Usage

$SimplePie_Source = new SimplePie_Source();
$SimplePie_Source->get_latitude();

Code of SimplePie_Source::get_latitude() WP 5.8.2

public function get_latitude()
{
	if ($return = $this->get_source_tags(SIMPLEPIE_NAMESPACE_W3C_BASIC_GEO, 'lat'))
	{
		return (float) $return[0]['data'];
	}
	elseif (($return = $this->get_source_tags(SIMPLEPIE_NAMESPACE_GEORSS, 'point')) && preg_match('/^((?:-)?[0-9]+(?:\.[0-9]+)) ((?:-)?[0-9]+(?:\.[0-9]+))$/', trim($return[0]['data']), $match))
	{
		return (float) $match[1];
	}

	return null;
}