How I will get geo code of any tweets


#1

Hi,
I have sent request to twitter search api
with url: http://search.twitter.com/search.json?q=obama&rpp=1
and I got result with below format.
{
“completed_in”:0.006,
“max_id”:317138830702555136,
“max_id_str”:“317138830702555136”,
“next_page”:"?page=2&max_id=317138830702555136&q=obama&rpp=1",
“page”:1,“query”:“obama”,
“refresh_url”:"?since_id=317138830702555136&q=obama",
“results”:[{“created_at”:“Thu, 28 Mar 2013 04:59:24 +0000”,“from_user”:“Rajando_B”,“from_user_id”:260165137,“from_user_id_str”:“260165137”,“from_user_name”:“Ryan Rash”,“geo”:null,“id”:317138830702555136,“id_str”:“317138830702555136”,“iso_language_code”:“en”,“metadata”:{“result_type”:“recent”},“profile_image_url”:“http://a0.twimg.com/profile_images/1531696742/l_52ae12f836fc186c7737a21ad6c57e1f_normal.jpg",“profile_image_url_https”:“https://si0.twimg.com/profile_images/1531696742/l_52ae12f836fc186c7737a21ad6c57e1f_normal.jpg”,“source”:"<a href=“http://twitter.com/">web</a>",“text”:"RT @NatttyK: Me"Have you seen that red equals sign that everyone’s making their prof picture?” Sister “yeah the Obama thing? It’s gay” #LOL #DYING”}],
“results_per_page”:1,“since_id”:0,“since_id_str”:“0”
}

Could you please inform me why i am getting “geo:null” ?
I want to trace the geo code of particular tweets.
Also please let me know how i will get the geo code of any tweets?
Please help me.

Best Regards
Surendar Yadav


#2
  1. Make sure that you’re using the most recent version of the API. The API at search.twitter.com will cease functioning soon.

  2. Are you explicitly getotagging your tweets?


#3

Yes, I am using most recent version of API.
Please provide me some url example of sentiment analysis.
I am trying to find out the sentiment of any tweets.
Also let me know how i can find out the sentiments by twitterID of any tweets.
I have a questions could you please tell me why stream api taking much time to respond any queries
string url = @“https://stream.twitter.com/1.1/statuses/filter.json”;

Best Regrads
Surendar


#4

I can’t provide an example of sentiment analysis, unfortunately – that’s a bit outside my realm of knowledge.

The URL you’re mentioning isn’t “queried” so much as connected to. It’s not meant for ad-hoc search queries but instead for long-lived filters matching real-time tweets.


#5