Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to integrate Google Maps?
Forum Updated to NodeBB v4.3 + New Features

How to integrate Google Maps?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
25 Posts 11 Posters 27.3k Views 5 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • TalklessT Offline
    TalklessT Offline
    Talkless
    wrote on last edited by Talkless
    #13

    @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-300663

    Alternative 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.

    1 Reply Last reply
    0
    • J Offline
      J Offline
      joshmarshall95
      wrote on last edited by
      #14

      @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

      V 1 Reply Last reply
      0
      • J joshmarshall95

        @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

        V Offline
        V Offline
        vladstelmahovsky
        wrote on last edited by
        #15

        @joshmarshall95 just like any other QtLocation geocode API

        bahman309B 1 Reply Last reply
        0
        • V vladstelmahovsky

          @joshmarshall95 just like any other QtLocation geocode API

          bahman309B Offline
          bahman309B Offline
          bahman309
          wrote on last edited by
          #16

          @vladstelmahovsky
          hi,
          thank you very much indeed ...
          how to set traffic layer in the map?

          V 1 Reply Last reply
          0
          • bahman309B bahman309

            @vladstelmahovsky
            hi,
            thank you very much indeed ...
            how to set traffic layer in the map?

            V Offline
            V Offline
            vladstelmahovsky
            wrote on last edited by
            #17

            @bahman309 I suppose as MapPolyline's if you have geo coordinates of traffic

            bahman309B 1 Reply Last reply
            0
            • V vladstelmahovsky

              @bahman309 I suppose as MapPolyline's if you have geo coordinates of traffic

              bahman309B Offline
              bahman309B Offline
              bahman309
              wrote on last edited by
              #18

              @vladstelmahovsky
              I want to use google traffic service

              V 1 Reply Last reply
              0
              • bahman309B bahman309

                @vladstelmahovsky
                I want to use google traffic service

                V Offline
                V Offline
                vladstelmahovsky
                wrote on last edited by
                #19

                @bahman309 I'm not aware about the service, sorry

                bahman309B 1 Reply Last reply
                0
                • V vladstelmahovsky

                  @bahman309 I'm not aware about the service, sorry

                  bahman309B Offline
                  bahman309B Offline
                  bahman309
                  wrote on last edited by
                  #20

                  @vladstelmahovsky
                  thank you...

                  1 Reply Last reply
                  0
                  • bahman309B Offline
                    bahman309B Offline
                    bahman309
                    wrote on last edited by
                    #21

                    anybody used googlemaps plugin?
                    anybody used navigation or traffic in QML?

                    1 Reply Last reply
                    0
                    • bahman309B Offline
                      bahman309B Offline
                      bahman309
                      wrote on last edited by
                      #22

                      anybody can to used google map api in QML
                      and used navigation and traffic from google map api ?

                      V 1 Reply Last reply
                      0
                      • bahman309B bahman309

                        anybody can to used google map api in QML
                        and used navigation and traffic from google map api ?

                        V Offline
                        V Offline
                        vladstelmahovsky
                        wrote on last edited by
                        #23

                        @bahman309 there is no traffic data API in QtLocation yet. and Navigation is in progress, afaik

                        1 Reply Last reply
                        0
                        • S Offline
                          S Offline
                          seb21
                          wrote on last edited by
                          #24

                          how to enable the satellite view in your plugin ?
                          thx

                          1 Reply Last reply
                          0
                          • kd_walaK kd_wala

                            @carles-sole-grau , When you done clone & build plugin, you should create folder 'geoservices' in same folder of file execute, then copy plugin into this 'geoservices' folder

                            You can see struct plugins in folder ( that why we have name 'geoservices') where you install Qt ex: '~/Qt5.8.0/5.8/gcc_64/plugins/ (I using Ubuntu & Qt5.8)

                            on QML you do like this:
                            Plugin {
                            id: mapPlugin
                            name: "googlemaps"
                            }

                            for tutorial how plugin, refer to example : http://doc.qt.io/qt-5/qtwidgets-tools-styleplugin-example.html
                            for detail refer to doc: http://doc.qt.io/qt-5/plugins-howto.html

                            A Offline
                            A Offline
                            AnhNT86
                            wrote on last edited by
                            #25

                            @kd_wala You can show Me how to search road in project after create google map succes in Qt app? Thank You!

                            1 Reply Last reply
                            0

                            • Login

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • Users
                            • Groups
                            • Search
                            • Get Qt Extensions
                            • Unsolved