Google places API - How to get regions of a country?

荒凉一梦 提交于 2019-12-01 00:57:50
Robert Dodd

No, it is not possible with Places API.

You have 2 options: Use Another Database

There are a few free databases of country/state lists. Have a look at the following questions for some examples:

List of Cities by Country
https://raw.githubusercontent.com/David-Haim/CountriesToCitiesJSON/master/countriesToCities.json

Create your own database

Create your own database of the states in each country. Not recommended, as it would be a waste of precious time.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!