Skip to content

Correctly parse address1 ending in US Route number#37

Open
mikepaszkiewicz wants to merge 2 commits intomoneals:masterfrom
Habitat-Food-Fast:fixus-route
Open

Correctly parse address1 ending in US Route number#37
mikepaszkiewicz wants to merge 2 commits intomoneals:masterfrom
Habitat-Food-Fast:fixus-route

Conversation

@mikepaszkiewicz
Copy link

Tweaks regex to prevent stripping ending route numbers (e.g -42 from addresses on US Routes. Changes were tested for parity against a sample of 2MM addresses from our internal dataset.

> parseAddress('737 US-42, ASHLAND, OH 44805')

//output
{
  //missing the -42
  "formattedAddress": "737 US, Ashland, OH 44805",
  "addressLine1": "737 US",
  "streetNumber": "737",
  "id": "737-US,-Ashland,-OH-44805"

  "zipCode": "44805",
  "stateAbbreviation": "OH",
  "stateName": "Ohio",
  "placeName": "Ashland",
   "streetName": "US",
}

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

Successfully merging this pull request may close these issues.

1 participant