Hi, I want to try out some functions of Qt Location 5.0.
I’m only using QML Quick 2.0.

So I already activated and added the Plugin, “nokia” with the token and the app_id.
I also added the Proxy, so that so Map can be loaded.

Showing the Map and navigate to some Places with coordinates already works.
Map Circles and MapQuickItem works, too.

Now my problem, I added:

Qt Code:
  1. Plugin {
  2. id: myplugin
  3. name : "nokia"
  4. parameters: [
  5. PluginParameter { name: "app_id"; value: "xxx" },
  6. PluginParameter { name: "token"; value: "xxx" }
  7. ]
  8. }
To copy to clipboard, switch view to plain text mode 

Qt Code:
  1. Map{
  2. plugin: myplugin
  3.  
  4. Route{
  5. id: routeData
  6. }
  7.  
  8. RouteQuery {
  9. id: aQuery
  10. }
  11.  
  12. RouteModel {
  13. id: routeModel
  14. plugin: myplugin
  15. query: aQuery
  16. autoUpdate: false
  17. }
  18.  
  19. MapItemView {
  20. model: routeModel
  21. delegate: routeDelegate
  22. }
  23.  
  24. Component {
  25. id: routeDelegate
  26.  
  27. MapRoute {
  28. route: routeData
  29. line.color: "blue"
  30. line.width: 5
  31. smooth: true
  32. }
  33. }
  34. }
To copy to clipboard, switch view to plain text mode 

Now, on klick I change in JavaScript

Qt Code:
  1. aQuery.addWaypoint(startcoordinates)
  2. aQuery.addWaypoint(endcoordinates)
  3. aQuery.travelModes = RouteQuery.CarTravel
  4. routeModel.update()
To copy to clipboard, switch view to plain text mode 

There is no error shown, but it dows not work, too.

When I read and display the Data of routeData, then there is no error, too.
But
Qt Code:
  1. routeData.distance
To copy to clipboard, switch view to plain text mode 
and
Qt Code:
  1. routeData.travelTime
To copy to clipboard, switch view to plain text mode 
both is 0.


Can anyone help me?

Thank you.