TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   General (http://www.talkphp.com/general/)
-   -   Slight Twitter API related problem. (http://www.talkphp.com/general/4786-slight-twitter-api-related-problem.html)

paulOr 07-27-2009 01:57 PM

Slight Twitter API related problem.
 
PHP Code:

<?php
$address 
'http://search.twitter.com/search.json?q=&ands='.$x['search_1'].'+'.$x['search_2'].'+'.$x['search_3'].'&nots='.$x['exc_1'].'+'.$x['exc_2'].'&geocode=55.9502,-3.1875,10mi&rpp=100';
?>

Okies, so heres how it goes, i select info from database, and then run a little query into twitter search api for the search terms that im looking for, and geocode it to a specific location.

This works (mostly) but i am sometimes getting results back from anywhere, the above geocode is located on center of Edinburgh + 10mile redius. However, i sometimes still get tweets from places like india and Dallas. Neh good!

I tried urlencoding (replaceing , with %2C) and that either doesn't work, or breaks it :(

Anyone have any suggestions?

Salathe 07-27-2009 02:22 PM

I don't know, maybe Twitter is just having glitches, it happens a lot.


All times are GMT. The time now is 05:53 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0