aboutsummaryrefslogtreecommitdiffstats
path: root/apps/com.pelagicore.map/stores/MapStore.qml
diff options
context:
space:
mode:
Diffstat (limited to 'apps/com.pelagicore.map/stores/MapStore.qml')
-rw-r--r--apps/com.pelagicore.map/stores/MapStore.qml26
1 files changed, 12 insertions, 14 deletions
diff --git a/apps/com.pelagicore.map/stores/MapStore.qml b/apps/com.pelagicore.map/stores/MapStore.qml
index 4ce0e53f..cf1ed23c 100644
--- a/apps/com.pelagicore.map/stores/MapStore.qml
+++ b/apps/com.pelagicore.map/stores/MapStore.qml
@@ -38,7 +38,6 @@ import utils 1.0
QtObject {
id: root
- readonly property bool calculating: routeModel.status === RouteModel.Loading
readonly property alias model: routeModel
property string routeDistance
property string routeTime
@@ -78,11 +77,7 @@ QtObject {
}
property GeocodeModel intentGeoCodeModel: GeocodeModel {
- plugin: Plugin {
- name: "osm";
- locales: Style.languageLocale
- PluginParameter { name: "osm.useragent"; value: "Neptune UI" }
- }
+ plugin: herePlugin
limit: 20
onCountChanged: {
if (count > 0) {
@@ -91,6 +86,13 @@ QtObject {
}
}
+ readonly property Plugin herePlugin: Plugin {
+ name: "here";
+ locales: Style.languageLocale
+ PluginParameter { name: "here.app_id"; value: "jC7kvNx3H7lFMuExMDA7" }
+ PluginParameter { name: "here.token"; value: "0ehO2fWIAfkyOB5oxL6_cw" }
+ }
+
signal intentNavigationRequested(string address, var coord, var boundingBox)
function fetchCurrentLocation() { // PositionSource doesn't work on Linux
@@ -186,11 +188,7 @@ QtObject {
}
readonly property GeocodeModel geocodeModel: GeocodeModel {
- plugin: Plugin {
- name: "osm";
- locales: Style.languageLocale
- PluginParameter { name: "osm.useragent"; value: "Neptune UI" }
- }
+ plugin: herePlugin
onStatusChanged: {
if (status === RouteModel.Null) {
console.info("Search model idle");
@@ -211,7 +209,7 @@ QtObject {
query: RouteQuery {
waypoints: [root.startCoord, root.destCoord]
}
- plugin: Plugin { name: "osm" }
+ plugin: herePlugin
onStatusChanged: {
if (status === RouteModel.Null) {
@@ -238,7 +236,7 @@ QtObject {
query: RouteQuery {
waypoints: [root.currentLocationCoord, root.homeCoord]
}
- plugin: Plugin { name: "osm" }
+ plugin: herePlugin
onStatusChanged: {
if (status === RouteModel.Ready) {
@@ -255,7 +253,7 @@ QtObject {
query: RouteQuery {
waypoints: [root.currentLocationCoord, root.workCoord]
}
- plugin: Plugin { name: "osm" }
+ plugin: herePlugin
onStatusChanged: {
if (status === RouteModel.Ready) {
if (count > 0) {