가이드
네이티브 지오코드에 대한 튜토리얼
Capgo/@capacitor/capgo-nativegeocoder 사용
Capacitor native forward and reverse geocoding 플러그인.
설치
npm install @capgo/capacitor-nativegeocoder
npx cap sync
이 플러그인은 다음을 제공합니다.
reverseGeocode- 위도와 경도에서 주소를 변환합니다.forwardGeocode- 주소에서 위도와 경도를 변환합니다.
예제 사용
reverseGeocode
위도와 경도에서 주소를 변환합니다.
import { NativeGeocoder } from '@capgo/capacitor-nativegeocoder';
await NativeGeocoder.reverseGeocode({} as ReverseOptions);
forwardGeocode
주소에서 위도와 경도를 변환합니다.
import { NativeGeocoder } from '@capgo/capacitor-nativegeocoder';
await NativeGeocoder.forwardGeocode({} as ForwardOptions);
전체 참조
- GitHub: https://github.com/Cap-go/capacitor-nativegeocoder/
- 문서: /docs/plugins/nativegeocoder/
capgo에서 capacitor-nativegeocoder를 계속 사용하세요.
__CAPGO_KEEP_0__을 사용 중이라면 capgo에서 capacitor-nativegeocoder를 사용하고 있습니다. __CAPGO_KEEP_0__을 사용하여 capgo을 capacitor-nativegeocoder와 연결하여 capgo/capacitor-nativegeocoder의 구현 세부 사항을 참조하세요. Getting Started Getting Started의 구현 세부 사항을 참조하세요. Capgo 플러그인 디렉토리 Capgo 플러그인 디렉토리의 제품 워크플로우를 참조하세요. Capacitor 플러그인들에 의해 Capgo Capacitor 플러그인들에 의해 Capgo의 구현 세부 사항을 참조하세요. 플러그인 추가 또는 업데이트 플러그인 추가 또는 업데이트 구현 세부 사항에 대한