Re: [twitter-dev] Re: Return Public Timeline Tweets based on Geo Location

2010-08-24 Thread Matt Harris
Hey Bess,

The Streaming API doesn't support places but it does support 1-degree
latitude and longitude boxes. We've provided examples of each
Streaming API parameter in the docs. For location filtering you can
see the example here:
  http://dev.twitter.com/pages/streaming_api_methods#locations

For restricting the Search API to a place you can use the 'place'
parameter. For example, to search for Tweets from Twitter HQ (place
ID: 247f43d441defc03) I would use this query:
  http://search.twitter.com/search.json?q=place%3A247f43d441defc03

Hope that helps,
Matt

On Mon, Aug 23, 2010 at 6:02 PM, Bess  wrote:
> You are welcome. Glad it works for you.
>
> It would be nice to see example of using Stream API using location.
>
> Anyone can offer example code in using Twitter Places? narrow down
> specific geo location?
>
> On Aug 21, 5:43 pm, Mark W  wrote:
>> Bess and Tom,
>>
>> Thanks for the responses.  The search method seemed to work best for
>> me.  I appreciate the quick responses.
>>
>> Mark
>>
>> On Aug 14, 5:20 pm, Mark W  wrote:
>>
>>
>>
>> > I've searched for a solution, but couldn't find one.
>>
>> > I'm looking for a way that I can feed in a GeoLocation (Lat,Long) and
>> > get the latest x tweets posted from around that area.
>>
>> > statuses/public_timeline doesn't support GeoLocation.
>>
>> > I looked at search, which can limit the returned amount by
>> > GeoLocation, however, it requires a query search string, which I don't
>> > have.
>>
>> > Any help or friendly point in the right direction is appreciated...
>>
>> > Thanks.
>>
>> > Mark
>



-- 


Matt Harris
Developer Advocate, Twitter
http://twitter.com/themattharris


[twitter-dev] Re: Return Public Timeline Tweets based on Geo Location

2010-08-23 Thread Bess
You are welcome. Glad it works for you.

It would be nice to see example of using Stream API using location.

Anyone can offer example code in using Twitter Places? narrow down
specific geo location?

On Aug 21, 5:43 pm, Mark W  wrote:
> Bess and Tom,
>
> Thanks for the responses.  The search method seemed to work best for
> me.  I appreciate the quick responses.
>
> Mark
>
> On Aug 14, 5:20 pm, Mark W  wrote:
>
>
>
> > I've searched for a solution, but couldn't find one.
>
> > I'm looking for a way that I can feed in a GeoLocation (Lat,Long) and
> > get the latest x tweets posted from around that area.
>
> > statuses/public_timeline doesn't support GeoLocation.
>
> > I looked at search, which can limit the returned amount by
> > GeoLocation, however, it requires a query search string, which I don't
> > have.
>
> > Any help or friendly point in the right direction is appreciated...
>
> > Thanks.
>
> > Mark


[twitter-dev] Re: Return Public Timeline Tweets based on Geo Location

2010-08-21 Thread Mark W
Bess and Tom,

Thanks for the responses.  The search method seemed to work best for
me.  I appreciate the quick responses.

Mark

On Aug 14, 5:20 pm, Mark W  wrote:
> I've searched for a solution, but couldn't find one.
>
> I'm looking for a way that I can feed in a GeoLocation (Lat,Long) and
> get the latest x tweets posted from around that area.
>
> statuses/public_timeline doesn't support GeoLocation.
>
> I looked at search, which can limit the returned amount by
> GeoLocation, however, it requires a query search string, which I don't
> have.
>
> Any help or friendly point in the right direction is appreciated...
>
> Thanks.
>
> Mark


[twitter-dev] Re: Return Public Timeline Tweets based on Geo Location

2010-08-16 Thread Bess
You can use Twitter Search API to filter or limit the GEO location.

within range from 1 to 1000 in units of mi or km

near:"San Francisco" within:1000mi

Twitter search string
http://search.twitter.com/search.atom?geocode=37.775196,-122.419204,1000.0mi&q=+near:%22San+Francisco%22+within:1000mi

You can see it use geocode latitude and longitude, use near filter for
places and use within filter as diameter range.

You can use string to construct your search query to adjust your
search results. I have used this several times in a few mobile apps.
It works well.

On Aug 14, 2:34 pm, Tom van der Woerdt  wrote:
> On 8/14/10 11:20 PM, Mark W wrote:
>
>
>
> > I've searched for a solution, but couldn't find one.
>
> > I'm looking for a way that I can feed in a GeoLocation (Lat,Long) and
> > get the latest x tweets posted from around that area.
>
> > statuses/public_timeline doesn't support GeoLocation.
>
> > I looked at search, which can limit the returned amount by
> > GeoLocation, however, it requires a query search string, which I don't
> > have.
>
> > Any help or friendly point in the right direction is appreciated...
>
> > Thanks.
>
> > Mark
>
> The streams function of twitter can do this.
>
> http://dev.twitter.com/doc/post/statuses/filter
>
> Tom