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

OSM boundary data #8

Open Portur opened 9 months ago

Portur commented 9 months ago

Hi,

I've recently spent some time to import the better quality OSM boundary administrative data. I've also been able to collate the correct countries and regions, handling each new database manually from OSM.

One thing that is missing however, is the ISO-3166-2 region codes, which this repo provides. Using OverPass is a gamble since the only logical solution would be an imperfect PointInPolygon query.

I'd like to help improve this repo by using the better quality boundary data from OSM whilst keeping the ISO regions codes.

rapomon commented 9 months ago

Hi. Can you do a PR with this?

Portur commented 7 months ago

Hi @rapomon , I won't be able to unfortunately since I had to do it for work, but I can guide you in the process if you want.