在Freebase中使用经度和纬度查找位置说明? [英] Find a place description in Freebase using latitude and longitude?

查看:101
本文介绍了在Freebase中使用经度和纬度查找位置说明?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在从Google Maps接收经纬度数据,我想将其发送到Freebase以获得对相关地点的描述.

I'm receiving lat and long data from Google Maps and I want to send that along to Freebase to get a description of the relevant place.

有一个地理编码架构( http://www.freebase.com/location/geocode? schema = ),但似乎您必须分别输入它们?

There's a geocode schema (http://www.freebase.com/location/geocode?schema=) but it seems like you have to to enter them separately?

我想使用柏林的lat/long,从Freebase获得以下描述: http://www.freebase.com/m/0156q

I'd like to, let's say using the lat / long of Berlin, get the following description from Freebase: http://www.freebase.com/m/0156q

希望有什么帮助,谢谢.

Would love any help, thank you.

推荐答案

如果将点转换为小边框,则可以获取边框中包括的所有主题的Freebase数据,如

If you convert your point to a small bounding box, you could get the Freebase data for all topics included in the bounding box like this:

[{
  "id": null,
  "name": null,
  "/location/location/geolocation": [{
    "latitude>=": 52.5,
    "latitude<=": 52.6,
    "latitude": null,
    "longitude>=": 13.38,
    "longitude<=": 13.39,
    "longitude": null
  }]
}]

您可以使边界框任意小,但请记住,对于城市之类的点,该点可能代表诸如质心之类的东西,而实际边界将大得多.如果扩展到城市范围,搜索当然会返回城市中所有的教堂,运动场,酒吧等.您可以添加其他过滤器,以仅返回某些类型的实体(如果这对您有用).

You can make your bounding box arbitrarily small, but remember that for something like a city, the point probably represents something like the centroid while the actual bounds will be much larger. If you expand to the city limits, your search will, of course, return all the churches, stadiums, pubs, etc which are located within the city. You can add additional filters to only return certain types of entities if that helps for your purposes.

这篇关于在Freebase中使用经度和纬度查找位置说明?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆