【问题标题】:using google maps and geo location of the tweet使用谷歌地图和推文的地理位置
【发布时间】:2011-03-18 17:26:58
【问题描述】:

如何获取每个用户推文的地理位置?使用推特 API。有任何示例或示例吗?

注意:我正在使用 jQuery 和 twitter API。每次用户发送推文时,我都需要获取每个用户的经度和纬度。

【问题讨论】:

  • 不确定您是如何使用 jquery 的,请继续扩展...您使用的是哪个 twitter API 或其他 API 或某些框架

标签: jquery twitter geolocation


【解决方案1】:

Twitter 中的 Geolocaction 是一项“选择加入”功能。大多数推特用户不会选择加入,因此他们不会拥有地理位置数据。您会看到这一点,因为他们的推文将 <geo_enabled> 标签设置为 FALSE。

对于选择加入(<geo_enabled> tag set to TRUE) 的用户,您将在状态末尾看到一个完全填充的<geo> 对象,例如

<status> 
   ... 
   <geo xmlns:georss="http://www.georss.org/georss"> 
     <georss:Point>37.780300 -122.396900</georss:Point> 
   </geo> 
</status>

this page

【讨论】:

    猜你喜欢
    • 2023-04-10
    • 2017-01-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多