Intersection Class

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

Implements

public final class Intersection
implements JsonSerializable<Intersection>

The address of the result.

Constructor Summary

Constructor Description
Intersection()

Creates an instance of Intersection class.

Method Summary

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

Reads an instance of Intersection from the JsonReader.

String getBaseStreet()

Get the baseStreet property: Primary street for the location.

String getDisplayName()

Get the displayName property: Complete name of the intersection.

String getIntersectionType()

Get the intersectionType property: Type of intersection.

String getSecondaryStreet1()

Get the secondaryStreet1 property: The first intersecting street.

String getSecondaryStreet2()

Get the secondaryStreet2 property: If any, the second intersecting street.

Intersection setBaseStreet(String baseStreet)

Set the baseStreet property: Primary street for the location.

Intersection setDisplayName(String displayName)

Set the displayName property: Complete name of the intersection.

Intersection setIntersectionType(String intersectionType)

Set the intersectionType property: Type of intersection.

Intersection setSecondaryStreet1(String secondaryStreet1)

Set the secondaryStreet1 property: The first intersecting street.

Intersection setSecondaryStreet2(String secondaryStreet2)

Set the secondaryStreet2 property: If any, the second intersecting street.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

Intersection

public Intersection()

Creates an instance of Intersection class.

Method Details

fromJson

public static Intersection fromJson(JsonReader jsonReader)

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.

getBaseStreet

public String getBaseStreet()

Get the baseStreet property: Primary street for the location.

Returns:

the baseStreet value.

getDisplayName

public String getDisplayName()

Get the displayName property: Complete name of the intersection.

Returns:

the displayName value.

getIntersectionType

public String getIntersectionType()

Get the intersectionType property: Type of intersection.

Returns:

the intersectionType value.

getSecondaryStreet1

public String getSecondaryStreet1()

Get the secondaryStreet1 property: The first intersecting street.

Returns:

the secondaryStreet1 value.

getSecondaryStreet2

public String getSecondaryStreet2()

Get the secondaryStreet2 property: If any, the second intersecting street.

Returns:

the secondaryStreet2 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.

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.

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.

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.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to