views:

25

answers:

1

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 it working, it seems that /location/citytown doesn't have this property

+1  A: 

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).

narphorium