Browse Source

correct geonames-mil to geonamesmil to avoid errors with syntax

pull/1079/head
Tyler Pedelose 7 years ago
parent
commit
179a8f9441
  1. 4
      helper/type_mapping.js
  2. 2
      middleware/normalizeParentIds.js

4
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',

2
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; {
}

Loading…
Cancel
Save