Skip to content

Commit

Permalink
Merge pull request #203 from pelias/more-abbreviations
Browse files Browse the repository at this point in the history
Handle more abbreviations
  • Loading branch information
orangejulius authored Jun 30, 2020
2 parents ab94468 + 8b4375a commit 5682180
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions lib/normalizers.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,21 +69,26 @@ module.exports.abbreviateStreetSuffixes = function(val) {
}

var terms = {
'LOOP': 'LP',
'LANE': 'LN',
'COURT': 'CT',
'AVE': 'AV',
'AVENUE': 'AV',
'BOULEVARD': 'BLVD',
'CIRCLE': 'CIR',
'COURT': 'CT',
'COVE': 'CV',
'DRIVE': 'DR',
'HIGHWAY': 'HWY',
'JUNIOR': 'JR',
'WAY': 'WY',
'STREET': 'ST',
'PLACE': 'PL',
'AVENUE': 'AV',
'AVE': 'AV',
'TERRACE': 'TERR',
'LANE': 'LN',
'LOOP': 'LP',
'PARKWAY': 'PKWY',
'BOULEVARD': 'BLVD',
'PIKE': 'PKE',
'PLACE': 'PL',
'ROAD': 'RD',
'DRIVE': 'DR'
'STREET': 'ST',
'TERR': 'TER',
'TERRACE': 'TER',
'TRACE': 'TRCE',
'WAY': 'WY'
};

return replaceTerms(val, terms, 'gi');
Expand Down

0 comments on commit 5682180

Please sign in to comment.