Select the three-level linkage of cities, provinces, municipalities, and municipalities

When developing a project, you may encounter a region selection function similar to the one shown in the figure below. This function needs to download a "city-id" correspondence table (id is uniformly stipulated throughout the country). Here, I will provide you with three files with different data structures for free ( the third one is recommended ), and I hope it will be helpful to you.
Free file download
1. >>Click to download . The data structure of this file is simple and clear. You can know how to use it at a glance. The code is relatively simple to implement, but the file data is large, which affects the query speed.
2. >>Click to download . The data structure of this file is relatively straightforward, but the relationship between data needs to be studied. The code implementation is a bit complicated, but the file data is small and the query speed is fast.
3. >>Click to download . The data structure of this file is simple and the hierarchy is clear. It is recommended to use it.

insert image description here

Guess you like

Origin blog.csdn.net/HYNN12/article/details/109738827