メインコンテンツにスキップ
プラグインに戻る
@capgo/nativegeocoder
チュートリアル
by github.com/Cap-go

ネイティブ ジオコーダー

ネイティブ ジオコーディングを使用して、住所を座標に、座標を住所に変換します。

ガイド

ネイティブジオコーダのチュートリアル

@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);

フルリファレンス