I am trying to get to geoinformation with google-picasa API. This is the original XML:
<georss:where> <gml:Point> <gml:pos>35.669998 139.770004</gml:pos> </gml:Point> </georss:where>
I have already gone so far with:
$ns_geo=$item->children($namespace['georss']); $geo=$ns_geo->children($namespace['gml']);
var_dump($geo) prints
object(SimpleXMLElement)#34 (1) { ["Point"]=> object(SimpleXMLElement)#30 (1) { ["pos"]=> string(18) "52.373801 4.890935" } }
but
echo (string)$geo->position or (string)$geo->position->pos;
will give nothing. Is there something obvious I'm doing wrong?
source share