I crawled a map website, downloaded all the place names in China, organized them into a txt, then opened it in python, converted it into a map list, and then traversed it, and it was ok.
I think it is still a bit difficult to implement this, because some place names are unknown, but you can use an array to put some commonly used place names, and then use indexOf to see if they exist, but this method is too troublesome. I hope there will be better ones below. Methods.
I crawled a map website, downloaded all the place names in China, organized them into a txt, then opened it in python, converted it into a map list, and then traversed it, and it was ok.
I think it is still a bit difficult to implement this, because some place names are unknown, but you can use an array to put some commonly used place names, and then use
indexOf
to see if they exist, but this method is too troublesome. I hope there will be better ones below. Methods.You can find some third-party place name libraries. Then match the place names that appear in the book with the class library.