public class Candidate extends Object implements GeoSerialize, Serializable
Modifier and Type | Field and Description |
---|---|
protected Address |
address |
protected String |
formattedAddress |
protected String |
formattedLocationAddress |
protected String |
formattedStreetAddress |
protected String |
identifier |
protected FieldsMatching |
matchedFields |
protected com.mapinfo.midev.geometry.IPoint |
point |
protected String |
precisionCode |
protected int |
precisionLevel |
protected List<CandidateRange> |
ranges |
static String |
REVERSE_GEOCODE_DISTANCE |
static String |
REVERSE_GEOCODE_DISTANCE_UNIT |
Constructor and Description |
---|
Candidate() |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
convertToMap()
Convert this object to a "map of maps" where each map is Map<String, Object>
|
boolean |
equals(Object o) |
Address |
getAddress() |
String |
getAddressNumber()
Contains the house number information
|
String |
getAreaName1()
Contains the largest geographic division in an area, such as a state, province, or region
|
String |
getAreaName2()
Contains the secondary geographic division in an area, such as a county or district.
|
String |
getAreaName3()
Contains the city or town name
|
String |
getAreaName4()
Contains the smallest geographic division in an area, such as a city subdivision or locality
|
String |
getCoordinateSystemName()
Shortcut to provide information on the coordinate system projection of the candidate's location
point
|
String |
getCountry()
The country of the address.
|
Set<String> |
getCustomFieldKeys()
The custom fields allow return of String key-value pairs.
|
String |
getCustomFieldValue(String key)
Allows retrieval of a custom field value
|
String |
getFormattedAddress()
This returns the street and location information, correctly formatted for the country the
candidate is coming from.
|
String |
getFormattedLocationAddress()
This returns the location line information, correctly formatted for the country the candidate
is coming from.
|
String |
getFormattedStreetAddress()
This returns the street line information, correctly formatted for the country the candidate is
coming from.
|
String |
getIdentifier()
Returns an identifier for this candidate.
|
FieldsMatching |
getMatchedFields()
If requested in the input preference, this object will contain a description of what input
fields matched this candidate.
|
String |
getPlaceName()
Represents the name of a business, building, or location.
|
com.mapinfo.midev.geometry.IPoint |
getPoint()
The point lists the actual coordinate value of the candidate being returned.
|
String |
getPostCode1()
Contains the main postal code.
|
String |
getPostCode2()
Contains the secondary postal code, if used.
|
String |
getPrecisionCode()
Returns the geocoder precisionLevel code.
|
int |
getPrecisionLevel()
This method will return an int representing the precisionLevel of the point returned by a call
to getPoint().
|
List<CandidateRange> |
getRanges()
Returns requested candidate ranges, if any, ordered from closest to furthest.
|
String |
getSourceDictionary()
Returns the name of the source dictionary the candidate is from
|
String |
getStreetName()
Contains the street name, e.g., "West Main St".
|
String |
getUnitType()
Represents the unit type (such as "Apt" or "Suite") where appropriate
|
String |
getUnitValue()
Represents the unit value (e.g., "3B") where appropriate
|
Double |
getX()
Shortcut to provide the X value of the candidate's location point
|
Double |
getY()
Shortcut to provide the Y value of the candidate's location point
|
int |
hashCode() |
void |
setFormattedLocationAddress(String formattedLocationAddress) |
void |
setFormattedStreetAddress(String formattedStreetAddress) |
void |
setIdentifier(String identifier) |
void |
setPoint(com.mapinfo.midev.geometry.IPoint point) |
void |
setPrecisionCode(String precisionCode) |
void |
setPrecisionLevel(int precisionLevel) |
void |
setSourceDictionary(String sourceDictionary) |
String |
toString() |
public static final String REVERSE_GEOCODE_DISTANCE
public static final String REVERSE_GEOCODE_DISTANCE_UNIT
protected final Address address
protected final List<CandidateRange> ranges
protected String formattedStreetAddress
protected String formattedLocationAddress
protected com.mapinfo.midev.geometry.IPoint point
protected String identifier
protected String formattedAddress
protected String precisionCode
protected int precisionLevel
protected FieldsMatching matchedFields
public String getFormattedStreetAddress()
public void setFormattedStreetAddress(String formattedStreetAddress)
public String getFormattedLocationAddress()
public void setFormattedLocationAddress(String formattedLocationAddress)
public String getPlaceName()
public String getAreaName1()
public String getAreaName2()
public String getAreaName3()
public String getAreaName4()
public String getPostCode1()
public String getPostCode2()
public String getCountry()
public String getAddressNumber()
public String getStreetName()
public String getUnitType()
public String getUnitValue()
public Set<String> getCustomFieldKeys()
public String getCustomFieldValue(String key)
key
- key for this fieldpublic com.mapinfo.midev.geometry.IPoint getPoint()
public void setPoint(com.mapinfo.midev.geometry.IPoint point)
public String getIdentifier()
public void setIdentifier(String identifier)
public String getFormattedAddress()
public String getPrecisionCode()
The format of the geocode result string is
match_category [additional_match_information]
. Possible match categories are:
For the street locations with additional match information, the following categories exist:
The additional match information will be of the format HPNTSCZA
. If a match did
not occur for the specified component a dash (-) will appear in place of the letter. Possible
components are:
public void setPrecisionCode(String precisionCode)
public String getSourceDictionary()
public void setSourceDictionary(String sourceDictionary)
public int getPrecisionLevel()
public void setPrecisionLevel(int precisionLevel)
public FieldsMatching getMatchedFields()
public List<CandidateRange> getRanges()
public Address getAddress()
public Map<String,Object> convertToMap()
convertToMap
in interface GeoSerialize
public Double getX()
public Double getY()
public String getCoordinateSystemName()
Copyright © 2024. All rights reserved.