@capgo/capacitor-nativegeocoder 사용
Capacitor 플러그인은 네이티브 전방 및 역방향 지오코드를 제공합니다.
설치
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/
Keep going from Using @capgo/capacitor-nativegeocoder
__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-nativegeocoder를 사용 중이라면 capgo/capacitor-nativegeocoder와 연결하세요. __CAPGO_KEEP_0__/__CAPGO_KEEP_1__-nativegeocoder의 implementation detail을 참조하세요. capgo/capacitor-nativegeocoder를 사용하여 native plugin 작업을 계획하고 있습니다. capgo/capacitor-nativegeocoder와 연결하세요. 시작하기 시작하기 구현 세부 사항을 위해 Capgo 플러그인 디렉토리 Capgo 플러그인 디렉토리에서 제품 워크플로를 위해 Capacitor Capgo 플러그인 Capacitor Capgo 플러그인 구현 세부 사항을 위해, 그리고 플러그인 추가 또는 업데이트 플러그인 추가 또는 업데이트 구현 세부 사항을 위해