Skip to content

Commit

Permalink
feat(filter): Remove RGN records (#354)
Browse files Browse the repository at this point in the history
These records seem to correspond to large, non-administrative, regions
such as 'Northern Europe' and 'Southern California'. They feel very
subjective and don't map well into administrative hierarchies, often
coming up in unexpected search results.

There are only about 2200 and after a brief skim it looks safe to remove
them all.

Fixes #70
  • Loading branch information
orangejulius authored and missinglink committed Feb 19, 2019
1 parent 8621491 commit 1401fd0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/streams/featureCodeFilterStream.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ var filter = require('through2-filter');
var _ = require( 'lodash' );

var unwantedFcodes = [
'RGNE', // economic regions. consists of multiple cities and is unwanted for geocoding
'RGN', // large regions like 'Northern Europe' or 'Southern California' that don't fit well in admin hierarchies
'RGNE', // economic regions. consists of multiple cities and is unwanted for geocoding
'ADM1H', // historical
'ADM2H', // historical
'ADM3H', // historical
Expand Down

0 comments on commit 1401fd0

Please sign in to comment.