Hi, sorry if this has been posted before in here, I can't seem to find
anyone posting about this particular setup:
I have a website with a google map which is retrieving the coords from
a twitter's latest status, however the location of the google map
rarely matches the location of where the user tweeted from, sometimes
being half a mile off in a random direction.

What is this due by?

Here is the code I'm using:

$twfeed = @file_get_contents('http://api.twitter.com/1/users/show/
taimmobile.json');
if($json){
        $data = json_decode($twfeed, false);
        $lat = $data->status->geo->coordinates[0];
        $lon = $data->status->geo->coordinates[1];
        echo "<div id='map'><h3>Where are we?</h3><BR>".SGMprintmap($lat,
$lon,"18","TERRAIN",null,null)."</div>";
}

(SGMprintmap is a function taken from a WP plug:
https://svn.wp-plugins.org/simple-google-map/trunk/simple-google-map.php)

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk

Reply via email to