Re: [twitter-dev] Re: Regarding the search API based on Geo location
I'll be interested to hear when the API adds functionality that'll allow us to retrieve *only* tweets with a geopoint! Any hints? soon :P In the meantime; copyied from the first post, what is going on with tweets like this? : { * location: iPhone: 37.313690,-122.022911 * geo: null } { * location: ÜT: 37.293106,-121.969004 * geo: null } Presumably this is some developer-implemented work around from a client that geotagged tweets before the geotagging API was available, by setting the profile location (where it normally says London, UK etc.) to co-ords? If so, I will just ignore it, as these should in theory become less and less common as developers update their apps to use the official geotagging method, but I want to be sure that I'm not missing some crucially geotagged tweets! yeah - that's precisely what's happening. i'm not sure what the first client is, but the second is ubertwitter. instead of sending geotweets, they are simply setting the user's profile location. my hope is that people will transition soon! -- Raffi Krikorian Twitter Platform Team http://twitter.com/raffi
Re: [twitter-dev] Re: Regarding the search API based on Geo location
the geotagging API has only launched a few weeks ago, and there are only a limited number of clients that can use it. couple that with the fact that search does not return all the tweets and does disgard some tweets, you will have a low probability of finding a geotagged tweet - especially once you go to searching such a massive radius. On Sat, Dec 12, 2009 at 7:34 PM, Jeremylv levan.jer...@gmail.com wrote: I've been trying to get search results with Geo but even if I do a query with a radius of 500mi around San Francisco, it returns me only tweets with geo=null. It seems that tweets with a geotag are not returned... Any idea why this is happening? Thank you, Jeremy -- Raffi Krikorian Twitter Platform Team http://twitter.com/raffi
Re: [twitter-dev] Re: Regarding the search API based on Geo location
that all being said, we will have some additions to other APIs that should make this easier -- we'll be announcing them soon. On Sun, Dec 13, 2009 at 2:50 PM, Raffi Krikorian ra...@twitter.com wrote: the geotagging API has only launched a few weeks ago, and there are only a limited number of clients that can use it. couple that with the fact that search does not return all the tweets and does disgard some tweets, you will have a low probability of finding a geotagged tweet - especially once you go to searching such a massive radius. On Sat, Dec 12, 2009 at 7:34 PM, Jeremylv levan.jer...@gmail.com wrote: I've been trying to get search results with Geo but even if I do a query with a radius of 500mi around San Francisco, it returns me only tweets with geo=null. It seems that tweets with a geotag are not returned... Any idea why this is happening? Thank you, Jeremy -- Raffi Krikorian Twitter Platform Team http://twitter.com/raffi -- Raffi Krikorian Twitter Platform Team http://twitter.com/raffi
Re: [twitter-dev] Re: Regarding the search API based on Geo location
there is no way to search (yet) just for tweets that have been sent with the geotagging API through the search API. the geocode parameter in the search API takes into account the user's profile location, the geotagging API, and other heuristics to determine which tweets to return. if you are only looking for tweets that use the geotagging API, then do some post processing to find a tweet with a populated geo field. Thanks, Raffi, Im understaing it a little better now. But is there any way to search only among tweets that have geodata (tweets sent by the geotagging API)? Sorry if Im being too stupid here, but what I still dont understand is how the geo parameter in the search can work even with tweets that havent been geotagged. If there´s no geodata on those tweets, how come the search engine know they were sent from within the radius I searched? On Dec 9, 3:14 pm, Raffi Krikorian ra...@twitter.com wrote: Thegeofield is only set if the status was sent using thegeotagging API. I'd using the search API and the geocode parameter, then a series of other techniques are applied to find tweets near that location (a user's profile location, amongst others). I encourage you to tweet something using the geotagging API, and then search for it so you can understand howgeofloats through the Twitter system. On Dec 9, 2009, at 8:00 AM, Diogo diogo.abda...@gmail.com wrote: Seems like you are right, both searches are returning results normally now. Yet, in both searches all the results are coming with the geo field empty. Actually, I dont think Ive ever seen any result with this geo field non-empty. Problem is: what I need to do, once I get the results from within São Paulo, is to present each tweet on google maps component based on its exactly location. How am I supposed to do that? Inst the geo field supposed to hold thegeolocation of the tweet? Or do I have to perform another query to get this location? Im still kinda clueless here, and will apreciate any help. Thanks. On Dec 8, 3:50 pm, Abraham Williams 4bra...@gmail.com wrote: Both of those links work fine for me. Maybe it was just a temporary hiccup. Abraham On Mon, Dec 7, 2009 at 15:42, Diogo diogo.abda...@gmail.com wrote: Hi all, If been using the search API for some months for various projects and now Ive been asked to code an app that is supposed to search for a specific word within the city of São Paulo and display the resul ts on google maps using the tweet location. After reading the Search API docs (http://apiwiki.twitter.com/Twitter- Search-API-Method%3A-search), I understood (perhaps wrongly) that Im supposed to search like this, for example: http://search.twitter.com:80/search.json?q=festageocode=-23.55,-46.6 ... What Im trying here: Im searching for the word festa providing the location of the center of São Paulo (according to wikipedia) and an arbitrary radius. As I understood, this is supoposed to return geotagged tweets with the word festa from within the providedgeo range. Right? However, Ive tried searching like this using Zend_Twitter PHP class and pasting this URL directly to the browser. In both cases, I get this error: error: Couldn't find Status with ID=6025096957 Whats it means? What am I doing wrong here? I probably missing something, but I just cant figure it out. Actually, even when I try the URL provided as example (http:// search.twitter.com/search.atom? geocode=40.757929%2C-73.985506%2C25km) on the docs, I get this same message . So, how am I supposed to be doing this? Please help. -- Abraham Williams | Community Evangelist |http://web608.org Hacker |http://abrah.am|http://twitter.com/abraham Project | Awesome Lists |http://twitterli.st This email is: [ ] blogable [x] ask first [ ] private. Sent from Madison, WI, United States -- Raffi Krikorian Twitter Platform Team http://twitter.com/raffi
Re: [twitter-dev] Re: Regarding the search API based on Geo location
The geo field is only set if the status was sent using the geo tagging API. I'd using the search API and the geocode parameter, then a series of other techniques are applied to find tweets near that location (a user's profile location, amongst others). I encourage you to tweet something using the geotagging API, and then search for it so you can understand how geo floats through the Twitter system. On Dec 9, 2009, at 8:00 AM, Diogo diogo.abda...@gmail.com wrote: Seems like you are right, both searches are returning results normally now. Yet, in both searches all the results are coming with the geo field empty. Actually, I dont think Ive ever seen any result with this geo field non-empty. Problem is: what I need to do, once I get the results from within São Paulo, is to present each tweet on google maps component based on its exactly location. How am I supposed to do that? Inst the geo field supposed to hold the geo location of the tweet? Or do I have to perform another query to get this location? Im still kinda clueless here, and will apreciate any help. Thanks. On Dec 8, 3:50 pm, Abraham Williams 4bra...@gmail.com wrote: Both of those links work fine for me. Maybe it was just a temporary hiccup. Abraham On Mon, Dec 7, 2009 at 15:42, Diogo diogo.abda...@gmail.com wrote: Hi all, If been using the search API for some months for various projects and now Ive been asked to code an app that is supposed to search for a specific word within the city of São Paulo and display the resul ts on google maps using the tweet location. After reading the Search API docs (http://apiwiki.twitter.com/Twitter- Search-API-Method%3A-search), I understood (perhaps wrongly) that Im supposed to search like this, for example: http://search.twitter.com:80/search.json?q=festageocode=-23.55,-46.6 ... What Im trying here: Im searching for the word festa providing the location of the center of São Paulo (according to wikipedia) and an arbitrary radius. As I understood, this is supoposed to return geotagged tweets with the word festa from within the provided geo range. Right? However, Ive tried searching like this using Zend_Twitter PHP class and pasting this URL directly to the browser. In both cases, I get this error: error: Couldn't find Status with ID=6025096957 Whats it means? What am I doing wrong here? I probably missing something, but I just cant figure it out. Actually, even when I try the URL provided as example (http:// search.twitter.com/search.atom? geocode=40.757929%2C-73.985506%2C25km) on the docs, I get this same message . So, how am I supposed to be doing this? Please help. -- Abraham Williams | Community Evangelist |http://web608.org Hacker |http://abrah.am|http://twitter.com/abraham Project | Awesome Lists |http://twitterli.st This email is: [ ] blogable [x] ask first [ ] private. Sent from Madison, WI, United States
RE: [twitter-dev] Re: Regarding the search API based on Geo location
Sushil, Likely this user is not posting any geodata with his tweets. Ken Date: Thu, 3 Dec 2009 00:25:17 -0800 Subject: [twitter-dev] Re: Regarding the search API based on Geo location From: sush...@gmail.com To: twitter-development-talk@googlegroups.com Hi Raffi, I am not seeing the geo data for this query: http://search.twitter.com/search.json?from=adityakothadiya or for http://search.twitter.com/search.json?q=adityakothadiya Where as adityakothadiya as a twitter user has enabled the geotagging for his account. Can you suggest and tell if i am not using the api correctly? Thanks in advance, Sushil On Dec 2, 5:50 pm, Raffi Krikorian ra...@twitter.com wrote: hi luca. yup -geodata should be everywhere a status is rendered. on the REST API, on streaming, and onsearch. if its not there, please feel free to reach out to me. Hi Raffi, our app (www.kirigo.com) currently fills thegeotag of status updates - since we also want to extract this info from tweets from others, my question is: is thesearchthe only way to extract thegeocoordinates of a tweet? I would rather been interested in the timeline and I can see from the doc that the method statuses/public_timeline has a geo/ section - is that implemented? Thanks a lot for your time! Luca --- Luca Faggioli www.kirigo.com follow me on Twitter:http://twitter.com/lfaggioli On 25 Nov, 19:59, Raffi Krikorian ra...@twitter.com wrote: hi! i think you're confusing two different things here. the location is what is set in the user's account settings (https://twitter.com/account/settings ) if it is not a geotweet. thegeotag is set if the tweet is sent using the geotaggingAPI. the number of geotweets (tweets sent using the geotaggingAPI) is on the rise, but its definitely still small as there is a limited number of applications that currently support it (birdfeed, foursquare, gowalla, etc.). but, for example, if somebody checks in using foursquare, and they have geotagging turned on, then you should see it. try asearchthat looks likehttp://search.twitter.com/search.json?from=raffigeocode=37.77%2C-122 ... . that shouldsearchfor my tweets that are within 50 miles of san francisco. the results look like the following (abbreviated): { results: [ { location:San Francisco, California, profile_image_url:http://a1.twimg.com/profile_images/364041028/raffi-headshot-casual_no ... , created_at:Tue, 24 Nov 2009 17:57:52 +, from_user:raffi, to_user_id:null, text:Standards were invented for me to accidentally break., id:6014464536, from_user_id:278432, geo:null, iso_language_code:en, source:lt;a href=quot;http://www.atebits.com/; rel=quot;nofollowquot;gt;Tweetielt;/agt; }, ... { location:37.818300,-122.245000, profile_image_url:http://a1.twimg.com/profile_images/364041028/raffi-headshot-casual_no ... , created_at:Sun, 22 Nov 2009 21:13:39 +, from_user:raffi, to_user_id:null, text:Mmm. Brunch. Dr. Lady Friend. Good. (@ Camino in Oakland)http://bit.ly/2cJV9;, id:5955787968, from_user_id:278432, geo: { type:Point, coordinates: [ 37.8183, -122.245 ] }, iso_language_code:en, source:lt;a href=quot;http://foursquare.com; rel=quot;nofollowquot;gt;foursquarelt;/agt; }, ], ... } in both of these, the location attribute appears and is populated because i used the geocode operator onsearch. in the first returned tweet, the location is set to San Francisco, California because that's what i have in my account settings and because that tweet was not sent using the geotaggingAPI(its not a geotweet). the second, however, has its location set to that latitude and longitude from the geotaggingAPI, and thegeoattribute is populated -- that one is a geotweet. there is no current way to filtersearchresults so that you only get geotweets. does this help? Hi everyone, I have a question regarding thesearchAPI. Take a look at these two tweets return from theAPI. { * location: Santa Clara, CA *geo: null } { * location: iPhone: 37.313690,-122.022911 *geo: null } { * location: ÜT: 37.293106,-121.969004 *geo: null } 1) im not sure why I haven't seen any tweet withgeofiled
Re: [twitter-dev] Re: Regarding the search API based on Geo location
hi luca. yup - geo data should be everywhere a status is rendered. on the REST API, on streaming, and on search. if its not there, please feel free to reach out to me. Hi Raffi, our app (www.kirigo.com) currently fills the geo tag of status updates - since we also want to extract this info from tweets from others, my question is: is the search the only way to extract the geo coordinates of a tweet? I would rather been interested in the timeline and I can see from the doc that the method statuses/public_timeline has a geo/ section - is that implemented? Thanks a lot for your time! Luca --- Luca Faggioli www.kirigo.com follow me on Twitter: http://twitter.com/lfaggioli On 25 Nov, 19:59, Raffi Krikorian ra...@twitter.com wrote: hi! i think you're confusing two different things here. the location is what is set in the user's account settings (https://twitter.com/account/settings ) if it is not a geotweet. the geo tag is set if the tweet is sent using the geotagging API. the number of geotweets (tweets sent using the geotagging API) is on the rise, but its definitely still small as there is a limited number of applications that currently support it (birdfeed, foursquare, gowalla, etc.). but, for example, if somebody checks in using foursquare, and they have geotagging turned on, then you should see it. try a search that looks likehttp://search.twitter.com/search.json?from=raffigeocode=37.77%2C-122 ... . that should search for my tweets that are within 50 miles of san francisco. the results look like the following (abbreviated): { results: [ { location:San Francisco, California, profile_image_url:http://a1.twimg.com/profile_images/364041028/raffi-headshot-casual_no ... , created_at:Tue, 24 Nov 2009 17:57:52 +, from_user:raffi, to_user_id:null, text:Standards were invented for me to accidentally break., id:6014464536, from_user_id:278432, geo:null, iso_language_code:en, source:lt;a href=quot;http://www.atebits.com/; rel=quot;nofollowquot;gt;Tweetielt;/agt; }, ... { location:37.818300,-122.245000, profile_image_url:http://a1.twimg.com/profile_images/364041028/raffi-headshot-casual_no ... , created_at:Sun, 22 Nov 2009 21:13:39 +, from_user:raffi, to_user_id:null, text:Mmm. Brunch. Dr. Lady Friend. Good. (@ Camino in Oakland)http://bit.ly/2cJV9;, id:5955787968, from_user_id:278432, geo: { type:Point, coordinates: [ 37.8183, -122.245 ] }, iso_language_code:en, source:lt;a href=quot;http://foursquare.com; rel=quot;nofollowquot;gt;foursquarelt;/agt; }, ], ... } in both of these, the location attribute appears and is populated because i used the geocode operator on search. in the first returned tweet, the location is set to San Francisco, California because that's what i have in my account settings and because that tweet was not sent using the geotagging API (its not a geotweet). the second, however, has its location set to that latitude and longitude from the geotagging API, and the geo attribute is populated -- that one is a geotweet. there is no current way to filter search results so that you only get geotweets. does this help? Hi everyone, I have a question regarding the search API. Take a look at these two tweets return from the API. { * location: Santa Clara, CA * geo: null } { * location: iPhone: 37.313690,-122.022911 * geo: null } { * location: ÜT: 37.293106,-121.969004 * geo: null } 1) im not sure why I haven't seen any tweet with geo filed included(I go through more than 20 pages). Is this normal? Is that possible to get only tweet with geo included? 2) if 1) won't work, I want to filter all the tweets with valid location like the second one, therefore, I can push the tweet on map. Is the keyword also apply for the location? It's hard for the first one cuz it doesn't have the detail address. Thanks! -- Raffi Krikorian Twitter Platform Team ra...@twitter.com | @raffi -- Raffi Krikorian Twitter Platform Team ra...@twitter.com | @raffi