Giter Club home page Giter Club logo

addresser's People

Contributors

arthurg avatar dependabot[bot] avatar moneals avatar nikhilw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

addresser's Issues

Not able to parse valid US addresses

Please see some examples of valid addresses that this library is not able to parse below.

These have been verified as actual physical addresses that do exist, so it's not a formatting error on the input side:

  • 1300 Providence Ridge Turn, North Chesterfield, VA 23236 ("Too many address lines" error)
  • 5210 Castlewood Rd Apt E, North Chesterfield, VA 23234 ("Too many address lines" error)
  • 2505 Pocoshock Pl Ste 103, North Chesterfield, VA 23235 ("Too many address lines" error)
  • 186 N Harrisburg St Apt 3, Oberlin, PA 17113 ("Too many address lines" error)
  • 400 Franklin St Apt 205, West Reading, PA 19611 ("Too many address lines" error)
  • 315 Salem St Apt A, West Pittston, PA 18643 ("Too many address lines" error)
  • 485 State St Apt B, Steelton, PA 17113 ("Too many address lines" error)
  • 67A Alameda De Las Pulgas, Redwood City, CA 94062 ("Invalid street address data" error)

Incomplete postal code (canada) leads to 'State not found'

Hello, in some cases where we only have canadian postal code first part, parser is mindfuck and couldn't find state:

1427 Rue de Normandie, Deux-Montagnes, QC J7R, Canada

if at line 121, we add something like:

else if(countrySection === 'Canada' && stateString.match(/\b[A-Z]\d[A-Z]\b/)){
      result.zipCode = stateString.match(/\b[A-Z]\d[A-Z]\b/)[0];
      result.zipCodeIsIncomplete=true;
      stateString = stateString.substring(0, stateString.length - result.zipCode.length).trim();
    }

I think it would "fix" some results... or at least it could break less things? What you think?

Not able to parse US address

1177 Avenue of the Americas, Fl 7, New York City, New York 10036, US

I am not able to parse this US address gives me a error of "Can not parse address. More than two address lines."
and sending the address in lower case doesn't finds the country as US. i think u should have case insensitive check there

Where is version 1.1.20

The published version is 1.1.20, but there are no tags with that version, and the master branch still says 1.1.19.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.