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()
AddressgetMainAddressLine in interface Addresspublic void setMainAddressLine(String value)
AddresssetMainAddressLine in interface Addressvalue - String used to input single line, or street address line, or output street address
line in a Candidate.public String getAddressLastLine()
AddressgetAddressLastLine in interface Addresspublic void setAddressLastLine(String value)
AddresssetAddressLastLine in interface Addressvalue - String used to represent the address last line information.public String getPlaceName()
AddressgetPlaceName in interface Addresspublic void setPlaceName(String value)
AddresssetPlaceName in interface Addressvalue - String used to represent place name.public String getAreaName1()
AddressgetAreaName1 in interface Addresspublic void setAreaName1(String value)
AddresssetAreaName1 in interface Addressvalue - String used to represent largest geographic division of a countrypublic String getAreaName2()
AddressgetAreaName2 in interface Addresspublic void setAreaName2(String value)
AddresssetAreaName2 in interface Addressvalue - String used to represent secondary geographic division of a countrypublic String getAreaName3()
AddressgetAreaName3 in interface Addresspublic void setAreaName3(String value)
AddresssetAreaName3 in interface Addressvalue - String used to represent city or town namepublic String getAreaName4()
AddressgetAreaName4 in interface Addresspublic void setAreaName4(String value)
AddresssetAreaName4 in interface Addressvalue - String used to represent smallest geographic division of a countrypublic String getPostCode1()
AddressgetPostCode1 in interface Addresspublic void setPostCode1(String value)
AddresssetPostCode1 in interface Addressvalue - String used to represent main postal codepublic String getPostCode2()
AddressgetPostCode2 in interface Addresspublic void setPostCode2(String value)
AddresssetPostCode2 in interface Addressvalue - String used to represent main postal codepublic String getCountry()
AddressgetCountry in interface Addresspublic void setCountry(String value)
AddresssetCountry in interface Addressvalue - String used to represent countrypublic String getAddressNumber()
AddressgetAddressNumber in interface Addresspublic void setAddressNumber(String value)
AddresssetAddressNumber in interface Addressvalue - String used to represent house numberpublic String getStreetName()
AddressgetStreetName in interface Addresspublic void setStreetName(String value)
AddresssetStreetName in interface Addressvalue - String used to represent the street namepublic String getUnitType()
AddressgetUnitType in interface Addresspublic void setUnitType(String value)
AddresssetUnitType in interface Addressvalue - String used to represent the unit typepublic String getUnitValue()
AddressgetUnitValue in interface Addresspublic void setUnitValue(String value)
AddresssetUnitValue in interface Addressvalue - String used to represent the unit valuepublic Map<String,String> getCustomFields()
AddressgetCustomFields in interface Addresspublic void setCustomFields(Map<String,String> customFields)
AddresssetCustomFields in interface AddresscustomFields - map of custom fieldspublic void addCustomField(String key, String value)
AddressaddCustomField in interface Addresskey - this must be defined and understood by the target geocodervalue - the value to be inputpublic Map<String,Object> convertToMap()
convertToMap in interface GeoSerializeCopyright © 2024. All rights reserved.