How to integrate Google Maps?
-
@kd_wala I doubt using that QtLocation plugin can be considered legal, by the Terms and Conditions of Google Maps.
There was a dissucsion about using Google Maps not through their API's (JS, Java?), which looks like is not allowed. See comment:
https://bugreports.qt.io/browse/QTBUG-27304?focusedCommentId=300663&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-300663Alternative is to use QtWebView and control official web-based Goole Maps through QtWebChannel, by creating JavaScript webocket connection from within WebView to your app.
Or, create QtWebView-like wrapper for native Java Gogole Maps components, just like QtWebView creates and manages native web view on different mobile OSes. There are limitations of course, as QML components will not be able to overdraw on top of these native components.
-
@vladstelmahovsky can you tell me how to use the Geocode option? I need to be able to enter a postcode and then set the long and lat to that location
-
@joshmarshall95 just like any other QtLocation geocode API
-
@vladstelmahovsky
hi,
thank you very much indeed ...
how to set traffic layer in the map? -
@bahman309 I suppose as MapPolyline's if you have geo coordinates of traffic
-
@vladstelmahovsky
I want to use google traffic service -
@bahman309 I'm not aware about the service, sorry
-
@vladstelmahovsky
thank you... -
@bahman309 there is no traffic data API in QtLocation yet. and Navigation is in progress, afaik