Open Google Maps with address in Unity

Hi guys! First sorry my english is too bad…

I find this script:

 void Start(){
    StartPackage("com.google.android.apps.maps");
}

void StartPackage(string package){    
    AndroidJavaClass unityClass;
    AndroidJavaObject unityObject, packageManager;
    AndroidJavaObject launch;

    unityClass = new AndroidJavaClass("com.unity3d.player.UnityPlayer");
    unityObject = unityClass.GetStatic<AndroidJavaObject>("currentActivity");
    packageManager = unityObject.Call<AndroidJavaObject>("getPackageManager");
    launch = packageManager.Call<AndroidJavaObject>("getLaunchIntentForPackage", package);

    unityObject.Call("startActivity", launch);
}

With this code in start of my app open Google Maps immediatly.

My question is:

This code only open Google Maps but didn’t open with address how to use set or other function to open Google Maps with address?

Thanks!

try this bro… its work!

public void Open(){

	Application.OpenURL("http://maps.google.com/maps?q=London");
}

just replace “London” to your own destination…