ZF-8615: Twitter geo information not parsed
Description
The geotagging information isn't parsed properly from a tweet with geo information attached. There is a geo array item returned in the result object but it is empty.
I would guess this is due to the geo information belonging to a different namespace, below is a snippet:
www.georss.org/georss"> 54.39790844 -1.85352928
Comments
Posted by Darren Lucas (vtwo) on 2009-12-22T13:28:01.000+0000
After looking at this further, it seems this issue may actually be a problem with Zend_Rest_Client_Response and SimpleXML needing namespaces to be registered before xpath will read them.
The following code will at least get the coordinates out:
I haven't got as far as trying to patch Zend_Rest_Client_Response to return namespaced elements, but the above code should at least help with demonstrating the problem and / or help someone with implementing a fix.
Posted by Darren Lucas (vtwo) on 2009-12-22T13:33:23.000+0000
^ and when I say Zend_Rest_Client_Response I really mean Zend_Rest_Client_Result