Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML/OSM maps, not showing street number

QML/OSM maps, not showing street number

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
5 Posts 3 Posters 774 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.
  • H Offline
    H Offline
    Hass
    wrote on last edited by
    #1

    When trying to acquire the address of some place from its coordinates (latitude,longitude),(reverse geocode) osm maps returns only the name of the street without the number. I tried using the "map viewer" example code provided by QT in order to see if it's a problem in my code or this feature is just not provided, but I found out that it only gives me the street name without the number too. Locating the address on OSM website shows the "add:housenumber" seperate from the "add:street" which is weird because there is no way to get the number on QT, there's "address.street" only.

    KillerSmathK 1 Reply Last reply
    0
    • H Hass

      When trying to acquire the address of some place from its coordinates (latitude,longitude),(reverse geocode) osm maps returns only the name of the street without the number. I tried using the "map viewer" example code provided by QT in order to see if it's a problem in my code or this feature is just not provided, but I found out that it only gives me the street name without the number too. Locating the address on OSM website shows the "add:housenumber" seperate from the "add:street" which is weird because there is no way to get the number on QT, there's "address.street" only.

      KillerSmathK Offline
      KillerSmathK Offline
      KillerSmath
      wrote on last edited by
      #2

      @Hass
      Are you sure if your reverse geocode query has a house number ?

      With House Number [Zoom Lvl 18]
      https://nominatim.openstreetmap.org/reverse.php?format=html&lat=43.64529279494597&lon=-79.38523801990962&zoom=18

      Without House Number [Zoom Lvl 16]
      https://nominatim.openstreetmap.org/reverse.php?format=html&lat=43.64529279494597&lon=-79.38523801990962&zoom=16

      @Computer Science Student - Brazil
      Web Developer and Researcher
      “Sometimes it’s the people no one imagines anything of who do the things that no one can imagine.” - Alan Turing

      1 Reply Last reply
      0
      • H Offline
        H Offline
        Hass
        wrote on last edited by
        #3

        @KillerSmath Well this is the problem, that in OSM it shows house number but in QT there is no possibility to put the house number as it should be included within the street as you can see here: https://doc.qt.io/qt-5/qml-qtpositioning-address.html#details
        Whenn fetching the street data in Qt from OSM, it only shows us the name of the street without the number as in the "reverse geocode" tool in the "map viewer" example in Qt.

        KillerSmathK 1 Reply Last reply
        0
        • H Hass

          @KillerSmath Well this is the problem, that in OSM it shows house number but in QT there is no possibility to put the house number as it should be included within the street as you can see here: https://doc.qt.io/qt-5/qml-qtpositioning-address.html#details
          Whenn fetching the street data in Qt from OSM, it only shows us the name of the street without the number as in the "reverse geocode" tool in the "map viewer" example in Qt.

          KillerSmathK Offline
          KillerSmathK Offline
          KillerSmath
          wrote on last edited by
          #4

          @Hass

          QAddress class has not a single variable to store street number but you can get the full address by text property.

          @Computer Science Student - Brazil
          Web Developer and Researcher
          “Sometimes it’s the people no one imagines anything of who do the things that no one can imagine.” - Alan Turing

          1 Reply Last reply
          0
          • M Offline
            M Offline
            Mikeeeeee
            wrote on last edited by
            #5

            But how to implement it in the code "map viewer"?

            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