openvenues / jpostal

Java/JNI bindings to libpostal for for fast international street address parsing/normalization
MIT License
105 stars 42 forks source link

Dedupe bindings #32

Closed iantabolt closed 8 months ago

iantabolt commented 6 years ago

Partially implements the discussion in #31

This adds support for Dedupe.getInstance().is{Name,HouseNumber,POBox,Unit,Floor,PostalCode}Dupe("x1", "x2") and corresponding isXDupeWithOptions("x1", "x2", dedupeOptions)

I didn't implement the fuzzy or toponym dupe methods yet because they seem a bit more complicated and to be honest I'm not sure I fully understand what those functions do. I think this PR will give a good base to build off of in the future though.

iantabolt commented 6 years ago

I could be wrong but it looks like CI is failing to run ./libpostal_data download all /home/travis/build/openvenues/jpostal/libpostal/data/libpostal, which I was also having trouble with while developing. I ended up downloading the data directly and running ./configure --disable-data-download to get everything to build locally.