2012-03-03 3 views
2

Я обожаю ави Твиттера без особого счастья.Twitter API - получить твиты около точки gps

Кто-нибудь знает, обеспечивает ли он способ передачи в точке gps и, в свою очередь, получает список твитов, которые были сделаны вблизи этой точки?

Я огляделся и не смог найти много на эту тему, есть ли у кого-нибудь опыт с этим?

Я надеюсь, что будет использовать такой вызов в приложении MVC3 .net.

Спасибо

ответ

4

Посмотрите на поиск API, в частности, "геокод". От https://dev.twitter.com/docs/api/1/get/search:

Returns tweets by users located within a given radius of the given latitude/longitude. The  location is preferentially taking from the Geotagging API, but will fall back to their Twitter profile. The parameter value is specified by "latitude,longitude,radius", where radius units must be specified as either "mi" (miles) or "km" (kilometers). Note that you cannot use the near operator via the API to geocode arbitrary locations; however you can use this geocode parameter to search near geocodes directly. 

Example Values: 37.781157,-122.398720,1mi 
+0

Спасибо, его что-то вроде ... HTTP: //search.twitter.com/search д = в% 3Atwitter% 20until% 3A2011-05-07 & геокод = 37,781157, -122.398720,25mi –