Re: Matching Postal Addresses
Re: Matching Postal Addresses
- Subject: Re: Matching Postal Addresses
- From: p3consulting <email@hidden>
- Date: Wed, 12 Nov 2003 11:35:21 +0100
On 12 nov. 2003, at 10:25, Brian Hannan wrote:
At my last job, I worked at a place that did geo location stuff. One
of the things was geo coding -- taking an address in natural human
language and getting the latitude and longitude for that location. It
can get pretty involved. However, without investing lots of time you
can get by with some good heuristics. I'd say go for normalization of
words that can have more than one format. For example, in US English
"street" can have the forms "st", "st.", "street" and nothing, such as
just "Elm". Like was suggested, flatten everything to upper and lower
case. Then attempt to normalize words, so as input you'll have:
"Elm St."
and as output you'd get
"elm street"
But write your normalization code in way that you avoid
St James st.
to becomes
street james street
instead of
saint james street
!
Pascal Pochet
P3 Consulting
email@hidden
http://www.p3-consulting.net
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.