ガイド
ネイティブジオコーダのチュートリアル
@capgo/nativegeocoderを使用
Capacitorネイティブの前方後方ジオコーディング用プラグイン
インストール
bun add @capgo/nativegeocoder
bunx cap sync
このプラグインが公開するもの
reverseGeocode- 緯度と経度を住所に変換します。forwardGeocode- 住所を緯度と経度に変換します。
使用例
reverseGeocode
緯度と経度を住所に変換します。
import { NativeGeocoder } from '@capgo/nativegeocoder';
await NativeGeocoder.reverseGeocode({} as ReverseOptions);
forwardGeocode
緯度と経度に住所を変換します。
import { NativeGeocoder } from '@capgo/nativegeocoder';
await NativeGeocoder.forwardGeocode({} as ForwardOptions);
フルリファレンス
- GitHub https://github.com/Cap-go/capacitor-nativegeocoder/
- ドキュメント: /docs/plugins/nativegeocoder/