Geo Intent Label not showing in Google Maps App Geo Intent Label not showing in Google Maps App android android

Geo Intent Label not showing in Google Maps App


No solution still even with latest map update 10.12.1 the label still does not show even if the documentation still says it shouldI've created an issue on Google's Issue tracker: https://issuetracker.google.com/issues/129726279

hopefully we'll have some information shortly.


I think we are going about it the wrong way here. If I was Google, I would also feel insecure about allowing developers to post directions with an abstract destination label, I am sure they never plan to fix this.

I recommend the following solution according to Google's new standards. https://developers.google.com/maps/documentation/urls/android-intents:

https://www.google.com/maps/dir/?api=1&destination=LATITUDE,LONGITUDE

If you look at most apps these days, including the ones I have built, this allows us to post a LAT/LONG for the user to go to with Google's own Address values built in as the destination label.

To actually launch the Google Maps application, simply launch a web intent, I use the application context in this case.

    fun startGoogleMaps(context: Context, lat: Double, long: Double) {        startWebBrowser(            context,            Uri.parse("https://www.google.com/maps/dir/?api=1&destination=$lat,$long")        )    }    fun startWebBrowser(context: Context, link: Uri?) {        if (link != null) {            val webIntent = Intent(Intent.ACTION_VIEW, link).apply {                addFlags(FLAG_ACTIVITY_NEW_TASK)            }            if (webIntent.resolveActivity(context.packageManager) != null) {                context.startActivity(webIntent)            }        }    }