public class GeocodeServiceResponse extends Object
Constructor and Description |
---|
GeocodeServiceResponse(Response internalResponse)
The only constructor takes the response from the engine level and converts to use all concrete
objects to avoid classes defined by interfaces at the web service API level.
|
Modifier and Type | Method and Description |
---|---|
List<Candidate> |
getCandidates()
Returns the list of candidates.
|
Set<String> |
getCustomFieldKeys() |
String |
getCustomFieldValue(String key) |
Map<String,String> |
getCustomValues() |
int |
getTotalMatches()
For a regular geocode, we list the number of possible candidates that are considered "close"
with respect to the input address.
|
int |
getTotalPossibleCandidates()
For a reverse geocode, only one candidate can ever be returned.
|
String |
toString() |
public GeocodeServiceResponse(Response internalResponse) throws GeocodingException
internalResponse
- the response from the internal API layer.GeocodingException
- if internalResponse is null or data is unlicensedpublic List<Candidate> getCandidates()
public int getTotalPossibleCandidates()
public int getTotalMatches()
Copyright © 2024. All rights reserved.