Re: [twitter-dev] inconsistent data when fetching the stream using location boxes
thanks matt I didn't think of verifying the source straight from the json api, you're perfectly right, this is super helpful. and it appears that twitter4j has some funny behaviour, as I'm reading the geo location directly from the API when I receive an onStatus notification, hence something like status.geoLocation() I will need to dig in the code to understand what's happening, I'll come back to you as soon as I have answers many thanks again, have a good day thomas -- 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
Re: [twitter-dev] inconsistent data when fetching the stream using location boxes
hey man, thanks for this reply! yup, of corse I can. so, I am using twitter4j and reading the stream with the streaming API implementation (loosely following the code snippet below). I have setup a filter query with a list of location boxes, being the following 3 (barcelona, manchester, london): - [barcelona] 1.48, 41.10, 2.34, 41.4, - [london] -0.30, 51.10, 0.21, 51.45, - [manchester] -2.18, 53.25, -2.09, 53.31 then retrieving the status' location through the Status.getGeoLocation() function (http://twitter4j.org/en/javadoc/twitter4j/Status.html#getGeoLocation%28%29) now, it happen (quite frequently, but I don't have a statistic... say 1 post out of 50) that I find the geo location being with coordinates out of the boxes, such as: 37.1289787 -84.0832596 (tweet id: 83428963950669824 - reverse geocode using google maps: london, kentucky) 10.103 -64.669 (tweet id: 83428616981061633 - reverse geocode using google maps: barcelona, venezuela) so I am wondering how it can happen, provided that I am giving numerical coordinates for location boxes... hope this is clearer, many thanks thomas fetch stream: StatusListener listener = new StatusListener(){ public void onStatus(Status status) { // get geoLocation and save to db } }; TwitterStream twitterStream = new TwitterStreamFactory(listener).getInstance(); twitterStream.filter( myFilterQuery ); -- 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] inconsistent data when fetching the stream using location boxes
hi all I am developing a data mining application for telecom italia (the biggest tlc company in italy) and we're still refining the algorithms using a spritzer account. in order to maximize the streams around a few interesting locations (uk, spain, france, italy), our setup is using location boxes, as detailed here: http://dev.twitter.com/pages/streaming_api_methods#locations but something weird happens: we are receiving status updates out of the specified location boxes (fair enough...) from places that have the same names as others inside our location boxes. e.g. our box coordinates focused on UK obviously do not include US, but we are receiving tweets from 37.1289787 -84.0832596 (namely: london, KY) is there some reverse geo-coding going on? many thanks thomas -- 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