Skip to main content
Back to plugins
@capgo/capacitor-nativegeocoder Renamed Renamed from @capgo/nativegeocoder to @capgo/capacitor-nativegeocoder so the package name matches the Capacitor plugin repository.
Tutorial
by github.com/Cap-go

Native Geocoder

Convert addresses to coordinates and coordinates to addresses using native geocoding

Guide

Tutorial on Native Geocoder

Using @capgo/capacitor-nativegeocoder

Capacitor plugin for native forward and reverse geocoding.

Install

npm install @capgo/capacitor-nativegeocoder
npx cap sync

What This Plugin Exposes

  • reverseGeocode - Convert latitude and longitude to an address.
  • forwardGeocode - Convert an address to latitude and longitude.

Example Usage

reverseGeocode

Convert latitude and longitude to an address.

import { NativeGeocoder } from '@capgo/capacitor-nativegeocoder';

await NativeGeocoder.reverseGeocode({} as ReverseOptions);

forwardGeocode

Convert an address to latitude and longitude.

import { NativeGeocoder } from '@capgo/capacitor-nativegeocoder';

await NativeGeocoder.forwardGeocode({} as ForwardOptions);

Full Reference