Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

How to fill destination automatically in default map application in your device



  • So currently on my app there is a direction button which redirects to the default map application available on your phone(On android google map and on ios imap). So on android it is working fine it auto fills the destination but on ios the destination is not filling automatically.
    here is my code

    var link= "http://maps.google.com/?&daddr="+my_location;
    if(Qt.platform.os =="ios"){
        var  link_ios="http://maps.apple.com/&daddr="+my_location;
        Qt.openUrlExternally(link_ios);
    }
    else{
         Qt.openUrlExternally(link);
    }
    

  • Lifetime Qt Champion

    Hi,

    Aren't you missing the "?" for your Apple Maps call ?


Log in to reply