-
Notifications
You must be signed in to change notification settings - Fork 371
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
standardize_address not accurate #756
Comments
I'm not sure, I can be of much help here as I don't know much on the structure of US addresses nor the internals of PostGIS'
What I can confirm is that the My output looks like this:
If you create a logical backup ( I'm afraid I can't do more than point you to the documentation or the PostGIS mailing lists for more help. |
Confirmed PostGIS issue: https://trac.osgeo.org/postgis/ticket/5695#ticket Thanks! |
It looks like this issue will be fixed upstream in PostGIS 3.4.3 and 3.5.0. I'm closing the issue. Thanks for investigating! |
standardize_address returns different results from the example on page 210 of the 2nd edition of PostGIS In Action.
select * from standardize_address('us_lex', 'us_gaz', 'us_rules', 'ONE E PIMA ST STE 999, TUCSON, AZ’)
It fails to identify basic pre-directionals, instead including them as part of the house number.
I recently upgraded to PostgresApp 2.7.2 (PG 16, PostGIS 3.4.1) basically to be able to use debug_standardize_address.
I did a pg_dumpall from the PG15 image, installed 2.7.2 and restored the dump to the new instance. As final step of the upgrade I dropped and re-created the address_standardizer_data_us extension which I believe created would have created new (not restored) gaz and lex files.
I have some background in address normalization/standardization and had every expectation that the PostGIS implementation would solve all my problems. I think I’ve been naive.
standardize_address appears to be incapable of parsing the simplest address.
Take for example:
select * from standardize_address('us_lex', 'us_gaz', 'us_rules’, '8907 W TROPICAIRE BLVD,NORTH PORT,FL, 34291’)
The routine insists on including ‘W’ as part of the house_num when it is clearly a pre-directional (predir).
debug_standardize_address identifies ‘W’ as a directional.
The only predir that appears to be recognized by standardize_address is ’S’ as ‘SOUTH’. These appear to be glaring shortcomings.
If it can be verified that this is not a PostgresApp issue I will raise it with the PostGIS committer and you can close this issue here. There seems to be very little recent work done on PostGIS address standardize functions.
The text was updated successfully, but these errors were encountered: