PhoneGap: How can I show driving directions in the native maps app in Android

Discussion in 'HTML & Website Design' started by Robico, May 8, 2013.

  1. #1
    I'm building an phonegap app using HTML5/JS and it allows you to get directions between 2 locations. When you click for the directions, I would like it to go to the native Maps application.

    I have got it working in Apple using window.location = 'maps:saddr='+latitude+','+longitude+'&daddr='+location.y+','+location.x; but need to get it working for Android.

    I have been searching for a solution and have seen people mention the geo: uri which would be great if I just needed to show one location but I need it to give the directions between the 2 separate locations.

    Please help!
     
    Robico, May 8, 2013 IP
  2. probinson94na

    probinson94na Greenhorn

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #2
    you can refer to at http://forum.webgame68.com/threads/tai-game-android-vo-lam-3-%E2%80%93-y-thien-xuat-the.2022/
     
    probinson94na, May 8, 2013 IP