Package com.azure.maps.search.models
Class SearchAddressResultItem
java.lang.Object
com.azure.maps.search.models.SearchAddressResultItem
Result object for a Search API response.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the address property: The address of the result.Get the addressRanges property: Describes the address range on both sides of the street for a search result.com.azure.core.models.GeoBoundingBox
Get the viewport property: The viewport that covers the result represented by the top-left and bottom-right coordinates of the viewport.Get the dataSources property: Optional section.Get the detourTime property: Detour time in seconds.Get the distanceInMeters property: Straight line distance between the result and geobias location in meters.Get the entityType property: The entityType property.Get the entryPoints property: Array of EntryPoints.getId()
Get the id property: Id property.getInfo()
Get the info property: Information about the original data source of the Result.Get the matchType property: Information on the type of match.Get the pointOfInterest property: Details of the returned POI including information such as the name, phone, url address, and classifications.com.azure.core.models.GeoPosition
Get the position property: A location represented as a latitude and longitude using short names 'lat' & 'lon'.getScore()
Get the score property: The value within a result set to indicate the relative matching score between results.getType()
Get the type property: One of: * POI * Street * Geography * Point Address * Address Range * Cross Street.setEntityType
(GeographicEntityType entityType) Set the entityType property: The entityType property.
-
Constructor Details
-
SearchAddressResultItem
public SearchAddressResultItem()
-
-
Method Details
-
getType
Get the type property: One of: * POI * Street * Geography * Point Address * Address Range * Cross Street.- Returns:
- the type value.
-
getId
Get the id property: Id property.- Returns:
- the id value.
-
getScore
Get the score property: The value within a result set to indicate the relative matching score between results. You can use this to determine that result x is twice as likely to be as relevant as result y if the value of x is 2x the value of y. The values vary between queries and is only meant as a relative value for one result set.- Returns:
- the score value.
-
getDistanceInMeters
Get the distanceInMeters property: Straight line distance between the result and geobias location in meters.- Returns:
- the distanceInMeters value.
-
getInfo
Get the info property: Information about the original data source of the Result. Used for support requests.- Returns:
- the info value.
-
getEntityType
Get the entityType property: The entityType property.- Returns:
- the entityType value.
-
setEntityType
Set the entityType property: The entityType property.- Parameters:
entityType
- the entityType value to set.- Returns:
- the SearchAddressResultItem object itself.
-
getPointOfInterest
Get the pointOfInterest property: Details of the returned POI including information such as the name, phone, url address, and classifications.- Returns:
- the pointOfInterest value.
-
getAddress
Get the address property: The address of the result.- Returns:
- the address value.
-
getPosition
public com.azure.core.models.GeoPosition getPosition()Get the position property: A location represented as a latitude and longitude using short names 'lat' & 'lon'.- Returns:
- the position value.
-
getBoundingBox
public com.azure.core.models.GeoBoundingBox getBoundingBox()Get the viewport property: The viewport that covers the result represented by the top-left and bottom-right coordinates of the viewport.- Returns:
- the viewport value.
-
getEntryPoints
Get the entryPoints property: Array of EntryPoints. Those describe the types of entrances available at the location. The type can be "main" for main entrances such as a front door, or a lobby, and "minor", for side and back doors.- Returns:
- the entryPoints value.
-
getAddressRanges
Get the addressRanges property: Describes the address range on both sides of the street for a search result. Coordinates for the start and end locations of the address range are included.- Returns:
- the addressRanges value.
-
getDataSource
Get the dataSources property: Optional section. Reference geometry id for use with the [Get Search Polygon](https://docs.microsoft.com/rest/api/maps/search/getsearchpolygon) API.- Returns:
- the dataSources value.
-
getMatchType
Get the matchType property: Information on the type of match.One of: * AddressPoint * HouseNumberRange * Street.
- Returns:
- the matchType value.
-
getDetourTime
Get the detourTime property: Detour time in seconds. Only returned for calls to the Search Along Route API.- Returns:
- the detourTime value.
-