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

前端 未结 1 2040
逝去的感伤
逝去的感伤 2021-01-06 18:29

I\'ve looked again and again on the site for this simple question and didn\'t find an answer I think it is very generic need Let\'s say that you have two drop down lists On

相关标签:
1条回答
  • 2021-01-06 18:59

    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.

    0 讨论(0)
提交回复
热议问题