/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains a search result from a text search query that is run on a place
* index resource.See Also:
AWS
* API Reference
The distance in meters of a great-circle arc between the bias position
* specified and the result. Distance
will be returned only if a bias
* position was specified in the query.
A great-circle arc is the * shortest path on a sphere, in this case the Earth. This returns the shortest * distance between two locations.
*/ inline double GetDistance() const{ return m_distance; } /** *The distance in meters of a great-circle arc between the bias position
* specified and the result. Distance
will be returned only if a bias
* position was specified in the query.
A great-circle arc is the * shortest path on a sphere, in this case the Earth. This returns the shortest * distance between two locations.
*/ inline bool DistanceHasBeenSet() const { return m_distanceHasBeenSet; } /** *The distance in meters of a great-circle arc between the bias position
* specified and the result. Distance
will be returned only if a bias
* position was specified in the query.
A great-circle arc is the * shortest path on a sphere, in this case the Earth. This returns the shortest * distance between two locations.
*/ inline void SetDistance(double value) { m_distanceHasBeenSet = true; m_distance = value; } /** *The distance in meters of a great-circle arc between the bias position
* specified and the result. Distance
will be returned only if a bias
* position was specified in the query.
A great-circle arc is the * shortest path on a sphere, in this case the Earth. This returns the shortest * distance between two locations.
*/ inline SearchForTextResult& WithDistance(double value) { SetDistance(value); return *this;} /** *Details about the search result, such as its address and position.
*/ inline const Place& GetPlace() const{ return m_place; } /** *Details about the search result, such as its address and position.
*/ inline bool PlaceHasBeenSet() const { return m_placeHasBeenSet; } /** *Details about the search result, such as its address and position.
*/ inline void SetPlace(const Place& value) { m_placeHasBeenSet = true; m_place = value; } /** *Details about the search result, such as its address and position.
*/ inline void SetPlace(Place&& value) { m_placeHasBeenSet = true; m_place = std::move(value); } /** *Details about the search result, such as its address and position.
*/ inline SearchForTextResult& WithPlace(const Place& value) { SetPlace(value); return *this;} /** *Details about the search result, such as its address and position.
*/ inline SearchForTextResult& WithPlace(Place&& value) { SetPlace(std::move(value)); return *this;} /** *The unique identifier of the place. You can use this with the
* GetPlace
operation to find the place again later.
For
* SearchPlaceIndexForText
operations, the PlaceId
is
* returned only by place indexes that use HERE or Grab as a data provider.
The unique identifier of the place. You can use this with the
* GetPlace
operation to find the place again later.
For
* SearchPlaceIndexForText
operations, the PlaceId
is
* returned only by place indexes that use HERE or Grab as a data provider.
The unique identifier of the place. You can use this with the
* GetPlace
operation to find the place again later.
For
* SearchPlaceIndexForText
operations, the PlaceId
is
* returned only by place indexes that use HERE or Grab as a data provider.
The unique identifier of the place. You can use this with the
* GetPlace
operation to find the place again later.
For
* SearchPlaceIndexForText
operations, the PlaceId
is
* returned only by place indexes that use HERE or Grab as a data provider.
The unique identifier of the place. You can use this with the
* GetPlace
operation to find the place again later.
For
* SearchPlaceIndexForText
operations, the PlaceId
is
* returned only by place indexes that use HERE or Grab as a data provider.
The unique identifier of the place. You can use this with the
* GetPlace
operation to find the place again later.
For
* SearchPlaceIndexForText
operations, the PlaceId
is
* returned only by place indexes that use HERE or Grab as a data provider.
The unique identifier of the place. You can use this with the
* GetPlace
operation to find the place again later.
For
* SearchPlaceIndexForText
operations, the PlaceId
is
* returned only by place indexes that use HERE or Grab as a data provider.
The unique identifier of the place. You can use this with the
* GetPlace
operation to find the place again later.
For
* SearchPlaceIndexForText
operations, the PlaceId
is
* returned only by place indexes that use HERE or Grab as a data provider.
The relative confidence in the match for a result among the results returned. * For example, if more fields for an address match (including house number, * street, city, country/region, and postal code), the relevance score is closer to * 1.
Returned only when the partner selected is Esri or Grab.
*/ inline double GetRelevance() const{ return m_relevance; } /** *The relative confidence in the match for a result among the results returned. * For example, if more fields for an address match (including house number, * street, city, country/region, and postal code), the relevance score is closer to * 1.
Returned only when the partner selected is Esri or Grab.
*/ inline bool RelevanceHasBeenSet() const { return m_relevanceHasBeenSet; } /** *The relative confidence in the match for a result among the results returned. * For example, if more fields for an address match (including house number, * street, city, country/region, and postal code), the relevance score is closer to * 1.
Returned only when the partner selected is Esri or Grab.
*/ inline void SetRelevance(double value) { m_relevanceHasBeenSet = true; m_relevance = value; } /** *The relative confidence in the match for a result among the results returned. * For example, if more fields for an address match (including house number, * street, city, country/region, and postal code), the relevance score is closer to * 1.
Returned only when the partner selected is Esri or Grab.
*/ inline SearchForTextResult& WithRelevance(double value) { SetRelevance(value); return *this;} private: double m_distance; bool m_distanceHasBeenSet = false; Place m_place; bool m_placeHasBeenSet = false; Aws::String m_placeId; bool m_placeIdHasBeenSet = false; double m_relevance; bool m_relevanceHasBeenSet = false; }; } // namespace Model } // namespace LocationService } // namespace Aws