Quoting Matt Harris <thematthar...@twitter.com>:

Hi James,

I'm not sure why the location field is missing from those search results so
I'll need to follow that up. Can you file it as a defect in the API Issues
List: http://code.google.com/p/twitter-api/issues/list
and i'll look into it.

Just to clarify though, the location field is the location you see under a
users name on their Twitter profile page. It is a free-text field in which
the user can put anything they want. If Twitter Search can reverse geocode
the text in that field it will use it as the geo for the Tweet only when the
Tweet itself doesn't have any geo co-ordinates. This means when you perform
a Geocoded Twitter Search you may see results you wouldn't expect. For
example somebody who says their location is San Francisco but is on holiday
in New York may not geocode their Tweets and so their Tweets will be indexed
as being in San Francisco.

Hope that explains how this works.


If your search query does *not* include a 'geocode=' parameter, the tweets returned will *not* have *any* location information! I don't recall if this is a bug or a feature, or whether I filed an issue report. ;-)

On Thu, Jul 8, 2010 at 6:16 AM, James <tedr...@gmail.com> wrote:

Hi there,

I'm getting started with using the search API; I'm a GIS guy looking
at how to ingest tweets with geo or location info.  I'm seeing an odd
behavior with the location element- it seems the location info is only
displayed when I submit a geocoded search.  As an example:

In the results for
is the following tweet:
{"Thu, 08 Jul 2010 01:43:02 +0000",
"to_user_id":1203277,"text":"@wonderchook  You need to write a book
&quot;Adventures in #Geoglobaldomination&quot; or &quot;Bangin

Note no location info.  However, if I do

The result is:
{"location":"Springfield, VA","profile_image_url":"http://a1.twimg.com/
profile_images/907787936/shitstorm_normal.jpg","created_at":"Thu, 08
Jul 2010 01:43:02 +0000","from_user":"geo_rube","metadata":
You need to write a book &quot;Adventures in
#Geoglobaldomination&quot; or &quot;Bangin BP&quot;","id":



Matt Harris
Developer Advocate, Twitter

Reply via email to