Re:Ask HN: What's a good US address parsing library?
by traviswingo on Monday November 21, 2016 @01:18PM
(#13007629)
Yeah. I've tested it before and it looks very promising, but I'm not sure the overhead is necessary for my use case. I'll need to run some tests against all options and figure out where the equilibrium lies between cost (size, memory, price, etc.) and functionality/ux.
libpostal had the best results and good abbreviation parsing ("St" for street, "blvd" for Boulevard, etc). We use this to check if two address strings are equal, so you can imagine how much abbreviations are important to us. The US postal department website has a list of postal abbreviations but writing our own address parser with this is not a simple task.
libpostal is a few gigs of download and will take about 2gb ram to setup. But worth it.