Hi there, I've identified how to include the Geo-tagging information
in the API, and having posted using tweetie 2.1 I see some tweets with
the new data, which is excellent.

But I'm having I bit of a problem parsing the latlon info out of the
XML

I have tried:

var latlng = item.getElementsByTagNameNS("http://www.georss.org/
georss","point")[0].childNodes[0].nodeValue.split(" ");
var lat = latlng[0];
var lng = latlng[1];

and

//var latlng = item.getElementsByTagName("georss:point")[0].childNodes
[0].nodeValue.split(" ");
//var lat = latlng[0];
//var lng = latlng[1];

but neither seem to be helping.

I'm able to extract the rest of the status data OK, using:
var tweetText = item.getElementsByTagName("text")[0].childNodes
[0].nodeValue;
var tweetUsername = item.getElementsByTagName("name")[0].childNodes
[0].nodeValue;
var tweetUserAvatar = item.getElementsByTagName("profile_image_url")
[0].childNodes[0].nodeValue;

Do I need a condition to check for existence of the geo tags for each
status, because I think it's failing to loop through tweets that don't
include the geotagging data?

If anyone is a whizz with extracting these particular tags, and can
help I'd be enormously grateful.

(the API call is HomeTimeline.XML btw)

kind rgds,
Chris.

Reply via email to