public class GeocodeAddress extends Object implements Address, GeoSerialize
Constructor and Description |
---|
GeocodeAddress()
Creates a new, empty address.
|
GeocodeAddress(Address orig)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addCustomField(String key,
String value)
Allows a single custom key-value pair to be added to an address.
|
Map<String,Object> |
convertToMap()
Convert this object to a "map of maps" where each map is Map<String, Object>
|
String |
getAddressLastLine()
The address last line holds the the location level information (e.g.
|
String |
getAddressNumber()
Used to hold the house number information
|
String |
getAreaName1()
Used to represent the largest geographic division in an area, such as a state, province, or
region
|
String |
getAreaName2()
Used to represent the secondary geographic division in an area, such as a county or district.
|
String |
getAreaName3()
Used to represent the city or town name
|
String |
getAreaName4()
Represents the smallest geographic division in an area, such as a city subdivision or locality
|
String |
getCountry()
The country of the address.
|
Map<String,String> |
getCustomFields()
The custom fields hold String key-value pairs.
|
String |
getMainAddressLine()
The main address line is use to input a single line (e.g., "1 Global Vw, Troy NY 12180", or the
street line information (e.g., "1 Global Vw").
|
String |
getPlaceName()
Used to hold the name of a business, building, or location.
|
String |
getPostCode1()
Represents the main postal code.
|
String |
getPostCode2()
Represents the secondary postal code, if used.
|
String |
getStreetName()
Represents the street name, e.g., "West Main St".
|
String |
getUnitType()
Used to represent the unit type (such as "Apt" or "Suite") where appropriate
|
String |
getUnitValue()
Used to represent the unit value (e.g., "3B") where appropriate
|
void |
setAddressLastLine(String value)
The address last line is used to represent the location level information, e.g.
|
void |
setAddressNumber(String value)
Represents the house number information
|
void |
setAreaName1(String value)
Represents the largest geographic division in an area, such as a state, province, or region
|
void |
setAreaName2(String value)
Represents the secondary geographic division in an area, such as a county or district.
|
void |
setAreaName3(String value)
Represents the city or town name
|
void |
setAreaName4(String value)
Represents the smallest geographic division in an area, such as a city subdivision or locality
|
void |
setCountry(String value)
The country of the address.
|
void |
setCustomFields(Map<String,String> customFields)
Used to map of custom fields
|
void |
setMainAddressLine(String value)
The main address line is use to input a single line (e.g., "1 Global Vw, Troy NY 12180", or the
street line information (e.g., "1 Global Vw").
|
void |
setPlaceName(String value)
Used to represent the name of a business, building, or location.
|
void |
setPostCode1(String value)
Represents the main postal code.
|
void |
setPostCode2(String value)
Represents the secondary postal code, if used.
|
void |
setStreetName(String value)
Represents the street name, e.g., "West Main St".
|
void |
setUnitType(String value)
Used to represent the unit type (such as "Apt" or "Suite") where appropriate
|
void |
setUnitValue(String value)
Used to represent the unit value (e.g., "3B") where appropriate
|
String |
toString() |
public GeocodeAddress()
public GeocodeAddress(Address orig)
orig
- Address to copy information frompublic String getMainAddressLine()
Address
getMainAddressLine
in interface Address
public void setMainAddressLine(String value)
Address
setMainAddressLine
in interface Address
value
- String used to input single line, or street address line, or output street address
line in a Candidate.public String getAddressLastLine()
Address
getAddressLastLine
in interface Address
public void setAddressLastLine(String value)
Address
setAddressLastLine
in interface Address
value
- String used to represent the address last line information.public String getPlaceName()
Address
getPlaceName
in interface Address
public void setPlaceName(String value)
Address
setPlaceName
in interface Address
value
- String used to represent place name.public String getAreaName1()
Address
getAreaName1
in interface Address
public void setAreaName1(String value)
Address
setAreaName1
in interface Address
value
- String used to represent largest geographic division of a countrypublic String getAreaName2()
Address
getAreaName2
in interface Address
public void setAreaName2(String value)
Address
setAreaName2
in interface Address
value
- String used to represent secondary geographic division of a countrypublic String getAreaName3()
Address
getAreaName3
in interface Address
public void setAreaName3(String value)
Address
setAreaName3
in interface Address
value
- String used to represent city or town namepublic String getAreaName4()
Address
getAreaName4
in interface Address
public void setAreaName4(String value)
Address
setAreaName4
in interface Address
value
- String used to represent smallest geographic division of a countrypublic String getPostCode1()
Address
getPostCode1
in interface Address
public void setPostCode1(String value)
Address
setPostCode1
in interface Address
value
- String used to represent main postal codepublic String getPostCode2()
Address
getPostCode2
in interface Address
public void setPostCode2(String value)
Address
setPostCode2
in interface Address
value
- String used to represent main postal codepublic String getCountry()
Address
getCountry
in interface Address
public void setCountry(String value)
Address
setCountry
in interface Address
value
- String used to represent countrypublic String getAddressNumber()
Address
getAddressNumber
in interface Address
public void setAddressNumber(String value)
Address
setAddressNumber
in interface Address
value
- String used to represent house numberpublic String getStreetName()
Address
getStreetName
in interface Address
public void setStreetName(String value)
Address
setStreetName
in interface Address
value
- String used to represent the street namepublic String getUnitType()
Address
getUnitType
in interface Address
public void setUnitType(String value)
Address
setUnitType
in interface Address
value
- String used to represent the unit typepublic String getUnitValue()
Address
getUnitValue
in interface Address
public void setUnitValue(String value)
Address
setUnitValue
in interface Address
value
- String used to represent the unit valuepublic Map<String,String> getCustomFields()
Address
getCustomFields
in interface Address
public void setCustomFields(Map<String,String> customFields)
Address
setCustomFields
in interface Address
customFields
- map of custom fieldspublic void addCustomField(String key, String value)
Address
addCustomField
in interface Address
key
- this must be defined and understood by the target geocodervalue
- the value to be inputpublic Map<String,Object> convertToMap()
convertToMap
in interface GeoSerialize
Copyright © 2024. All rights reserved.