How do I show a marker in Maps launched by geo URI Intent?

Try this:

Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("geo:<lat>,<long>?q=<lat>,<long>(Label+Name)"));
startActivity(intent);

You can omit (Label+Name) if you don’t want a label, and it will choose one randomly based on the nearest street or other thing it thinks relevant.

Leave a Comment