Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data SearchForTextResult = SearchForTextResult' {}
- newSearchForTextResult :: Place -> SearchForTextResult
- searchForTextResult_distance :: Lens' SearchForTextResult (Maybe Double)
- searchForTextResult_placeId :: Lens' SearchForTextResult (Maybe Text)
- searchForTextResult_relevance :: Lens' SearchForTextResult (Maybe Double)
- searchForTextResult_place :: Lens' SearchForTextResult Place
Documentation
data SearchForTextResult Source #
Contains a search result from a text search query that is run on a place index resource.
See: newSearchForTextResult
smart constructor.
SearchForTextResult' | |
|
Instances
newSearchForTextResult Source #
Create a value of SearchForTextResult
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:distance:SearchForTextResult'
, searchForTextResult_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.
$sel:placeId:SearchForTextResult'
, searchForTextResult_placeId
- 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 as a data provider.
$sel:relevance:SearchForTextResult'
, searchForTextResult_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.
$sel:place:SearchForTextResult'
, searchForTextResult_place
- Details about the search result, such as its address and position.
searchForTextResult_distance :: Lens' SearchForTextResult (Maybe Double) Source #
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.
searchForTextResult_placeId :: Lens' SearchForTextResult (Maybe Text) Source #
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 as a data provider.
searchForTextResult_relevance :: Lens' SearchForTextResult (Maybe Double) Source #
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.
searchForTextResult_place :: Lens' SearchForTextResult Place Source #
Details about the search result, such as its address and position.