Navigation intent that would work with maps and waze
I've done this myself and have had no issues using it the following way:
intent.setData(Uri.parse("geo:" + getLatitude() + "," +
getLongitude() + "?q=" + getStreet() + "+" +
getHousenumber() + "+" + getPostalcode() + "+" +
getCity()));
The difference is that I use "&q=" for the query as stated by Google.
See: https://developer.android.com/guide/components/intents-common.html#Maps
This is a simple way and works on both of them:
Java
String uri = "geo: latitude,longtitude ?q= latitude,longtitude";
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(uri)));
Kotlin
val uri = "geo: $latitude,$longtitude ?q= $latitude,$longtitude"
startActivity(Intent(Intent.ACTION_VIEW, Uri.parse(uri)))
I hope this will be useful