facebook

Map Widget Directions

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #335375 Reply

    Brandon
    Member

    Is there a way to get actual directions with then map widget? I found one sample with a directions setting, but it still only showed the route, not directions. Or, is there a way to link to the google maps (page or app) with the current geolocation and destination and show the turn by turn directions?

    Thanks

    Edit: This is a web app, not native…

    #335387

    support-michael
    Keymaster

    To access advanced google maps apis such as directions requires some javascript coding. See the api here https://developers.google.com/maps/documentation/javascript/services#Directions

    #335389

    Brandon
    Member

    Support,

    I tried the code located here: http://www.genuitec.com/support-genuitec/viewtopic.php?f=8&t=3921&hilit=route

    Which seems to be the specified code in the api docs for directions, but it doesnt actually show the directions page.

    #335395

    Brandon
    Member

    I think I might have the solution. I will let you know if it does not work.

    #335419

    Brandon
    Member

    It didn’t work, but I think I might be on the right track.

    I found the setPanel in the API so I tried to use that since it seems to be what is used to display the directions page, but alas it didnt work out. I even tried assigning it its own panel using the getbyid to a panel.

    Any other ideas? I did figure out how to do it with a url link, but I would prefer to keep it all in app if possible.

    Thanks.

    #335425

    Unknown Author
    Participant

    There’s a Google Directions API. You can get directions as a JSON or XML object.

    You can also link to Google Maps with a url that’s something like: google-etc/q?+to:lat,lng+from:lat,lng

    #335427

    Brandon
    Member

    @1thinchip
    Thanks. Thats what I tried, the API but I cant seem to get it to show using the map widget. I may just resort to using the link.

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: Map Widget Directions

You must be logged in to post in the forum log in