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 Details

    • GeocodingResponse

      public GeocodingResponse()
      Creates an instance of GeocodingResponse class.
  • Method Details

    • getType

      public FeatureCollectionEnum 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

      public List<com.azure.maps.search.implementation.models.FeaturesItem> 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

      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.
    • 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.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<GeocodingResponse>
      Throws:
      IOException
    • fromJson

      public static GeocodingResponse fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.