Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: skip address normalization step #23

Open
fishybell opened this issue Apr 8, 2019 · 0 comments
Open

Feature Request: skip address normalization step #23

fishybell opened this issue Apr 8, 2019 · 0 comments

Comments

@fishybell
Copy link

When using the address parser, I would like an option for skipping the abbreviating of address components like state and street type.

For example:

var parser = require('parse-address');
var parsed = parser.parseLocation('1005 N Gravenstein Highway Sebastopol CA 95472');

// produces...
{ number: '1005',
  prefix: 'N',
  street: 'Gravenstein',
  type: 'Hwy',
  city: 'Sebastopol',
  state: 'CA',
  zip: '95472' }

With the new feature, all sub-strings would remain unmodified if desired:

var parser = require('parse-address');
var parsed = parser.parseLocation('1005 N Gravenstein Highway Sebastopol CA 95472',
                                  skipAbbrev=true); // or some other flag to skip abbreviation

// produces...
{ number: '1005',
  prefix: 'N',
  street: 'Gravenstein',
  type: 'Highway', // doesn't abbreviate
  city: 'Sebastopol',
  state: 'CA', // leaves abbreviated
  zip: '95472' }
@fishybell fishybell changed the title Feature Request: skip abbreviation step Feature Request: skip address normalization step Apr 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant