473,839 Members | 1,392 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Parse Address

Hi all,

I'm about to start writing a routine to parse "standard" U.S. Addresses (if
there is such a thing...) Before I jump off into this, I was just wondering
if maybe someone out there had already seen some similar logic already
implemented somewhere? Here's basically what I'm trying to do:

123 Sesame Street NW

In this example, I want to parse out the Street Address as follows:

123 = House Number
Sesame = Street Name
Street = Street Type
NW = Street Directional

I know there are a lot more variations than this in addresses, which is why
this is so much fun right? So if anyone knows of any type of address
parsing mechanism already done out there, it'd be much appreciated.

Thx,
Mike C.
Nov 21 '05 #1
5 9122
There are quite a number of these already out there. However, all that I can
think of at the moment are integrated into full geo-coding applications,
which can be quite pricey depending upon your needs.

What type of addresses are you looking to parse?
Meaning USPS mailing addresses or Physical street addresses?
Why you ask? Well, on the surface you would think they are the same thing.
However, in reality they can be quite different.
Do you need to support building and or units? Such as "123 B1 Sesame Street
NW".
Do you need the standardized or just parsed? "123 Sesame ST NW". Or "123
North Main Street East" = "123 N Main ST E"
Do you need to parse addresses for the far north US, where they might use
Canadian style Alphanumeric addresses?
How discrete are your addresses? Meaning how many different fields are
discrete, such as Street Number, Street Name, City, State, Zipcode. Just how
many fields need to be constructed?

As you can guess, what might seem trivial at first can become quite
complicated.
I have an extensive set of address management utilities. I am currently
polishing off version 3 of a framework that is used extensively in utility
companies. However, it is written in VB6 and has some other unique
dependencies. What I have might not be a fit for you. Not that I am
necessarily pitching my product. There might be a much better match out
there depending upon your needs.

Gerald
"Michael C#" <xy*@yomomma.co m> wrote in message
news:u2******** ******@TK2MSFTN GP12.phx.gbl...
Hi all,

I'm about to start writing a routine to parse "standard" U.S. Addresses (if there is such a thing...) Before I jump off into this, I was just wondering if maybe someone out there had already seen some similar logic already
implemented somewhere? Here's basically what I'm trying to do:

123 Sesame Street NW

In this example, I want to parse out the Street Address as follows:

123 = House Number
Sesame = Street Name
Street = Street Type
NW = Street Directional

I know there are a lot more variations than this in addresses, which is why this is so much fun right? So if anyone knows of any type of address
parsing mechanism already done out there, it'd be much appreciated.

Thx,
Mike C.

Nov 21 '05 #2
There are quite a number of these already out there. However, all that I can
think of at the moment are integrated into full geo-coding applications,
which can be quite pricey depending upon your needs.

What type of addresses are you looking to parse?
Meaning USPS mailing addresses or Physical street addresses?
Why you ask? Well, on the surface you would think they are the same thing.
However, in reality they can be quite different.
Do you need to support building and or units? Such as "123 B1 Sesame Street
NW".
Do you need the standardized or just parsed? "123 Sesame ST NW". Or "123
North Main Street East" = "123 N Main ST E"
Do you need to parse addresses for the far north US, where they might use
Canadian style Alphanumeric addresses?
How discrete are your addresses? Meaning how many different fields are
discrete, such as Street Number, Street Name, City, State, Zipcode. Just how
many fields need to be constructed?

As you can guess, what might seem trivial at first can become quite
complicated.
I have an extensive set of address management utilities. I am currently
polishing off version 3 of a framework that is used extensively in utility
companies. However, it is written in VB6 and has some other unique
dependencies. What I have might not be a fit for you. Not that I am
necessarily pitching my product. There might be a much better match out
there depending upon your needs.

Gerald
"Michael C#" <xy*@yomomma.co m> wrote in message
news:u2******** ******@TK2MSFTN GP12.phx.gbl...
Hi all,

I'm about to start writing a routine to parse "standard" U.S. Addresses (if there is such a thing...) Before I jump off into this, I was just wondering if maybe someone out there had already seen some similar logic already
implemented somewhere? Here's basically what I'm trying to do:

123 Sesame Street NW

In this example, I want to parse out the Street Address as follows:

123 = House Number
Sesame = Street Name
Street = Street Type
NW = Street Directional

I know there are a lot more variations than this in addresses, which is why this is so much fun right? So if anyone knows of any type of address
parsing mechanism already done out there, it'd be much appreciated.

Thx,
Mike C.

Nov 21 '05 #3
Thanks Gerald. I'll e-mail you directly.

Thanks,
Mike C.

"Gerald Hernandez" <Cablewizard@sp *********@Yahoo .com> wrote in message
news:%2******** **********@TK2M SFTNGP12.phx.gb l...
There are quite a number of these already out there. However, all that I
can
think of at the moment are integrated into full geo-coding applications,
which can be quite pricey depending upon your needs.

What type of addresses are you looking to parse?
Meaning USPS mailing addresses or Physical street addresses?
Why you ask? Well, on the surface you would think they are the same thing.
However, in reality they can be quite different.
Do you need to support building and or units? Such as "123 B1 Sesame
Street
NW".
Do you need the standardized or just parsed? "123 Sesame ST NW". Or "123
North Main Street East" = "123 N Main ST E"
Do you need to parse addresses for the far north US, where they might use
Canadian style Alphanumeric addresses?
How discrete are your addresses? Meaning how many different fields are
discrete, such as Street Number, Street Name, City, State, Zipcode. Just
how
many fields need to be constructed?

As you can guess, what might seem trivial at first can become quite
complicated.
I have an extensive set of address management utilities. I am currently
polishing off version 3 of a framework that is used extensively in utility
companies. However, it is written in VB6 and has some other unique
dependencies. What I have might not be a fit for you. Not that I am
necessarily pitching my product. There might be a much better match out
there depending upon your needs.

Gerald
"Michael C#" <xy*@yomomma.co m> wrote in message
news:u2******** ******@TK2MSFTN GP12.phx.gbl...
Hi all,

I'm about to start writing a routine to parse "standard" U.S. Addresses

(if
there is such a thing...) Before I jump off into this, I was just

wondering
if maybe someone out there had already seen some similar logic already
implemented somewhere? Here's basically what I'm trying to do:

123 Sesame Street NW

In this example, I want to parse out the Street Address as follows:

123 = House Number
Sesame = Street Name
Street = Street Type
NW = Street Directional

I know there are a lot more variations than this in addresses, which is

why
this is so much fun right? So if anyone knows of any type of address
parsing mechanism already done out there, it'd be much appreciated.

Thx,
Mike C.


Nov 21 '05 #4
PyroPhytr
1 New Member
Gerald,

If you are still monitoring this thread, please reply to me. I'm also interested in an address parser written for VB6.

Thanks!
J Miller
May 4 '06 #5
Suzanne
1 New Member
Hi there!

Were you success in finding a good parser? I'd also like to find one.

Thanks,

Suzanne
May 19 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
4557
by: Martoni | last post by:
I need to parse a string with an embedded email address. The string always has the format NAME (name@domain) SOMETEXT. What I need to get is the email address as name@domain. I came up with this (I know it's broken, but it's a first start): <?php function ParseTicketEmail($ticket) {
2
2889
by: Salim | last post by:
Hi people, keep getting this errorParse error: parse error, unexpected T_STRING in order_fns.php line 91. the code is below for the file and I've indicated line 91 <?php function process_card($card_details) { // connect to payment gateway or // use gpg to encrypt and mail or // store in DB if you really want to
0
387
by: Michael C# | last post by:
Hi all, I'm about to start writing a routine to parse "standard" U.S. Addresses (if there is such a thing...) Before I jump off into this, I was just wondering if maybe someone out there had already seen some similar logic already implemented somewhere? Here's basically what I'm trying to do: 123 Sesame Street NW In this example, I want to parse out the Street Address as follows:
14
6025
by: NetworkElf | last post by:
Hi all, Does anyone have some code that shows an example of how to loop through a range of IP addresses? I'm using text boxes to get a start and end value for the range. I was thinking about using 4 nested for-next loops, but I seem to be having trouble working out the logic to validate the octets in the beginning and ending address so the range works correctly. i.e. 172.16.1.1/172.20.1.1 should loop 172-172,16-20,1-254,1-254...
11
2354
by: Peter Afonin | last post by:
Hello, I need to parse a string that returns the domain DNS records and to put this data into a DataTable. I don't have much experience in parsing strings, so I'm not aware of the efficient way how to do this. I've found some examples of CSV parser classes, but not sure how to use them in my case. Here is an example of the string: RRs\nsubname: @;priority: 5;address: mail.domainname.net.;rectype:
5
4129
by: pranyht | last post by:
for example if user enters Passing the parseAddress function "A. P. Croll & Son 2299 Lewes-Georgetown Hwy, Georgetown, DE 19947" returns: 2299 Lewes-Georgetown Hwy A. P. Croll & Son Georgetown DE 19947 i have thought of the following algorithm but i am having trouble implementing it...can anyone help me write the code? i know C and a bit of C++, so would prefer if the code was in these languages..
1
5714
by: pranyht | last post by:
given an address in a string, i need to parse the address from the string and return the structure Address. Signature: Address parseAddress(String address) Input: String with address(e.g. “Lunkad Tower, 6th floor, \r\n Viman Nagar, \r\n Pune 411014") Output: The structure Address public class Address { public string Street {get;set;}; // Lunkad Tower, 6th floor public string Locality {get;set;}; // Viman Nagar
5
4227
by: vultren | last post by:
Parse error: syntax error, unexpected $end in I keep getting that, I have no clue where to fix it. Any help would be VERY APPRECIATED! <?php if(isset($_POST)) { // EDIT THE 2 LINES BELOW AS REQUIRED
1
2294
by: vertigo262 | last post by:
I want to parse an address from a text field. for example textbox data = 123 test street, mountain view, CA 91302 Dim address = Address.text parse(address) to
0
9856
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9698
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10910
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10654
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10297
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7833
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5683
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4493
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4066
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.