@capgo/capacitor-nativegeocoder
Capacitor plugin for native forward and reverse geocoding.
インストール
npm install @capgo/capacitor-nativegeocoder
npx cap sync
このプラグインが提供するもの
reverseGeocode- 緯度と経度を住所に変換するforwardGeocode- 緯度と経度に住所を変換します。
例の使用
reverseGeocode
緯度と経度から住所に変換します。
import { NativeGeocoder } from '@capgo/capacitor-nativegeocoder';
const result = await NativeGeocoder.reverseGeocode({
latitude: 48.8566,
longitude: 2.3522,
});
console.log(result);
forwardGeocode
住所を緯度と経度に変換します。
import { NativeGeocoder } from '@capgo/capacitor-nativegeocoder';
const result = await NativeGeocoder.forwardGeocode({ addressString: 'address-string' });
console.log(result);
フル リファレンス
- GitHub: https://github.com/Cap-go/capacitor-nativegeocoder/
- ドキュメント: /docs/plugins/nativegeocoder/
@capgo/capacitor-nativegeocoderを継続して使用してください。
Capacitor Native Geocoder を使用している場合 Using @capgo/capacitor-nativegeocoder Capacitor Native Geocoder を使用している場合、 @capgo/capacitor-nativegeocoder @capgo/capacitor-nativegeocoderの実装詳細 Getting Started Getting Startedの実装詳細については Capgo プラグインディレクトリ for the product workflow in Capgo Plugin Directory, Capacitor Capgoのプラグイン for Capacitor の実装詳細については、Capgo によって提供されるプラグインを参照してください。 プラグインの追加または更新 プラグインの追加または更新の実装詳細については