Skip to main content
Back to plugins
@capgo/capacitor-launch-navigator
Tutorial
by github.com/Cap-go

Launch Navigator

Open navigation apps like Google Maps or Apple Maps with directions to destinations

Guide

Tutorial on Launch Navigator

Using @capgo/capacitor-launch-navigator

Main plugin interface.

Install

bun add @capgo/capacitor-launch-navigator
bunx cap sync

What This Plugin Exposes

  • navigate - Navigate to a location using latitude and longitude.
  • isAppAvailable - Check if a specific navigation app is available.
  • getAvailableApps - Get list of available navigation apps on the device.
  • getSupportedApps - Get list of supported apps for the current platform.

Example Usage

navigate

Navigate to a location using latitude and longitude.

import { LaunchNavigator } from '@capgo/capacitor-launch-navigator';

await LaunchNavigator.navigate({} as {
    /**
     * Destination coordinates [latitude, longitude]
     */
    destination: [number, number];

    /**
     * Optional navigation options
     */
    options?: NavigateOptions;
  });

isAppAvailable

Check if a specific navigation app is available.

import { LaunchNavigator } from '@capgo/capacitor-launch-navigator';

await LaunchNavigator.isAppAvailable({} as {
    /**
     * App identifier to check
     */
    app: IOSNavigationApp | AndroidNavigationApp | string;
  });

getAvailableApps

Get list of available navigation apps on the device.

import { LaunchNavigator } from '@capgo/capacitor-launch-navigator';

await LaunchNavigator.getAvailableApps();

getSupportedApps

Get list of supported apps for the current platform.

import { LaunchNavigator } from '@capgo/capacitor-launch-navigator';

await LaunchNavigator.getSupportedApps();

Full Reference