Thanks for the tips Matt. The people using this system definitely send the tweet when they reach their final destination (they're run a food truck), and don't use wifi. They are using both iPhone and Android phones to send these tweets, so the only answer is that their devices must be sending incorrect GPS data.
However... why should this happen when the iPhone Map application is tracking accurately, at the same time when sending a status message to Twitter? This is why I'm confused and wondering if actually there's a process in between the device and Twitter that gets things muddled? Especially as I get a completely different result when using Google Latitude, also erratic (mostly incorrect) but in a completely different way to Twitter's result. Thanks again, David David Terranova davidterranova.com | rebelrave.tv On Feb 9, 2011, at 2:01 PM, Matt Harris wrote: > Hi David, > > We use the lat/lon sent to us when the Tweet is created. How that lat/lon is > retrieved depends on the device being used to send the Tweet. The content of > the Tweet is not used to populate the lat/lon coordinates. > > A couple of reasons for why it could be reported like this: > * The user is travelling to the location they Tweeted about > * The device being used has the wrong GPS co-ordinates. (When I visited New > York my iPhone struggled to get an accurate location) > * They were on Wifi and the device looked up the IP and found those > co-ordinates > > Hope that answers your question, > @themattharris > Developer Advocate, Twitter > http://twitter.com/themattharris > > > On Wed, Feb 9, 2011 at 9:19 AM, David Terranova <da...@davidterranova.com> > wrote: > Furthermore, here is a tweet that shows what's going on: > http://twitter.com/#!/TaimMobile/status/35349967103209472 > Tweeted from 51st Street (btw 6/7th ave), yet the map shows 34th > street. > > Obviously the map on the website shows the same incorrect data: > http://www.taimmobile.com > > Is this the iphone's tracking that is incorrect? > > > Many thanks > > > > > On Feb 9, 12:05 pm, David Terranova <da...@davidterranova.com> wrote: > > 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 > > > -- > 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 -- 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