rapomon / geojson-places

Reverse geocoding to determine the location where it is contained (continent, country, region and state) from the latitude and longitude specified. This module also has tools to get lists of continents, country groupings, countries, regions and states in the specified language.
ISC License
52 stars 13 forks source link

Some coordinate return null when it should return results #1

Closed pencilcheck closed 1 year ago

pencilcheck commented 1 year ago

40.7756929,-73.9452068

rapomon commented 1 year ago

40.7756929,-73.9452068

Hi.

This library uses the Admin 1 – States, Provinces from Natural Earth Data, with all state polygons in GeoJSON format. Polygons are not precise and not as accurate as we would like.

In this particular case, you can see the problem here, the blue polygon represents the GeoJSON used to get the info, and the coordinates are outside the polygon:

map

Feel free to do a PR with more precise polygons.

Best regards.