Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

twitter search API always return null geolocation

I am using twitter4j java library to make a twitter API search for given keywords. The rearch works fine, but all the tweets returned have the geo field set to null. I have taken a look to the twitter developers documentation and all te results there, have geo null.

Here is my java code:

TwitterFactory twitterFactory = new TwitterFactory();
Twitter twitter = twitterFactory.getInstance();
Query query = new Query("query");
query.setRpp(10);
QueryResult result = twitter.search(query);

I list all the tweets but none of them has geo code.

Is there any way I can get the geo location of the tweet /user?

like image 263
Alina Danila Avatar asked Sep 25 '26 15:09

Alina Danila


1 Answers

There seems to be a problem at Twitter causing this behaviour.

Although some search queries work for me and return some coordinates (1st of Feb 2012).

Unfortunately what I can only suggest is waiting until they solve the problem or have a look at the discussion attached to that issue.

like image 132
MMM Avatar answered Sep 27 '26 05:09

MMM