Package com.azure.maps.search.models
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IntersectionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of Intersection from the JsonReader.Get the baseStreet property: Primary street for the location.Get the displayName property: Complete name of the intersection.Get the intersectionType property: Type of intersection.Get the secondaryStreet1 property: The first intersecting street.Get the secondaryStreet2 property: If any, the second intersecting street.setBaseStreet(String baseStreet) Set the baseStreet property: Primary street for the location.setDisplayName(String displayName) Set the displayName property: Complete name of the intersection.setIntersectionType(String intersectionType) Set the intersectionType property: Type of intersection.setSecondaryStreet1(String secondaryStreet1) Set the secondaryStreet1 property: The first intersecting street.setSecondaryStreet2(String secondaryStreet2) Set the secondaryStreet2 property: If any, the second intersecting street.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
-
Intersection
public Intersection()Creates an instance of Intersection class.
-
-
Method Details
-
getBaseStreet
Get the baseStreet property: Primary street for the location.- Returns:
- the baseStreet value.
-
setBaseStreet
Set the baseStreet property: Primary street for the location.- Parameters:
baseStreet- the baseStreet value to set.- Returns:
- the Intersection object itself.
-
getSecondaryStreet1
Get the secondaryStreet1 property: The first intersecting street.- Returns:
- the secondaryStreet1 value.
-
setSecondaryStreet1
Set the secondaryStreet1 property: The first intersecting street.- Parameters:
secondaryStreet1- the secondaryStreet1 value to set.- Returns:
- the Intersection object itself.
-
getSecondaryStreet2
Get the secondaryStreet2 property: If any, the second intersecting street.- Returns:
- the secondaryStreet2 value.
-
setSecondaryStreet2
Set the secondaryStreet2 property: If any, the second intersecting street.- Parameters:
secondaryStreet2- the secondaryStreet2 value to set.- Returns:
- the Intersection object itself.
-
getIntersectionType
Get the intersectionType property: Type of intersection.- Returns:
- the intersectionType value.
-
setIntersectionType
Set the intersectionType property: Type of intersection.- Parameters:
intersectionType- the intersectionType value to set.- Returns:
- the Intersection object itself.
-
getDisplayName
Get the displayName property: Complete name of the intersection.- Returns:
- the displayName value.
-
setDisplayName
Set the displayName property: Complete name of the intersection.- Parameters:
displayName- the displayName value to set.- Returns:
- the Intersection object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<Intersection>- Throws:
IOException
-
fromJson
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.
-