GeocodingBatchRequestBody Class

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

Implements

public final class GeocodingBatchRequestBody
implements JsonSerializable<GeocodingBatchRequestBody>

The list of address geocoding queries/requests to process. The list can contain a max of 100 queries and must contain at least 1 query.

Constructor Summary

Constructor Description
GeocodingBatchRequestBody()

Creates an instance of GeocodingBatchRequestBody class.

Method Summary

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

Reads an instance of GeocodingBatchRequestBody from the JsonReader.

List<com.azure.maps.search.implementation.models.GeocodingBatchRequestItem> getBatchItems()

Get the batchItems property: The list of queries to process.

GeocodingBatchRequestBody setBatchItems(List<GeocodingBatchRequestItem> batchItems)

Set the batchItems property: The list of queries to process.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

GeocodingBatchRequestBody

public GeocodingBatchRequestBody()

Creates an instance of GeocodingBatchRequestBody class.

Method Details

fromJson

public static GeocodingBatchRequestBody fromJson(JsonReader jsonReader)

Reads an instance of GeocodingBatchRequestBody from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of GeocodingBatchRequestBody 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 GeocodingBatchRequestBody.

getBatchItems

public List<GeocodingBatchRequestItem> getBatchItems()

Get the batchItems property: The list of queries to process.

Returns:

the batchItems value.

setBatchItems

public GeocodingBatchRequestBody setBatchItems(List<GeocodingBatchRequestItem> batchItems)

Set the batchItems property: The list of queries to process.

Parameters:

batchItems - the batchItems value to set.

Returns:

the GeocodingBatchRequestBody object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to