JuliaGeo / GADM.jl

A Julia package for obtaining geographical data from the GADM dataset
https://gadm.org
MIT License
38 stars 4 forks source link

Fix subregions search #47

Closed ClaroHenrique closed 2 years ago

ClaroHenrique commented 2 years ago

This PR adjusts the search to consider all subregions passed in the get arguments. Before that, only the last subregion was used in the search.

Example:

Before this PR ![image](https://user-images.githubusercontent.com/38709777/173352518-1a9558e0-008e-4df4-99e8-e1234814e23b.png) Cities of multiple states were returned, even with the "Maranhão" state being passed has parameter.
After ![image](https://user-images.githubusercontent.com/38709777/173352474-065543dd-0ff7-4dfd-bb88-c3f6ecd75bdd.png) Only the city inside the "Maranhão" state is returned.
juliohm commented 2 years ago

Thank you @ClaroHenrique for these great contributions and PR descriptions, they help a lot. 💯