Class Intersection

java.lang.Object
com.azure.maps.search.models.Intersection
All Implemented Interfaces:
com.azure.json.JsonSerializable<Intersection>

public final class Intersection extends Object implements com.azure.json.JsonSerializable<Intersection>
The address of the result.
  • Constructor Details

    • Intersection

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

    • getBaseStreet

      public String getBaseStreet()
      Get the baseStreet property: Primary street for the location.
      Returns:
      the baseStreet value.
    • setBaseStreet

      public Intersection setBaseStreet(String baseStreet)
      Set the baseStreet property: Primary street for the location.
      Parameters:
      baseStreet - the baseStreet value to set.
      Returns:
      the Intersection object itself.
    • getSecondaryStreet1

      public String getSecondaryStreet1()
      Get the secondaryStreet1 property: The first intersecting street.
      Returns:
      the secondaryStreet1 value.
    • setSecondaryStreet1

      public Intersection setSecondaryStreet1(String secondaryStreet1)
      Set the secondaryStreet1 property: The first intersecting street.
      Parameters:
      secondaryStreet1 - the secondaryStreet1 value to set.
      Returns:
      the Intersection object itself.
    • getSecondaryStreet2

      public String getSecondaryStreet2()
      Get the secondaryStreet2 property: If any, the second intersecting street.
      Returns:
      the secondaryStreet2 value.
    • setSecondaryStreet2

      public Intersection setSecondaryStreet2(String secondaryStreet2)
      Set the secondaryStreet2 property: If any, the second intersecting street.
      Parameters:
      secondaryStreet2 - the secondaryStreet2 value to set.
      Returns:
      the Intersection object itself.
    • getIntersectionType

      public String getIntersectionType()
      Get the intersectionType property: Type of intersection.
      Returns:
      the intersectionType value.
    • setIntersectionType

      public Intersection setIntersectionType(String intersectionType)
      Set the intersectionType property: Type of intersection.
      Parameters:
      intersectionType - the intersectionType value to set.
      Returns:
      the Intersection object itself.
    • getDisplayName

      public String getDisplayName()
      Get the displayName property: Complete name of the intersection.
      Returns:
      the displayName value.
    • setDisplayName

      public Intersection setDisplayName(String displayName)
      Set the displayName property: Complete name of the intersection.
      Parameters:
      displayName - the displayName value to set.
      Returns:
      the Intersection 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<Intersection>
      Throws:
      IOException
    • fromJson

      public static Intersection fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of Intersection from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of Intersection 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 Intersection.