Freebase 地理搜索

发布于 2024-10-08 22:06:41 字数 260 浏览 2 评论 0原文

我想知道是否有可能获取例如由纬度/经度坐标定义的地理区域中发生的所有事件。例如,诺曼底海岸的一个矩形区域应该会出现一些战斗事件。我尝试过直接 MQL,也尝试过 http://api.freebase.com 上的服务/api/service/geosearch?help,但我没有运气。有任何提示或示例吗?

感谢您提供的任何帮助!

I'm wondering if it's possible to get, for example, all events that occurred in a geographical area, as defined by lat/long coordinates. For instance a rectangular area on the shores of Normandy should pull up some battle events. I've tried straight MQL, and also the service at http://api.freebase.com/api/service/geosearch?help, but I'm having no luck. Any hints, or examples anywhere?

Thanks for any help you can give!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

心碎无痕… 2024-10-15 22:06:41

您可以获得给定区域的主题(在我的示例中为 [0,0,50,50]):http://api.freebase.com/api/service/geosearch?location=[0,0,50,50 ]&location_type=/location/location&inside=true&indent=1&format=ids

然后获取那里发生的事件:

[{
  "id":   null,
  "locations": [{
    "id|=": [
      "/en/algeria",
      "/en/austria",
      "/en/austria",
      "/en/andorra",
      "/en/andorra",
      "/en/asia",
      "/en/albania",
      "/en/albania",
      "/en/armenia",
      "/en/armenia",
      "/en/azerbaijan",
      "/en/azerbaijan",
      "/en/ankara",
      "/en/aegean_sea",
      "/en/anatolia",
      "/en/athens",
      "/en/abensberg",
      "/en/casa_batllo",
      "/en/park_guell",
      "/en/casa_mila"
    ]
  }],
  "name": null,
  "type": "/time/event"
}]​

You could get the topics for the given area ([0,0,50,50] in my example): http://api.freebase.com/api/service/geosearch?location=[0,0,50,50]&location_type=/location/location&inside=true&indent=1&format=ids

And then get the events that happened there:

[{
  "id":   null,
  "locations": [{
    "id|=": [
      "/en/algeria",
      "/en/austria",
      "/en/austria",
      "/en/andorra",
      "/en/andorra",
      "/en/asia",
      "/en/albania",
      "/en/albania",
      "/en/armenia",
      "/en/armenia",
      "/en/azerbaijan",
      "/en/azerbaijan",
      "/en/ankara",
      "/en/aegean_sea",
      "/en/anatolia",
      "/en/athens",
      "/en/abensberg",
      "/en/casa_batllo",
      "/en/park_guell",
      "/en/casa_mila"
    ]
  }],
  "name": null,
  "type": "/time/event"
}]​
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文