英文:
How to get all States and Cities of a country using @react-google-maps/api
问题
我需要使用@react-google-maps/api
获取所有州和城市。我该如何做呢?
英文:
I need to get all states and cities using @react-google-maps/api
. How can i do that?
答案1
得分: 2
很抱歉,该库未提供直接获取所有州和城市列表的功能,但是举个例子,你可以使用该库在搜索栏上进行自动完成,以便在搜索位置时使用。当然,还有许多其他用途。希望这对你有所帮助。
英文:
Unfortunatley, the library does not provide direct functionality for fetching a list of all states and cities, however,one example, you can use the library to auto complete on a search bar when searching for locations ..there are many other uses though.. i hope this helps
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论