This document describes how to integrate the Kakao Navi API into your service with the Kakao SDK for JavaScript ("JavaScript SDK").
The JavaScript SDK allows users to start navigation or share location via the Kakao Navi application ("app"). If the Kakao Navi app is not installed on a user's device, the download page for the Kakao Navi app is open.
You can test the features described in this document in [Tools] > [JS SDK demo] menu.
Reference | App setting |
---|---|
Kakao.Navi.start() |
Install Initialize |
Permission | Prerequisite | Kakao Login | User consent |
---|---|---|---|
- | Register platforms | - | - |
Starts directions from a user's current location to the entered destination.
In JavaScript SDK 1.41.0 or higher, Kakao Navi does not support its web version that is started on a device where the Kakao Navi app is not installed. Thus, implement to open the download page for Kakao Navi if Kakao Navi is not installed. For more information, refer to Notice.
Call Kakao.Navi.start()
function. Pass the name of the destination to name
. Specify the x
and y
coordinates of the location as a parameter. Use coordType
to set coordinate system to use. Use either wgs84
or katec
.
Other optional parameters are available. Refer to the reference.
If the request is successful, the Kakao Navi app is launched to get directions to the specified destination. If the Kakao Navi app is not installed on a user's device, the user should be directed to the download page for the Kakao Navi app.
Kakao.Navi.start({
name: 'Hyundai Department Store PanGyo',
x: 127.11205203011632,
y: 37.39279717586919,
coordType: 'wgs84',
});
Reference | App setting |
---|---|
Kakao.Navi.share() |
Install Initialize |
Permission | Prerequisite | Kakao Login | User consent |
---|---|---|---|
- | Register platforms | - | - |
Provides a screen to share the destination specified on the Kakao Navi app.
Call Kakao.Navi.share()
. Pass the name of the destination to name
. Specify the x
and y
coordinates of the location as a parameter. Use coordType
to set coordinate system to use. Use either wgs84
or katec
.
If the request is successful, the Kakao Navi app is launched and shows the shared location. If the Kakao Navi app is not installed on a user's device, the user should be directed to the download page for the Kakao Navi app.
Kakao.Navi.share({
name: 'Hyundai Department Store PanGyo',
x: 127.11205203011632,
y: 37.39279717586919,
coordType: 'wgs84',
});