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 |
Get estimated position information as a payload in GeoJSON format. The payload measurement data is resolved using solvers that are provided by third-party vendors.
Synopsis
- data GetPositionEstimate = GetPositionEstimate' {
- cellTowers :: Maybe CellTowers
- gnss :: Maybe Gnss
- ip :: Maybe Ip
- timestamp :: Maybe POSIX
- wiFiAccessPoints :: Maybe [WiFiAccessPoint]
- newGetPositionEstimate :: GetPositionEstimate
- getPositionEstimate_cellTowers :: Lens' GetPositionEstimate (Maybe CellTowers)
- getPositionEstimate_gnss :: Lens' GetPositionEstimate (Maybe Gnss)
- getPositionEstimate_ip :: Lens' GetPositionEstimate (Maybe Ip)
- getPositionEstimate_timestamp :: Lens' GetPositionEstimate (Maybe UTCTime)
- getPositionEstimate_wiFiAccessPoints :: Lens' GetPositionEstimate (Maybe [WiFiAccessPoint])
- data GetPositionEstimateResponse = GetPositionEstimateResponse' {}
- newGetPositionEstimateResponse :: Int -> GetPositionEstimateResponse
- getPositionEstimateResponse_geoJsonPayload :: Lens' GetPositionEstimateResponse (Maybe ByteString)
- getPositionEstimateResponse_httpStatus :: Lens' GetPositionEstimateResponse Int
Creating a Request
data GetPositionEstimate Source #
See: newGetPositionEstimate
smart constructor.
GetPositionEstimate' | |
|
Instances
newGetPositionEstimate :: GetPositionEstimate Source #
Create a value of GetPositionEstimate
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:cellTowers:GetPositionEstimate'
, getPositionEstimate_cellTowers
- Retrieves an estimated device position by resolving measurement data
from cellular radio towers. The position is resolved using HERE's
cellular-based solver.
GetPositionEstimate
, getPositionEstimate_gnss
- Retrieves an estimated device position by resolving the global
navigation satellite system (GNSS) scan data. The position is resolved
using the GNSS solver powered by LoRa Cloud.
$sel:ip:GetPositionEstimate'
, getPositionEstimate_ip
- Retrieves an estimated device position by resolving the IP address
information from the device. The position is resolved using MaxMind's
IP-based solver.
GetPositionEstimate
, getPositionEstimate_timestamp
- Optional information that specifies the time when the position
information will be resolved. It uses the UNIX timestamp format. If not
specified, the time at which the request was received will be used.
$sel:wiFiAccessPoints:GetPositionEstimate'
, getPositionEstimate_wiFiAccessPoints
- Retrieves an estimated device position by resolving WLAN measurement
data. The position is resolved using HERE's Wi-Fi based solver.
Request Lenses
getPositionEstimate_cellTowers :: Lens' GetPositionEstimate (Maybe CellTowers) Source #
Retrieves an estimated device position by resolving measurement data from cellular radio towers. The position is resolved using HERE's cellular-based solver.
getPositionEstimate_gnss :: Lens' GetPositionEstimate (Maybe Gnss) Source #
Retrieves an estimated device position by resolving the global navigation satellite system (GNSS) scan data. The position is resolved using the GNSS solver powered by LoRa Cloud.
getPositionEstimate_ip :: Lens' GetPositionEstimate (Maybe Ip) Source #
Retrieves an estimated device position by resolving the IP address information from the device. The position is resolved using MaxMind's IP-based solver.
getPositionEstimate_timestamp :: Lens' GetPositionEstimate (Maybe UTCTime) Source #
Optional information that specifies the time when the position information will be resolved. It uses the UNIX timestamp format. If not specified, the time at which the request was received will be used.
getPositionEstimate_wiFiAccessPoints :: Lens' GetPositionEstimate (Maybe [WiFiAccessPoint]) Source #
Retrieves an estimated device position by resolving WLAN measurement data. The position is resolved using HERE's Wi-Fi based solver.
Destructuring the Response
data GetPositionEstimateResponse Source #
See: newGetPositionEstimateResponse
smart constructor.
GetPositionEstimateResponse' | |
|
Instances
newGetPositionEstimateResponse Source #
Create a value of GetPositionEstimateResponse
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:geoJsonPayload:GetPositionEstimateResponse'
, getPositionEstimateResponse_geoJsonPayload
- The position information of the resource, displayed as a JSON payload.
The payload uses the GeoJSON format, which a format that's used to
encode geographic data structures. For more information, see
GeoJSON.
$sel:httpStatus:GetPositionEstimateResponse'
, getPositionEstimateResponse_httpStatus
- The response's http status code.
Response Lenses
getPositionEstimateResponse_geoJsonPayload :: Lens' GetPositionEstimateResponse (Maybe ByteString) Source #
The position information of the resource, displayed as a JSON payload. The payload uses the GeoJSON format, which a format that's used to encode geographic data structures. For more information, see GeoJSON.
getPositionEstimateResponse_httpStatus :: Lens' GetPositionEstimateResponse Int Source #
The response's http status code.