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

Kosovo exists under getCountryByAlpha2, but not under a continent in getContinents #4

Closed Portur closed 1 year ago

Portur commented 1 year ago

If we do geojsonPlaces.getContinents() we get the following:

[{"continent_code":"AF","continent_name":"Africa","countries":["DZ","AO","BW","BI","CM","CV","CF","TD","KM","YT","CG","CD","BJ","GQ","ET","ER","DJ","GA","GM","GH","GN","CI","KE","LS","LR","LY","MG","MW","ML","MR","MU","MA","MZ","NA","NE","NG","GW","RE","RW","SH","ST","SN","SC","SL","SO","ZA","ZW","SS","EH","SD","SZ","TG","TN","UG","EG","TZ","BF","ZM"]},{"continent_code":"AN","continent_name":"Antarctica","countries":["AQ","BV","GS","TF","HM"]},{"continent_code":"AS","continent_name":"Asia","countries":["AF","AZ","BH","BD","AM","BT","IO","BN","MM","KH","LK","CN","TW","CX","CC","CY","GE","PS","HK","IN","ID","IR","IQ","IL","JP","KZ","JO","KP","KR","KW","KG","LA","LB","MO","MY","MV","MN","OM","NP","PK","PH","TL","QA","RU","SA","SG","VN","SY","TJ","TH","AE","TR","TM","UZ","YE","XE","XD","XS"]},{"continent_code":"EU","continent_name":"Europe","countries":["AL","AD","AZ","AT","AM","BE","BA","BG","BY","HR","CY","CZ","DK","EE","FO","FI","AX","FR","GE","DE","GI","GR","VA","HU","IS","IE","IT","KZ","LV","LI","LT","LU","MT","MC","MD","ME","NL","NO","PL","PT","RO","RU","SM","RS","SK","SI","ES","SJ","SE","CH","TR","UA","MK","GB","GG","JE","IM"]},{"continent_code":"NA","continent_name":"North America","countries":["AG","BS","BB","BM","BZ","VG","CA","KY","CR","CU","DM","DO","SV","GL","GD","GP","GT","HT","HN","JM","MQ","MX","MS","AN","CW","AW","SX","BQ","NI","UM","PA","PR","BL","KN","AI","LC","MF","PM","VC","TT","TC","US","VI"]},{"continent_code":"OC","continent_name":"Oceania","countries":["AS","AU","SB","CK","FJ","PF","KI","GU","NR","NC","VU","NZ","NU","NF","MP","UM","FM","MH","PW","PG","PN","TK","TO","TV","WF","WS","XX"]},{"continent_code":"SA","continent_name":"South America","countries":["AR","BO","BR","CL","CO","EC","FK","GF","GY","PY","PE","SR","UY","VE"]}]

Kosovo (either XK or KO alpha2 code) does not exist in this list. However Kosovo exists if we do geojsonPlaces.getCountryByAlpha2('XK')

rapomon commented 1 year ago

Fixed in v1.0.8. Thank you for the issue.