Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

finding neighbor countries using region or geo location #20

Open
MrAliSalehi opened this issue Apr 13, 2023 · 1 comment
Open

finding neighbor countries using region or geo location #20

MrAliSalehi opened this issue Apr 13, 2023 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@MrAliSalehi
Copy link

not sure if its possible or not but I think it would be really nice to have something like this:

let country = keshvar::find_by_code(98);

let neighbors: Vec<Country> =  keshvar::near_countries(country);
@pouriya
Copy link
Owner

pouriya commented Apr 14, 2023

I think it's doable if we stick with coutries' geo information.

@pouriya pouriya added enhancement New feature or request help wanted Extra attention is needed labels Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants