View Single Post
Old 07-27-2009, 01:57 PM   #1 (permalink)
paulOr
The Wanderer
 
paulOr's Avatar
 
Join Date: Nov 2007
Location: Edinburgh
Posts: 21
Thanks: 1
paulOr is on a distinguished road
Default 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?
__________________
paulOr.net
paulOr is offline  
Reply With Quote