次のソースコードを使えば、Petalマップで特定な場所の情報を検索できます。
val uriString = "petalmaps://poidetail?center={検索場所}&marker={検索場所}"
Uri.parse(uriString)?.let { uri ->
Intent(Intent.ACTION_VIEW, uri).let { intent ->
if (intent.resolveActivity(requireContext().packageManager) != null) {
startActivity(intent)
}
}
}
GitHub
Petal Map Sample : https://github.com/Rei2020GitHub/MyPublicProject/tree/master/PetalMapSample