NAVER Map
NAVER Map is NAVER's map and navigation app. Protocol Launcher allows you to generate NAVER Map URL Scheme links.
Usage
There are two ways to use this library:
- On-Demand import from subpaths enables tree-shaking and keeps bundles small.
- Full Import from the root package is convenient but includes all app modules.
Pick On-Demand for production builds; Full Import is fine for quick scripts or demos.
Select Installation Method
On-Demand
Recommended. Optimized for production.
Full Import
Convenient. Good for quick scripts.
Notes
NAVER's URL Scheme requires an appname parameter that identifies the calling app or web page. This module only exposes helpers for the documented nmap:// action paths: map, place, search, search/bus, route/public, route/car, route/walk, route/bicycle, and navigation.
Open NAVER Map
ts
import { openMap } from 'protocol-launcher/naver-map'
const url = openMap({
lat: 37.56661,
lng: 126.978388,
zoom: 13,
appname: 'com.example.myapp',
})Show a Point
ts
import { showPoint } from 'protocol-launcher/naver-map'
const url = showPoint({
lat: 37.56661,
lng: 126.978388,
name: '서울역',
appname: 'com.example.myapp',
})Search
ts
import { search } from 'protocol-launcher/naver-map'
const url = search({
query: '카페',
appname: 'com.example.myapp',
})Search Bus
ts
import { searchBus } from 'protocol-launcher/naver-map'
const url = searchBus({
query: 'M4101',
appname: 'com.example.myapp',
})Route
ts
import { route } from 'protocol-launcher/naver-map'
const url = route({
mode: 'car',
dlat: 37.5209436,
dlng: 127.1230074,
dname: '올림픽공원',
appname: 'com.example.myapp',
})Navigation
ts
import { navigation } from 'protocol-launcher/naver-map'
const url = navigation({
appname: 'com.example.myapp',
})