An ElevationService implementation that queries the Open Elevation API for terrain heights.
More...
|
|
void | createManager () |
| | Creates the QNetworkAccessManager if not already created.
|
|
void | onFinished () |
| | Called when all network requests for a query have completed.
|
| void | processReply (QNetworkReply *reply) |
| | Processes a completed network reply and extracts elevation data.
|
|
|
Time | m_last_send_time |
| | Timestamp of the last sent request for rate limiting.
|
|
TimeSpan | m_max_querry_time |
| | Maximum allowed time for a query before timeout.
|
|
QNetworkAccessManager * | m_network_manager |
| | The network access manager for HTTP requests.
|
|
Dictionary< UUID, ProgressInfo * > | m_pending_progress |
| | Progress trackers for pending requests.
|
|
Dictionary< UUID, Buffer< QNetworkRequest > > | m_pending_queries |
| | Queued network requests by request UUID.
|
|
Dictionary< UUID, ElevationRequest * > | m_pending_requests |
| | Pending elevation requests keyed by UUID.
|
|
|
static ElevationService * | s_primary_service |
| | The singleton primary elevation service instance.
|
An ElevationService implementation that queries the Open Elevation API for terrain heights.
Definition at line 16 of file OpenElevationService.h.
◆ createRequest()
| QNetworkRequest OpenElevationService::createRequest |
( |
UUID | id, |
|
|
const String & | url ) const |
Creates a single HTTP request with the given URL.
- Parameters
-
| [in] | id | The request identifier UUID. |
| [in] | url | The URL string to query. |
- Returns
- The configured QNetworkRequest.
◆ createURLRequests()
Creates the HTTP URL requests needed to fulfill an elevation request.
- Parameters
-
| [in] | request | The elevation request. |
- Returns
- A buffer of QNetworkRequest objects.
◆ postRequest()
| virtual void OpenElevationService::postRequest |
( |
const ElevationRequest & | request | ) |
|
|
overridevirtual |
Submits an elevation request for asynchronous processing.
- Parameters
-
| [in] | request | The elevation request to process. |
Implements ElevationService.
◆ processReply()
| void OpenElevationService::processReply |
( |
QNetworkReply * | reply | ) |
|
|
protected |
Processes a completed network reply and extracts elevation data.
- Parameters
-
| [in] | reply | The network reply to process. |
◆ startRequest()
Begins sending the network requests for an elevation query.
- Parameters
-
| [in] | request | The elevation request to start. |
The documentation for this class was generated from the following file: