メインコンテンツにジャンプ
@capgo/capacitor-nativegeocoder 名前が変更されました。 capgoから@capgo/capacitor-nativegeocoderに名前が変更されました。 場所 オープンソース

ネイティブジオコーダー Capacitor プラグイン

地理情報を使用して住所を座標に、座標を住所に変換します。

インストール

bun add @capgo/capacitor-nativegeocoder bunx cap sync
npm, pnpm または yarn
  • npm install @capgo/capacitor-nativegeocoder
  • pnpm add @capgo/capacitor-nativegeocoder
  • yarn add @capgo/capacitor-nativegeocoder

ガイド

CapacitorでNative Geocoderを使用する方法

デバイスでテストしてください

Download the Capgo app, then scan the QR code.

Native Geocoder プラグイン プレビュー QR code

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

フル リファレンス

@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 によって提供されるプラグインを参照してください。 プラグインの追加または更新 プラグインの追加または更新の実装詳細については

FAQ

ネイティブジオコーダー プラグイン FAQ

ネイティブジオコーダー プラグインをCapacitorアプリにインストールするにはどうすればいいですか?

Run "bun add @capgo/capacitor-nativegeocoder" (or "npm install @capgo/capacitor-nativegeocoder"), then run "bunx cap sync" so the iOS and Android projects pick up the native code. Import it from "@capgo/capacitor-nativegeocoder" in your app code.

React、Vue、Angularと@capgo/capacitor-nativegeocoderはどのように関係していますか?

Yes. Native Geocoder is a Capacitor package, so it works with any web framework that runs inside Capacitor, including Ionic, React, Vue, Angular, Svelte and plain JavaScript.

Which Capacitor version does @capgo/capacitor-nativegeocoder support?

Capgo plugins follow Capacitor's major version: use the plugin major version that matches your Capacitor major version (for example plugin v8 with Capacitor 8). The compatibility table in the GitHub README lists the maintained versions.

@capgo/capacitor-nativegeocoderは無料でオープンソースですか?

Yes. The source code is public on GitHub at https://github.com/Cap-go/capacitor-nativegeocoder/ and the package is free to install from npm. Bug reports and pull requests are welcome.

Can I update code that uses Native Geocoder without an App Store review?

Installing or upgrading the plugin changes native code, so it needs a new store build. After that, JavaScript, HTML and CSS changes that call the plugin can ship instantly with Capgo live updates.

アプリレビューの待たずにネイティブジオコーダの変更を配信

プラグインがストアビルドに追加されたら、Capgo ライブアップデートは、JavaScript、HTML、CSSの変更をユーザーに数分でプッシュします。

Capgoから始めます