News for hackers. Stuff that matters.
Re:Show HN: Loc2country – Location coordinates to country in... by mtmail on Saturday July 21, 2018 @12:51PM (#17582624)
The typical user might not need https://en.wikipedia.org/wiki/Enclave_and_exclave support. I think understanding the limitations is important though. Being fast vs being accurate.

Country boundaries change over time and there's many disputed areas (let's say the Kashmir region. Are coastline or maritime borders used (useful for island states)? Explaining how and when the master data was created would help. Ideally a repeatable process. If the master data came from a different source then the possible license should be named.

How are coordinates rounded? I see geohash is used.

Simplified boundaries as input also have an effect.

Re:Show HN: Loc2country – Location coordinates to country in... by technologia on Saturday July 21, 2018 @10:32PM (#17584987)
I had the same thought, while geohashes provide a computational speedup this project doesn't seem to be more than a glorified spreadsheet rather than a point-in-polygon search
Re:Show HN: Loc2country – Location coordinates to country in... by karmakaze on Saturday July 21, 2018 @04:57PM (#17583832)
The project includes a data file. I couldn't tell where this data came from, or if there's any way to update it so it's for immediate or approximate use only.
Re:Show HN: Loc2country – Location coordinates to country in... by technologia on Saturday July 21, 2018 @10:30PM (#17584982)
It's a CSV file with geohashes and the iso-3 codes that those geohashes belong to
Re:Show HN: Loc2country – Location coordinates to country in... by walrus01 on Saturday July 21, 2018 @05:37PM (#17583995)
I wonder what happens if you give it the coordinates for Bir Tawil.
Re:Show HN: Loc2country – Location coordinates to country in... by nodesocket on Sunday July 22, 2018 @12:53AM (#17585343)
Typically this is done with reverse geocoding. What is the advantage of Loc2country?
Re:Show HN: Loc2country – Location coordinates to country in... by detaro on Sunday July 22, 2018 @03:49PM (#17588556)
Isn't loc2country an implementation of a reverse geocoder?
Re:Show HN: Loc2country – Location coordinates to country in... by fatninja on Sunday July 22, 2018 @03:42AM (#17585705)
How does one refresh the data?
Re:Show HN: Loc2country – Location coordinates to country in... by ashwinnair on Sunday July 22, 2018 @03:44AM (#17585709)
Have added details regarding data generation to the README.