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 use Google Maps Native API with Qt/QML

How to use Google Maps Native API with Qt/QML

Scheduled Pinned Locked Moved Mobile and Embedded
google apigoogle maps nat
8 Posts 4 Posters 5.9k Views
  • 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.
  • U Offline
    U Offline
    UenX
    wrote on 26 Jun 2015, 10:47 last edited by
    #1

    Hi All,

    I wonder if there is any way to use Native Google Maps API ( iOS/Android ) in Qt/QML?
    I do not want to use a webview cause there is a request limit (2500 per day) for that.

    Thank you very much.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 26 Jun 2015, 22:18 last edited by
      #2

      Hi and welcome to devnet,

      ICS has a set for modules here that might be of interest.

      Hope it helps

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • U Offline
        U Offline
        UenX
        wrote on 27 Jun 2015, 10:52 last edited by UenX
        #3

        Thank you for your suggestion.
        I have checked it, but their module seems to use webview too..

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mcosta
          wrote on 27 Jun 2015, 19:22 last edited by
          #4

          Hi,

          why you cannot use webview??

          Once your problem is solved don't forget to:

          • Mark the thread as SOLVED using the Topic Tool menu
          • Vote up the answer(s) that helped you to solve the issue

          You can embed images using (http://imgur.com/) or (http://postimage.org/)

          1 Reply Last reply
          0
          • U Offline
            U Offline
            UenX
            wrote on 28 Jun 2015, 04:18 last edited by
            #5

            why you cannot use webview??

            As I have mentioned, there is a usage limit for that method ( Maps JavaScript API v3 )

            https://developers.google.com/maps/faq#usage_apis

            1 Reply Last reply
            0
            • M Offline
              M Offline
              mcosta
              wrote on 28 Jun 2015, 09:55 last edited by mcosta
              #6

              Hi,

              to use "Native" API in QML you have to write your own component (as C++ plugin) and use in QML side.

              It's pretty easy to write a component using iOS API (you can easily mix C++ and Objective-C code) and you'll find a lot of examples in the Qt docs and searching on the Internet.
              About Android you should check if is possible to use Native API from NDK.

              What about to use https://developers.google.com/maps/documentation/webservices/ ?? For static Map the limit is 25000 requests/day

              Once your problem is solved don't forget to:

              • Mark the thread as SOLVED using the Topic Tool menu
              • Vote up the answer(s) that helped you to solve the issue

              You can embed images using (http://imgur.com/) or (http://postimage.org/)

              1 Reply Last reply
              0
              • U Offline
                U Offline
                UenX
                wrote on 29 Jun 2015, 02:03 last edited by
                #7

                to use "Native" API in QML you have to write your own component (as C++ plugin) and use in QML side.
                We have tried, but no use ( Cannot display native content and QML content at the same time )

                What about to use https://developers.google.com/maps/documentation/webservices/ ?? For static Map the limit is 25000 requests/day
                25000 is nice, but it's still not enough for us. Actually we do not want any kind of usage limitation in our app.

                Anyway thank you for your suggestions.

                1 Reply Last reply
                0
                • T Offline
                  T Offline
                  tmson87
                  wrote on 14 Jul 2015, 03:42 last edited by tmson87
                  #8

                  @UenX said:

                  We have tried, but no use ( Cannot display native content and QML content at the same time )

                  Is there anyone who has successfully embed Google Map GMSMapView(iOS)/MapView(Android) into QML?
                  Maybe I implemented incorrectly but the C++ plugin does not work as expectation since it opens map in full-screen and lay on top all QML components.

                  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