0
0

More than 3 years have passed since last update.

プログラムでPetalマップの場所情報を検索する方法

Posted at

次のソースコードを使えば、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

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0