Package com.azure.maps.search.models
Class GeocodingResponse
java.lang.Object
com.azure.maps.search.models.GeocodingResponse
- All Implemented Interfaces:
com.azure.json.JsonSerializable<GeocodingResponse>
public final class GeocodingResponse
extends Object
implements com.azure.json.JsonSerializable<GeocodingResponse>
This object is returned from a successful Geocoding call.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GeocodingResponsefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of GeocodingResponse from the JsonReader.List<com.azure.maps.search.implementation.models.FeaturesItem> Get the features property: The features property.Get the nextLink property: The is the link to the next page of the features returned.getType()Get the type property: The type of a FeatureCollection object must be FeatureCollection.setFeatures(List<com.azure.maps.search.implementation.models.FeaturesItem> features) Set the features property: The features property.setNextLink(String nextLink) Set the nextLink property: The is the link to the next page of the features returned.setType(FeatureCollectionEnum type) Set the type property: The type of a FeatureCollection object must be FeatureCollection.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
GeocodingResponse
public GeocodingResponse()Creates an instance of GeocodingResponse class.
-
-
Method Details
-
getType
Get the type property: The type of a FeatureCollection object must be FeatureCollection.- Returns:
- the type value.
-
setType
Set the type property: The type of a FeatureCollection object must be FeatureCollection.- Parameters:
type- the type value to set.- Returns:
- the GeocodingResponse object itself.
-
getFeatures
Get the features property: The features property.- Returns:
- the features value.
-
setFeatures
public GeocodingResponse setFeatures(List<com.azure.maps.search.implementation.models.FeaturesItem> features) Set the features property: The features property.- Parameters:
features- the features value to set.- Returns:
- the GeocodingResponse object itself.
-
getNextLink
Get the nextLink property: The is the link to the next page of the features returned. If it's the last page, no this field.- Returns:
- the nextLink value.
-
setNextLink
Set the nextLink property: The is the link to the next page of the features returned. If it's the last page, no this field.- Parameters:
nextLink- the nextLink value to set.- Returns:
- the GeocodingResponse object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<GeocodingResponse>- Throws:
IOException
-
fromJson
Reads an instance of GeocodingResponse from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of GeocodingResponse if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the GeocodingResponse.
-