facebook

How integrate waze?

💡
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 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #341746 Reply

    nikols
    Member

    Hello everyone. who knows how to integrate a waze. I found the documentation on this link: http://www.waze.co.il/dev/documentation/ but do not understand where I have to insert the code.
    tried to change in the value of the “run java stsript” and copy the code into it. But wanting to redirect to a waze with a given address is not happening.
    please help.

    #341751

    Hi nikols,

    Please note that the code in the doc is not javascript code, It is iOS and android native code, so that it won’t work in Mobione apps. What you can do is try the url scheme that doc provides:

    center map to Ayalon and set zoom to 10
    waze://?ll=37.44469,-122.15971&z=10

    search for address:
    waze://?q=San%20Jose%20California

    Try linking a button or hyperlink widget with those url schemes as src. Be aware that it specifies iPhone API, so the most probably is that these url schemes won’t work on android.

    #341754

    nikols
    Member

    First of all, thank you.

    in ios the link does work though it and html link.
    but the question was how to link to waze worked on both systems, not just on ios.
    i have java script

    try
    {
    String url = “waze://?q=Hawaii”;
    Intent intent = new Intent( Intent.ACTION_VIEW, Uri.parse( url ) );
    startActivity( intent );
    }
    catch ( ActivityNotFoundException ex )
    {
    Intent intent = new Intent( Intent.ACTION_VIEW, Uri.parse( “market://details?id=com.waze” ) );
    startActivity(intent);
    }

    and i want to import it into the final APK.
    question where to insert and if can be more?
    thanks in advance.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: How integrate waze?

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