diff --git a/helper/type_mapping.js b/helper/type_mapping.js index 03a4eb47..08c596f3 100644 --- a/helper/type_mapping.js +++ b/helper/type_mapping.js @@ -20,7 +20,7 @@ var SOURCES = [ 'openstreetmap', 'openaddresses', 'geonames', - 'geonames-mil', + 'geonamesmil', 'whosonfirst']; /* @@ -54,7 +54,7 @@ var LAYERS_BY_SOURCE = { openaddresses: [ 'address' ], geonames: [ 'country', 'macroregion', 'region', 'county','localadmin', 'locality','borough', 'neighbourhood', 'venue' ], - geonames-mil: [ 'country', 'macroregion', 'region', 'county','localadmin', + geonamesmil: [ 'country', 'macroregion', 'region', 'county','localadmin', 'locality','borough', 'neighbourhood', 'venue' ], whosonfirst: [ 'continent', 'empire', 'country', 'dependency', 'macroregion', 'region', 'locality', 'localadmin', 'macrocounty', 'county', 'macrohood', 'borough', diff --git a/middleware/normalizeParentIds.js b/middleware/normalizeParentIds.js index ce87da10..2d825052 100644 --- a/middleware/normalizeParentIds.js +++ b/middleware/normalizeParentIds.js @@ -43,7 +43,7 @@ function normalizeParentIds(place) { // it's always WOF ids and hardcode to that if (place.source === 'geonames' && place.source_id === placetype_ids[0]) { source = place.source; - } elseif (place.source === 'geonames-mil' && place.source_id === placetype_ids[0]) { + } elseif (place.source === 'geonamesmil' && place.source_id === placetype_ids[0]) { source = place.source; { }