Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Geo Intent Label not showing in Google Maps App

Since my Google Maps app updated recently, now version 10.11.1, the following code does not show the label as expected, documented, and previously working:

  val intent = Intent(Intent.ACTION_VIEW, Uri.parse("geo:38.8951,100.0364?q=38.8951,100.0364(foo)")).setPackage("com.google.android.apps.maps")   if (intent.resolveActivity(packageManager) == null) {     intent.setPackage(null)   }   startActivity(intent) 

And neither does this version (with 0,0 immediately after geo:):

  val intent = Intent(Intent.ACTION_VIEW, Uri.parse("geo:0,0?q=38.8951,100.0364(foo)")).setPackage("com.google.android.apps.maps")   if (intent.resolveActivity(packageManager) == null) {     intent.setPackage(null)   }   startActivity(intent) 

Neither does the example code in the official documentation show a label:

// Display a label at the location of Google's Sydney office Uri gmmIntentUri = Uri.parse("geo:0,0?q=-33.8666,151.1957(Google+Sydney)"); Intent mapIntent = new Intent(Intent.ACTION_VIEW, gmmIntentUri); mapIntent.setPackage("com.google.android.apps.maps"); startActivity(mapIntent); 

no "Google Sydney" label on Moto G5

like image 306
user2297550 Avatar asked Mar 09 '19 14:03

user2297550


People also ask

Why labels are not showing in Google Maps?

First off, ensure that you have zoomed in enough. Some street names will not show on the map unless you zoom in enough. This is because Google maps do not allow the street labels to overlap so the space for the street name can only be enough if you zoom right in.

How do I open a Google map with intent?

ACTION_VIEW, Uri. parse("geo:0,0? q=replace+this+with+an+address")); startActivity(intent); This Android code snippet will launch the google map with direction to the address you passed in.


2 Answers

Update: Scheduled to be fixed in v11.12 perhaps before the end of January 2022.

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

hopefully we'll have some information shortly.

like image 194
l.jacques Avatar answered Oct 05 '22 13:10

l.jacques


Per Google, it's a bug in the Google Maps app. It's fixed in version 11.12.

like image 40
Edward Brey Avatar answered Oct 05 '22 13:10

Edward Brey