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 SearchForPositionResult = SearchForPositionResult' {}
- newSearchForPositionResult :: Double -> Place -> SearchForPositionResult
- searchForPositionResult_placeId :: Lens' SearchForPositionResult (Maybe Text)
- searchForPositionResult_distance :: Lens' SearchForPositionResult Double
- searchForPositionResult_place :: Lens' SearchForPositionResult Place
Documentation
data SearchForPositionResult Source #
Contains a search result from a position search query that is run on a place index resource.
See: newSearchForPositionResult
smart constructor.
SearchForPositionResult' | |
|
Instances
newSearchForPositionResult Source #
:: Double | |
-> Place | |
-> SearchForPositionResult |
Create a value of SearchForPositionResult
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:placeId:SearchForPositionResult'
, searchForPositionResult_placeId
- The unique identifier of the place. You can use this with the GetPlace
operation to find the place again later.
For SearchPlaceIndexForPosition
operations, the PlaceId
is returned
only by place indexes that use HERE as a data provider.
$sel:distance:SearchForPositionResult'
, searchForPositionResult_distance
- The distance in meters of a great-circle arc between the query position
and the result.
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:place:SearchForPositionResult'
, searchForPositionResult_place
- Details about the search result, such as its address and position.
searchForPositionResult_placeId :: Lens' SearchForPositionResult (Maybe Text) Source #
The unique identifier of the place. You can use this with the GetPlace
operation to find the place again later.
For SearchPlaceIndexForPosition
operations, the PlaceId
is returned
only by place indexes that use HERE as a data provider.
searchForPositionResult_distance :: Lens' SearchForPositionResult Double Source #
The distance in meters of a great-circle arc between the query position and the result.
A great-circle arc is the shortest path on a sphere, in this case the Earth. This returns the shortest distance between two locations.
searchForPositionResult_place :: Lens' SearchForPositionResult Place Source #
Details about the search result, such as its address and position.