moneals / addresser Goto Github PK
View Code? Open in Web Editor NEWStreet Address Parser for Node.js
License: MIT License
Street Address Parser for Node.js
License: MIT License
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:
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?
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
Repo looks awesome, and I need Canada support for my use case.
Would be happy to contribute back Canada address support @moneals you're interested
The published version is 1.1.20, but there are no tags with that version, and the master branch still says 1.1.19.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.