public class GeocodingResponse extends Object implements Iterable<GeocodingResponse.Candidate>
| Modifier and Type | Class and Description |
|---|---|
class |
GeocodingResponse.Candidate
Geocoding candidate for a requested address.
|
| Modifier and Type | Method and Description |
|---|---|
static GeocodingResponse |
createWithJson(GeocodingResponse response,
String jsonString) |
String |
getCompleteJsonResponseAsString() |
GeocodingResponse.Candidate |
getRepresentativeCandidate() |
DefaultTargetCoordinate |
getRepresentativeGeocodeOfRequest() |
boolean |
isEmpty() |
Iterator<GeocodingResponse.Candidate> |
iterator() |
String |
toString()
Pretty prints the
GeocodingResponse, i.e. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic static GeocodingResponse createWithJson(GeocodingResponse response, String jsonString)
public String getCompleteJsonResponseAsString()
public DefaultTargetCoordinate getRepresentativeGeocodeOfRequest()
NoSuchElementException - when response contains no candidatespublic GeocodingResponse.Candidate getRepresentativeCandidate()
NoSuchElementException - when response contains no candidatespublic String toString()
GeocodingResponse, i.e. with indention and line breaks.public Iterator<GeocodingResponse.Candidate> iterator()
iterator in interface Iterable<GeocodingResponse.Candidate>public boolean isEmpty()
Copyright © 2017. All rights reserved.