开发者

Freebase select all cities from administrative division

Any ideas on how to select all citytowns from certain administrative division? Can be any country. Tried to search by fips_10_4_region_code but can't get 开发者_StackOverflow中文版it working, it seems that /location/citytown doesn't have this property


If you know the Freebase ID of the administrative division then you can find all city/towns contained by it using a query like this:

[{
  "id":   null,
  "name": null,
  "type": "/location/citytown",
  "/location/location/containedby": {
    "id": "/en/california"
  }
}]​

There's also an experimental Geosearch API which can find geolocated cities within given topic's shape (if it has one).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜