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.
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.