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

Neighbours #8

Open
ekkis opened this issue Apr 1, 2019 · 1 comment
Open

Neighbours #8

ekkis opened this issue Apr 1, 2019 · 1 comment

Comments

@ekkis
Copy link
Collaborator

ekkis commented Apr 1, 2019

one thing that would be really useful is to be able to return neighbours of a country. I'm thinking about something like:

console.log(country.getNeighbours('US');)

to get:

['CA', 'MX', 'RU']

so maybe, down the line, when we have political subdivisions (I'll create a new issue for that), then we would extend the concept to it

I'm not sure I can spend a lot of time with it right now so if you're up for it, please feel free, but at least we have an issue for it and I can come back to it

and neighbours maybe could be segmented into contiguous neighbours and discontiguous, which would allow relationships with islands. so the US could be a neighbour of Jamaica. not sure that works all that well. perhaps, since we have regions now we could create neighbours for regions i.e. the Caribbean is a neighbour of North America

@ekkis
Copy link
Collaborator Author

ekkis commented Oct 26, 2023

tried GPT but it doesn't have the data, however, I found this: https://github.com/geodatasource/country-borders/blob/master/GEODATASOURCE-COUNTRY-BORDERS.CSV

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant