How can I use a country boundary geojson file to determine the country of a coordinate?

318 Views Asked by At

I want to have a fast, lightweight and offline method to determine a country from a coordinates. I researched for a long time and found that there is boundary file in geojson format How can I use it in java? thank you

1

There are 1 best solutions below

0
On

I found PolyUtil can do the job to test a coordinate if it belongs to a polygon, but the source data are not accurate enough for the world country boundaries.