Browse Source

correct geonames-mil to geonamesmil to avoid errors with syntax

pull/1079/head
Tyler Pedelose 7 years ago
parent
commit
0774e6706b
  1. 2
      helper/type_mapping.js
  2. 2
      middleware/dedupe.js

2
helper/type_mapping.js

@ -30,7 +30,7 @@ var SOURCE_ALIASES = {
'osm': ['openstreetmap'],
'oa': ['openaddresses'],
'gn': ['geonames'],
'gnm': ['geonames-mil'],
'gnm': ['geonamesmil'],
'wof': ['whosonfirst']
};

2
middleware/dedupe.js

@ -77,7 +77,7 @@ function isPreferred(existing, candidateReplacement) {
var trumpsFunc = trumps.bind(null, existing, candidateReplacement);
return trumpsFunc('geonames', 'whosonfirst') || // WOF has bbox and is generally preferred
trumpsFunc('geonames-mil', 'whosonfirst') || // WOF has bbox and is generally preferred
trumpsFunc('geonamesmil', 'whosonfirst') || // WOF has bbox and is generally preferred
trumpsFunc('openstreetmap', 'openaddresses') || // addresses are better in OA
trumpsFunc('whosonfirst', 'openstreetmap'); // venues are better in OSM, at this time
}

Loading…
Cancel
Save