Hacker News new | past | comments | ask | show | jobs | submit login
Country-coder: Convert lat/lon to country code locally (github.com/ideditor)
18 points by rathel on Dec 31, 2019 | hide | past | favorite | 2 comments



How do you solve the problem that some areas that are claimed by more than one country or are claimed by countries that are recognized/not recognized by other countries?


It doesn't appear to, there's just a hardcoded geo json file it queries against: https://github.com/ideditor/country-coder/blob/master/src/da...

Kashmir, for instance, is only part of Pakistan.

Still an interesting exercise in geojson. I'm impressed that github automatically renders the shapefile, rather than just the text.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: