开发者

Freebase select all cities from administrative division

开发者 https://www.devze.com 2023-01-13 07:43 出处:网络
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 seem

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

精彩评论

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