|
|
|
@ -96,7 +96,7 @@ MapPanel::MapPanel(QWidget* parent) : QWidget(parent) { |
|
|
|
|
if (auto dongle_id = getDongleId()) { |
|
|
|
|
// Fetch favorite and recent locations
|
|
|
|
|
{ |
|
|
|
|
QString url = "https://api.commadotai.com/v1/navigation/" + *dongle_id + "/locations"; |
|
|
|
|
QString url = CommaApi::BASE_URL + "/v1/navigation/" + *dongle_id + "/locations"; |
|
|
|
|
RequestRepeater* repeater = new RequestRepeater(this, url, "ApiCache_NavDestinations", 30, true); |
|
|
|
|
QObject::connect(repeater, &RequestRepeater::receivedResponse, this, &MapPanel::parseResponse); |
|
|
|
|
QObject::connect(repeater, &RequestRepeater::failedResponse, this, &MapPanel::failedResponse); |
|
|
|
@ -104,7 +104,7 @@ MapPanel::MapPanel(QWidget* parent) : QWidget(parent) { |
|
|
|
|
|
|
|
|
|
// Destination set while offline
|
|
|
|
|
{ |
|
|
|
|
QString url = "https://api.commadotai.com/v1/navigation/" + *dongle_id + "/next"; |
|
|
|
|
QString url = CommaApi::BASE_URL + "/v1/navigation/" + *dongle_id + "/next"; |
|
|
|
|
RequestRepeater* repeater = new RequestRepeater(this, url, "", 10, true); |
|
|
|
|
HttpRequest* deleter = new HttpRequest(this); |
|
|
|
|
|
|
|
|
|