Open address links directly in maps

It would be great if unified map urls for Apple, Google, and other maps could open directly in their respective iOS/Android apps, rather than opening to a browser and then clicking the ‘Open In’ prompt. Alternatively, maybe add a feature to addresses to open the address directly in a specified maps app.

I don’t know about iOS but in Android a map Intent is normally sent when you open a link to a location. Here is a code example:

val latitude = 37.4220
val longitude = -122.0841

val mapIntent = Intent(
    Intent.ACTION_VIEW,
    Uri.parse("geo:$latitude,$longitude?q=$latitude,$longitude")
)

startActivity(mapIntent)

Depending on the users setting it can load a default map app. I suspect now the link to the location is treated as a web link instead of a map Intent.

Alternatively, it may be possible that for you set the browser as a default for locations but that would be unlikely.

I looked it up and apparently iOS doesn’t allow to make an app that has a link that opens a default map app (that the user can choose) like Android does, you have to be explicit about it or it has to be a setting.

1 Like