GeocodingResponse Class

  • java.lang.Object
    • com.azure.maps.search.models.GeocodingResponse

Implements

public final class GeocodingResponse
implements JsonSerializable<GeocodingResponse>

This object is returned from a successful Geocoding call.

Constructor Summary

Constructor Description
GeocodingResponse()

Creates an instance of GeocodingResponse class.

Method Summary

Modifier and Type Method and Description
static GeocodingResponse fromJson(JsonReader jsonReader)

Reads an instance of GeocodingResponse from the JsonReader.

List<com.azure.maps.search.implementation.models.FeaturesItem> getFeatures()

Get the features property: The features property.

String getNextLink()

Get the nextLink property: The is the link to the next page of the features returned.

FeatureCollectionEnum getType()

Get the type property: The type of a FeatureCollection object must be FeatureCollection.

GeocodingResponse setFeatures(List<FeaturesItem> features)

Set the features property: The features property.

GeocodingResponse setNextLink(String nextLink)

Set the nextLink property: The is the link to the next page of the features returned.

GeocodingResponse setType(FeatureCollectionEnum type)

Set the type property: The type of a FeatureCollection object must be FeatureCollection.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

GeocodingResponse

public GeocodingResponse()

Creates an instance of GeocodingResponse class.

Method Details

fromJson

public static GeocodingResponse fromJson(JsonReader jsonReader)

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.

getFeatures

public List<FeaturesItem> getFeatures()

Get the features property: The features property.

Returns:

the features value.

getNextLink

public String 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.

getType

public FeatureCollectionEnum getType()

Get the type property: The type of a FeatureCollection object must be FeatureCollection.

Returns:

the type value.

setFeatures

public GeocodingResponse setFeatures(List<FeaturesItem> features)

Set the features property: The features property.

Parameters:

features - the features value to set.

Returns:

the GeocodingResponse object itself.

setNextLink

public GeocodingResponse setNextLink(String nextLink)

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.

setType

public GeocodingResponse setType(FeatureCollectionEnum type)

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to