[geonames] Adding basic GeoNames admin mappings for all countries we have postal codes lists for so some form of training data can be created for postcodes not listed in OSM
This commit is contained in:
2
resources/boundaries/geonames/ad.yaml
Normal file
2
resources/boundaries/geonames/ad.yaml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: state
|
||||||
3
resources/boundaries/geonames/ar.yaml
Normal file
3
resources/boundaries/geonames/ar.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: state
|
||||||
|
admin2: state_district
|
||||||
3
resources/boundaries/geonames/at.yaml
Normal file
3
resources/boundaries/geonames/at.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: state
|
||||||
|
# admin2 is a mix of state_district and city, need to list specifically
|
||||||
3
resources/boundaries/geonames/au.yaml
Normal file
3
resources/boundaries/geonames/au.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: state
|
||||||
|
# admin2 is a mix of state_district and city, need to list specifically
|
||||||
3
resources/boundaries/geonames/ax.yaml
Normal file
3
resources/boundaries/geonames/ax.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: state
|
||||||
|
admin2: city
|
||||||
3
resources/boundaries/geonames/bd.yaml
Normal file
3
resources/boundaries/geonames/bd.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: state
|
||||||
|
# unclear what admin2 is, maybe city
|
||||||
3
resources/boundaries/geonames/be.yaml
Normal file
3
resources/boundaries/geonames/be.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: state
|
||||||
|
admin2: state_district
|
||||||
3
resources/boundaries/geonames/bg.yaml
Normal file
3
resources/boundaries/geonames/bg.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: state
|
||||||
|
admin2: city
|
||||||
3
resources/boundaries/geonames/br.yaml
Normal file
3
resources/boundaries/geonames/br.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: state
|
||||||
|
admin2: city
|
||||||
3
resources/boundaries/geonames/ca.yaml
Normal file
3
resources/boundaries/geonames/ca.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: state
|
||||||
|
admin2: state_district
|
||||||
3
resources/boundaries/geonames/ch.yaml
Normal file
3
resources/boundaries/geonames/ch.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: state
|
||||||
|
admin2: state_district
|
||||||
4
resources/boundaries/geonames/cz.yaml
Normal file
4
resources/boundaries/geonames/cz.yaml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
admin_codes:
|
||||||
|
# The GeoNames admin1 boundaries are admin_level=5 or 6 in OSM
|
||||||
|
# However, they do appear to be states, might need to update Czech OSM config
|
||||||
|
admin1: state_district
|
||||||
3
resources/boundaries/geonames/de.yaml
Normal file
3
resources/boundaries/geonames/de.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: state
|
||||||
|
admin2: state_district
|
||||||
3
resources/boundaries/geonames/dk.yaml
Normal file
3
resources/boundaries/geonames/dk.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: state
|
||||||
|
# admin2 is a mix of city and island, need to list specifically
|
||||||
3
resources/boundaries/geonames/do.yaml
Normal file
3
resources/boundaries/geonames/do.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: state
|
||||||
|
admin2: city
|
||||||
3
resources/boundaries/geonames/dz.yaml
Normal file
3
resources/boundaries/geonames/dz.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: state
|
||||||
|
admin2: state_district
|
||||||
3
resources/boundaries/geonames/es.yaml
Normal file
3
resources/boundaries/geonames/es.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: state
|
||||||
|
admin2: state_district
|
||||||
5
resources/boundaries/geonames/fi.yaml
Normal file
5
resources/boundaries/geonames/fi.yaml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
admin_codes:
|
||||||
|
# The GeoNames admin1 boundaries are admin_level=6 in OSM
|
||||||
|
# However, they do appear to be states, might need to update Finnish OSM config
|
||||||
|
admin1: state_district
|
||||||
|
admin2: state_district
|
||||||
3
resources/boundaries/geonames/fo.yaml
Normal file
3
resources/boundaries/geonames/fo.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: state
|
||||||
|
admin2: city
|
||||||
3
resources/boundaries/geonames/fr.yaml
Normal file
3
resources/boundaries/geonames/fr.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: state
|
||||||
|
admin2: state_district
|
||||||
3
resources/boundaries/geonames/gb.yaml
Normal file
3
resources/boundaries/geonames/gb.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: state
|
||||||
|
admin2: state_district
|
||||||
3
resources/boundaries/geonames/gt.yaml
Normal file
3
resources/boundaries/geonames/gt.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: state
|
||||||
|
admin2: state_district
|
||||||
2
resources/boundaries/geonames/gu.yaml
Normal file
2
resources/boundaries/geonames/gu.yaml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: city
|
||||||
3
resources/boundaries/geonames/hr.yaml
Normal file
3
resources/boundaries/geonames/hr.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: state
|
||||||
|
# admin2 is a mix of city and city_district, need to list specifically
|
||||||
4
resources/boundaries/geonames/hu.yaml
Normal file
4
resources/boundaries/geonames/hu.yaml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
admin_codes:
|
||||||
|
# The GeoNames admin1 boundaries are admin_level=6 in OSM
|
||||||
|
# However, they do appear to be states, might need to update Hungary OSM config
|
||||||
|
admin1: state_district
|
||||||
3
resources/boundaries/geonames/ie.yaml
Normal file
3
resources/boundaries/geonames/ie.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: state
|
||||||
|
admin2: state_district
|
||||||
2
resources/boundaries/geonames/im.yaml
Normal file
2
resources/boundaries/geonames/im.yaml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: city
|
||||||
3
resources/boundaries/geonames/in.yaml
Normal file
3
resources/boundaries/geonames/in.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: state
|
||||||
|
admin2: state_district
|
||||||
3
resources/boundaries/geonames/is.yaml
Normal file
3
resources/boundaries/geonames/is.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: state
|
||||||
|
admin2: city
|
||||||
3
resources/boundaries/geonames/it.yaml
Normal file
3
resources/boundaries/geonames/it.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: state
|
||||||
|
admin2: state_district
|
||||||
2
resources/boundaries/geonames/je.yaml
Normal file
2
resources/boundaries/geonames/je.yaml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: state
|
||||||
3
resources/boundaries/geonames/jp.yaml
Normal file
3
resources/boundaries/geonames/jp.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: state
|
||||||
|
# admin2 is a mix of state_district and city, need to list specifically
|
||||||
2
resources/boundaries/geonames/li.yaml
Normal file
2
resources/boundaries/geonames/li.yaml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: city
|
||||||
3
resources/boundaries/geonames/lk.yaml
Normal file
3
resources/boundaries/geonames/lk.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: state
|
||||||
|
admin2: state_district
|
||||||
3
resources/boundaries/geonames/lt.yaml
Normal file
3
resources/boundaries/geonames/lt.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: state
|
||||||
|
# admin2 is a mix of state_district and city, need to list specifically
|
||||||
4
resources/boundaries/geonames/lu.yaml
Normal file
4
resources/boundaries/geonames/lu.yaml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
admin_codes:
|
||||||
|
# The admin1 names don't appear to exist in OSM, but would be states otherwise
|
||||||
|
admin1: state
|
||||||
|
admin2: state_district
|
||||||
2
resources/boundaries/geonames/md.yaml
Normal file
2
resources/boundaries/geonames/md.yaml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: state_district
|
||||||
2
resources/boundaries/geonames/mp.yaml
Normal file
2
resources/boundaries/geonames/mp.yaml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: state_district
|
||||||
2
resources/boundaries/geonames/mt.yaml
Normal file
2
resources/boundaries/geonames/mt.yaml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: city
|
||||||
3
resources/boundaries/geonames/mx.yaml
Normal file
3
resources/boundaries/geonames/mx.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: state
|
||||||
|
admin2: state_district
|
||||||
3
resources/boundaries/geonames/my.yaml
Normal file
3
resources/boundaries/geonames/my.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: state
|
||||||
|
admin2: state_district
|
||||||
3
resources/boundaries/geonames/nl.yaml
Normal file
3
resources/boundaries/geonames/nl.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: state
|
||||||
|
admin2: city
|
||||||
3
resources/boundaries/geonames/no.yaml
Normal file
3
resources/boundaries/geonames/no.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: state
|
||||||
|
admin2: city
|
||||||
3
resources/boundaries/geonames/nz.yaml
Normal file
3
resources/boundaries/geonames/nz.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: state
|
||||||
|
admin2: state_district
|
||||||
3
resources/boundaries/geonames/ph.yaml
Normal file
3
resources/boundaries/geonames/ph.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: country_region
|
||||||
|
# admin2 is a mix of state_district and city, need to list specifically
|
||||||
3
resources/boundaries/geonames/pk.yaml
Normal file
3
resources/boundaries/geonames/pk.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: state
|
||||||
|
admin2: state_district
|
||||||
3
resources/boundaries/geonames/pl.yaml
Normal file
3
resources/boundaries/geonames/pl.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: state
|
||||||
|
admin2: state_district
|
||||||
6
resources/boundaries/geonames/pr.yaml
Normal file
6
resources/boundaries/geonames/pr.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: state_district
|
||||||
|
# The notion of a "barrio" in the official sense in PR is not quite a
|
||||||
|
# municipality, and has no current official purpose, but might be useful
|
||||||
|
# to have the name + "barrio" version available in libpostal
|
||||||
|
admin2: city
|
||||||
3
resources/boundaries/geonames/pt.yaml
Normal file
3
resources/boundaries/geonames/pt.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: state
|
||||||
|
admin2: state_district
|
||||||
4
resources/boundaries/geonames/ro.yaml
Normal file
4
resources/boundaries/geonames/ro.yaml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: state
|
||||||
|
# These are mostly admin_level=6, which maps to city in OSM
|
||||||
|
admin2: city
|
||||||
3
resources/boundaries/geonames/ru.yaml
Normal file
3
resources/boundaries/geonames/ru.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: state
|
||||||
|
admin2: state_district
|
||||||
3
resources/boundaries/geonames/se.yaml
Normal file
3
resources/boundaries/geonames/se.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: state
|
||||||
|
admin2: city
|
||||||
3
resources/boundaries/geonames/si.yaml
Normal file
3
resources/boundaries/geonames/si.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: city
|
||||||
|
# admin2 is a mix of city and city_district, need to list specifically
|
||||||
3
resources/boundaries/geonames/sk.yaml
Normal file
3
resources/boundaries/geonames/sk.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: state_district
|
||||||
|
# admin2 is a mix of state_district and city, need to list specifically
|
||||||
2
resources/boundaries/geonames/sm.yaml
Normal file
2
resources/boundaries/geonames/sm.yaml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: city
|
||||||
8
resources/boundaries/geonames/th.yaml
Normal file
8
resources/boundaries/geonames/th.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: state
|
||||||
|
|
||||||
|
overrides:
|
||||||
|
id:
|
||||||
|
# Bangkok the state is treated as a city
|
||||||
|
# Note: we do this in OSM to get the boundary, so duplicate in GeoNames
|
||||||
|
"1609348": "city"
|
||||||
3
resources/boundaries/geonames/tr.yaml
Normal file
3
resources/boundaries/geonames/tr.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: state
|
||||||
|
admin2: state_district
|
||||||
3
resources/boundaries/geonames/us.yaml
Normal file
3
resources/boundaries/geonames/us.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: state
|
||||||
|
admin2: state_district
|
||||||
2
resources/boundaries/geonames/yt.yaml
Normal file
2
resources/boundaries/geonames/yt.yaml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: city
|
||||||
3
resources/boundaries/geonames/za.yaml
Normal file
3
resources/boundaries/geonames/za.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
admin_codes:
|
||||||
|
admin1: state
|
||||||
|
admin2: state_district
|
||||||
Reference in New Issue
Block a user