가이드
자연어 지오코드를 위한 튜토리얼
Using @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);
전체 참조
- GitHub: https://github.com/Cap-go/capacitor-nativegeocoder/
- 문서: /docs/plugins/nativegeocoder/