Districts/Sublocalities: List of, or how to get us

2019-02-18 14:18发布

问题:

I am desperately trying to find a list/database of districts or sublocalities for all cities of the world.

I use the list of all cities of the world from maxmind.com, however, they do not provide sublocalities or districts (like e.g. "Manhattan", "Brooklyn", ... in New York).

Does anybody know if there exists a solution out there somewhere? Or is there a posibility to get all sublocalities using Google Maps API? (As I have 2.7mio cities with LatLng values in the database).

Thank you very much in advance for any hint!

回答1:

Bulk downloads of Google data are forbidden by the Terms of Service.

Geonames is probably your best bet, although neighbourhoods are only available directly for US cities: http://www.geonames.org/export/web-services.html#neighbourhood

Children of existing Geonames objects are available, but that doesn't appear to include children of cities.