net.sourceforge.jgeocoder.us
Class AddressParser

java.lang.Object
  extended by net.sourceforge.jgeocoder.us.AddressParser

public class AddressParser
extends Object

TODO javadocs me

Author:
jliang

Constructor Summary
AddressParser()
           
 
Method Summary
static Map<AddressComponent,String> parseAddress(String rawAddr)
          Parses a raw address string, this delegates to parseAddress(String, boolean) with autoCorrectStateSpelling set to false
static Map<AddressComponent,String> parseAddress(String rawAddr, boolean autoCorrectStateSpelling)
          Parses a raw address string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddressParser

public AddressParser()
Method Detail

parseAddress

public static Map<AddressComponent,String> parseAddress(String rawAddr,
                                                        boolean autoCorrectStateSpelling)
Parses a raw address string

Parameters:
rawAddr -
autoCorrectStateSpelling - swith on/off auto correction on state mis-spelling
Returns:
a map of parsed address components

parseAddress

public static Map<AddressComponent,String> parseAddress(String rawAddr)
Parses a raw address string, this delegates to parseAddress(String, boolean) with autoCorrectStateSpelling set to false

Parameters:
rawAddr -
Returns:
a map of parsed address components


Copyright © 2008. All Rights Reserved.