how can list of countries/stats/cities in world using google places api? using either google api javascript library or google api web service interface.
i don't believe that's allowed under license terms of google places api.
instead, suggest using http://geonames.org. data updated , licensed under creative commons attribution license: http://creativecommons.org/licenses/by/3.0/
for country names & stats, file located here: http://download.geonames.org/export/dump/countryinfo.txt
all available downloads here: http://download.geonames.org/export/dump/
so, list of places within country requested, fetch zip file 2-letter iso country code. example, places within united states, fetch file: http://download.geonames.org/export/dump/us.zip
once fetched, further have filter list in order cities.
alternatively, if you're ok cities population > 1000, use file: http://download.geonames.org/export/dump/cities1000.zip
in fact, recommend 2nd approach, because all cities can big list.
for more info , list of files available: http://download.geonames.org/export/dump/readme.txt
good luck on project!
Comments
Post a Comment