[twitter-dev] Geo API. Londra v.s. London
Hi, I'm having a strange problem. I'm calling the geo search API using this URL: http://api.twitter.com/1/geo/search.json?lat=51.52364784612407long=-0.04422773387148005accuracy=50mgranularity=poi And the the full_name of the poi's contains 'Londra' rather than 'London'. The lower details report 'London'. Has a new parameter been added to the API for language that I should present? The JSON is as follows: {result:{places:[{contained_within:[{url:http:\/\/ api.twitter.com\/1\/geo\/id\/da8d935566371bcc.json,name:Tower Hamlets,country_code:GB,id:da8d935566371bcc,country:Regno Unito,place_type:city,bounding_box: {type:Polygon,coordinates:[[[-0.080028,51.484326], [0.009989,51.484326],[0.009989,51.545341], [-0.080028,51.545341]]]},full_name:Tower Hamlets, Londra,attributes:{}}],url:http:\/\/api.twitter.com\/1\/geo\/id\/ 8c483c0da2087d2f.json,name:Perfect Fried Chicken,country_code:GB,id:8c483c0da2087d2f,country:United Kingdom,place_type:poi,bounding_box: {type:Polygon,coordinates:[[[-0.044465,51.522233], [-0.044465,51.522233],[-0.044465,51.522233], [-0.044465,51.522233]]]},full_name:Perfect Fried Chicken, Tower Hamlets,attributes:{street_address:239 Mile End Road}}, {contained_within:[{url:http:\/\/api.twitter.com\/1\/geo\/id\/ da8d935566371bcc.json,name:Tower Hamlets,country_code:GB,id:da8d935566371bcc,country:Regno Unito,place_type:city,bounding_box: {type:Polygon,coordinates:[[[-0.080028,51.484326], [0.009989,51.484326],[0.009989,51.545341], [-0.080028,51.545341]]]},full_name:Tower Hamlets, Londra,attributes:{}}],url:http:\/\/api.twitter.com\/1\/geo\/id\/ 20c79d0a740039a8.json,name:The Half Moon,country_code:GB,id:20c79d0a740039a8,country:United Kingdom,place_type:poi,bounding_box: {type:Polygon,coordinates:[[[-0.045457,51.522058], [-0.045457,51.522058],[-0.045457,51.522058], [-0.045457,51.522058]]]},full_name:The Half Moon, Tower Hamlets,attributes:{street_address:211 Mile End Road}}, {contained_within:[{url:http:\/\/api.twitter.com\/1\/geo\/id\/ da8d935566371bcc.json,name:Tower Hamlets,country_code:GB,country:United Kingdom,id:da8d935566371bcc,bounding_box: {type:Polygon,coordinates:[[[-0.080028,51.484326], [0.009989,51.484326],[0.009989,51.545341], [-0.080028,51.545341]]]},place_type:city,full_name:Tower Hamlets, London,attributes:{}}],url:http:\/\/api.twitter.com\/1\/ geo\/id\/4f20952d81149acf.json,name:Mile End Hospital,country_code:GB,id:4f20952d81149acf,country:United Kingdom,place_type:poi,bounding_box: {type:Polygon,coordinates:[[[-0.045424,51.526221], [-0.045424,51.526221],[-0.045424,51.526221], [-0.045424,51.526221]]]},full_name:Mile End Hospital, Tower Hamlets,attributes:{street_address:274 Bancroft Road}}, {contained_within:[{url:http:\/\/api.twitter.com\/1\/geo\/id\/ 6416b8512febefc9.json,name:United Kingdom,country_code:GB,country:United Kingdom,id:6416b8512febefc9,bounding_box: {type:Polygon,coordinates:[[[-8.662663,49.1626564], [1.768926,49.1626564],[1.768926,60.86165], [-8.662663,60.86165]]]},place_type:country,full_name:United Kingdom,attributes:{}}],url:http:\/\/api.twitter.com\/1\/geo\/id \/ 8ef32ff56ef11c22.json,name:England,country_code:GB,id:8ef32ff56ef11c22,country:United Kingdom,place_type:admin,bounding_box: {type:Polygon,coordinates:[[[-6.3651943,49.8825312], [1.768926,49.8825312],[1.768926,55.8116485], [-6.3651943,55.8116485]]]},full_name:England, United Kingdom,attributes:{}},{contained_within:[{url:http:\/\/ api.twitter.com\/1\/geo\/id\/ 8ef32ff56ef11c22.json,name:England,country_code:GB,country:United Kingdom,id:8ef32ff56ef11c22,bounding_box: {type:Polygon,coordinates:[[[-6.3651943,49.8825312], [1.768926,49.8825312],[1.768926,55.8116485], [-6.3651943,55.8116485]]]},place_type:admin,full_name:England, United Kingdom,attributes:{}}],url:http:\/\/api.twitter.com\/1\/ geo\/id\/ 5d838f7a011f4a2d.json,name:London,country_code:GB,id:5d838f7a011f4a2d,country:United Kingdom,place_type:admin,bounding_box: {type:Polygon,coordinates:[[[-0.5093057,51.286606], [0.334433,51.286606],[0.334433,51.691672], [-0.5093057,51.691672]]]},full_name:London, England,attributes: {}}]},query:{url:http:\/\/api.twitter.com\/1\/geo\/search.json? granularity=poiaccuracy=50.0long=-0.04422773387148005query=lat=51.52364784612407autocomplete=falsetrim_place=false,params: {granularity:poi,accuracy:50.0,query:,coordinates: {type:Point,coordinates: [-0.04422773387148005,51.52364784612407]},trim_place:false,autocomplete:false},type:search}} Thanks, S. -- Twitter developer documentation and resources: https://dev.twitter.com/doc API updates via Twitter: https://twitter.com/twitterapi Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list Change your membership to this group: https://groups.google.com/forum/#!forum/twitter-development-talk
[twitter-dev] Re: Conversation stream
I'd be really interested to know if this function becomes reliable and incorporated into the API. I can't actually get it to work at the moment though, I get Twitter's 'The page you were looking for doesn't exist' sent back... S. On Mar 31, 1:51 pm, George georgyy.koz...@gmail.com wrote: Hi Folks, My team is working on new Twitter client and we're interested in some specific options in Twitter API. Of course I know that some features already requested and this one was asked however I think we should rise up it again. I've found hidden call on Twitter which allows us to receive conversation tread between the users.http://search.twitter.com/search/thread/status ID The above call return correct data for some statuses but for another ones it may return nothing or even return wrong data, Does anybody know something about this call? Maybe we need to supply additional parameters? Is it possible to obtain conversation thread between two users somehow not using of above call. Thanks in advance, George -- 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-dev] Re: Conversation stream
Ah I see. I was appending .json to the status in an attempt to get that. I didn't expect HTML! I guess this probably won't stay around for long as it doesn't look like a method made specifically as an API method. The current solution is to follow the in_reply_to fields that the API sends back, stepping through the conversation as you go.. but unless you have the full streaming API this requires lots of calls to the REST api, and you'll get rate limited fairly soon. :-( S. On Apr 1, 10:39 am, George georgyy.koz...@gmail.com wrote: Hi Stu, I'm also interested in the mentioned question). Link that I've shared should work for you, just take a note that it will work only for replied statuses. I know the ID of my status (tweet) which was reply to another one, so if we'll pass this ID to the call:http://search.twitter.com/search/thread/53014618771165184 Twitter will show you a conversation page, however sometimes it works strange. Does anybody know right way how to obtain conversation thread from the Twitter? Regards, George On Apr 1, 11:33 am, Stu stuart.batter...@gmail.com wrote: I'd be really interested to know if this function becomes reliable and incorporated into the API. I can't actually get it to work at the moment though, I get Twitter's 'The page you were looking for doesn't exist' sent back... S. On Mar 31, 1:51 pm, George georgyy.koz...@gmail.com wrote: Hi Folks, My team is working on new Twitter client and we're interested in some specific options in Twitter API. Of course I know that some features already requested and this one was asked however I think we should rise up it again. I've found hidden call on Twitter which allows us to receive conversation tread between the users.http://search.twitter.com/search/thread/status ID The above call return correct data for some statuses but for another ones it may return nothing or even return wrong data, Does anybody know something about this call? Maybe we need to supply additional parameters? Is it possible to obtain conversation thread between two users somehow not using of above call. Thanks in advance, George -- 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-dev] Search API: Can the geocode param only give me lat/long results?
Hi, I have a pre-question before my question. With the search API's geocode based search, if it falls back on the user's profile information does it use GPS positions in their profile or some location such as 'London'. The problem is that I need much greater precision than that. Thus, if I perform this search: http://search.twitter.com/search.json?geocode=51.53,-0.14,1mi Am I able to get results back that only contain lat/long values of the tweet? The json returned here has basically no values for 'geo'. Thanks S. -- 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-dev] Re: Search API: Can the geocode param only give me lat/long results?
Hi Augusto, Thanks for your reply. The problem with the Streaming API is that I'd have to have set some database app listening to the stream for the past few years to be able to get all the data (especially for remote locations). I also don't know where my users are going to be, so I don't have the ability to set any bounding boxes... I need something that I can search back in time, rather than set listening.. without knowing in advance where the users will be. Hence the need for the search API... S. On Mar 21, 4:05 pm, Augusto Santos augu...@gemeos.org wrote: Streaming API will give what you need through locations method.http://dev.twitter.com/pages/streaming_api_methods#locations On Mon, Mar 21, 2011 at 12:22 PM, Stu stuart.batter...@gmail.com wrote: Hi, I have a pre-question before my question. With the search API's geocode based search, if it falls back on the user's profile information does it use GPS positions in their profile or some location such as 'London'. The problem is that I need much greater precision than that. Thus, if I perform this search: http://search.twitter.com/search.json?geocode=51.53,-0.14,1mi Am I able to get results back that only contain lat/long values of the tweet? The json returned here has basically no values for 'geo'. Thanks S. -- 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-dev] Determining if a tweet is a retweet from the search API
Hi, In the REST and Streaming API, if a tweet is an (official) retweet the data returned has a retweeted_status field. If I'm using the Search API this doesn't appear to be present. Is the only way to find out if a returned tweet is a retweet to look each tweet up in the REST API? If so, I'm going to get rate limited almost immediately here am I not? S. -- 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-dev] Streaming API filter terms
Hi, I have a question about the streaming API. We're currently consuming the Spritzer stream, this is fine. However, if we use the filter with a keyword filter, let's say 'boats', does this give us just a subset of the spritzer stream or does it give 'boats' across the whole of Twitter? Saving CPU cycles isn't a problem, we can handle the stream, but we would like to get the most data we can around our filter keyword(s). Thanks, S. -- 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-dev] Re: Finding RT or replies
Thanks, that looks great. Is there something similar for replies? In the Streaming API there is a field which holds the ID of a status update which the current tweet is in reply to. Am I able to get these from the REST API at all? Thanks, S. On Dec 21 2010, 2:57 pm, Igor Kharin igorkha...@gmail.com wrote: Hello, Stu. Here's the method you are looking for:http://dev.twitter.com/doc/get/statuses/:id/retweeted_by On Sun, Dec 19, 2010 at 9:56 PM, Stu stuart.batter...@gmail.com wrote: Hi all, Just wondering if there is a section of the API, possibly in the REST API, that allows me to find all the replies and RTs to a given tweet? I'll have the ID of that tweet. Am I able to pass this to the API somewhere? Thanks, S. -- 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-dev] Finding RT or replies
Hi all, Just wondering if there is a section of the API, possibly in the REST API, that allows me to find all the replies and RTs to a given tweet? I'll have the ID of that tweet. Am I able to pass this to the API somewhere? Thanks, S. -- 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