public abstract class GeocodingResponse extends Object implements Parcelable
GeocodingResult
items.Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
GeocodingResponse() |
Modifier and Type | Method and Description |
---|---|
static GeocodingResponse |
create(List<GeocodingResult> results)
Creates a new
GeocodingResponse with the given list of results. |
GeocodingResult |
getResult()
Returns the first result, or
null if there are no results. |
abstract List<GeocodingResult> |
getResults()
Returns the list of results.
|
boolean |
hasResults()
Returns whether the response contains any geocoding results.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
describeContents, writeToParcel
public static GeocodingResponse create(List<GeocodingResult> results)
GeocodingResponse
with the given list of results.public boolean hasResults()
public GeocodingResult getResult()
null
if there are no results.public abstract List<GeocodingResult> getResults()