12rambau / pygadm

Easy access to administrative boundary defined by GADM from Python scripts
https://pygadm.readthedocs.io
MIT License
7 stars 1 forks source link

Specify the level you are looking for #72

Open 12rambau opened 4 months ago

12rambau commented 4 months ago

For some names there exist duplicated areas that are perfect match e.g. "mexico" that can be both a country and a region in phillipines. I wanted to set some ordering in the search tool to make sure countries were handled first. But this will reorder the names with respect to the one from the Json file and break the Item function workaround for camelCase names.

So instead I think the user should specify what level he is specifically looking for.

THis involve reducing the scope of the search and slightly modify the error message when multiple countries are found.