사이드 메뉴
Getting started
Kakao Developers
Login
Communication
Advertisement
- Concepts
- Ad creation: Ad account
- Ad creation: Campaign
- Ad creation: Ad group
- Targeting for ad group
- Custom audience targeting for ad group
- Ad creation: Creative common
- Ad creation: Display creative
- Ad creation: Message creative
- Ad creation: Personalized message creative
- Bizboard landing settings
- Report
- Message management
- Personalized message management
- Message ad management
- Message ad operation
- Ad View management
- Business Form linkage management
- Pixel & SDK linkage management
- Audience management
- Engagement targeting management
- Customer file management
- Friend group management
- Ad account management
- Reference
- Type information
- Error code
Android
This document describes how to integrate the Kakao Navi API into your service with the Kakao SDK for Android ("Android SDK").
The Kakao Navi API provides the navigateIntent() function for navigation and the shareDestinationIntent() function for location sharing.
navigateIntent() and shareDestinationIntent() return Intent to invoke the navigation and location sharing function via the Kakao Navi app ("app"). If the Kakao Navi app is installed on a user's device, the app is launched. If not, the user should be directed to the download page for the Kakao Navi app.
To check if the Kakao Navi app is installed on a user's device, use the isKakaoNaviInstalled() method. Here is an example to check if the Kakao Navi app is installed.
if (NaviClient.instance.isKakaoNaviInstalled(context)) {Log.i(TAG, "Possible to use navigation on Kakao Navi app.")} else {Log.i(TAG, "Kakao Navi app is not installed.")}
| Reference | App setting |
|---|---|
[SDK] navigateIntent()[SDK] Location[SDK] NaviOption | Install Initialize |
| Permission | Prerequisite | Kakao Login | User consent |
|---|---|---|---|
| - | Native app key | - | - |
Starts directions from a user's current location to the entered destination.
- From Android SDK 2.8.4, the feature to run directions on the web is no longer available if Kakao Navi is not installed.
- If Kakao Navi is not installed, users are redirected to the installation page.
- The web directions feature provided in previous versions will also be discontinued in the future, so updating to the latest version is recommended.
Call the navigateIntent() method defined in the NaviClient class. You must pass destination as Location object that containing the destination information as an argument. You can also specify the desired search criteria using NaviOption.
// Navigationif (NaviClient.instance.isKakaoNaviInstalled(requireContext())) {// If Kakao Navi is installed, navigation starts on Kakao Navi with WGS84.startActivity(NaviClient.instance.navigateIntent(Location("카카오 판교오피스", "127.108640", "37.402111"),NaviOption(coordType = CoordType.WGS84)))} else {// If Kakao Navi is not installed, open the download page for Kakao Navi.startActivity(Intent(Intent.ACTION_VIEW,Uri.parse(Constants.WEB_NAVI_INSTALL)).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TOP))}

This API also provides a function to specify a list of waypoints. To add waypoints, pass viaList through Location object.
// Navigationif (NaviClient.instance.isKakaoNaviInstalled(requireContext())) {// If Kakao Navi is installed, navigation via waypoints starts on Kakao Navi with WGS84.startActivity(NaviClient.instance.navigateIntent(Location("카카오 판교오피스", "127.108640", "37.402111"),NaviOption(coordType = CoordType.WGS84),// Set a list of waypoints.listOf(Location("판교역 1번출구", "127.111492", "37.395225"))))} else {// If Kakao Navi is not installed, open the download page for Kakao Navi.startActivity(Intent(Intent.ACTION_VIEW,Uri.parse(Constants.WEB_NAVI_INSTALL)).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TOP))}
| Reference | App setting |
|---|---|
[SDK] shareDestinationIntent()[SDK] Location[SDK] NaviOption | Install Initialize |
| Permission | Prerequisite | Kakao Login | User consent |
|---|---|---|---|
| - | Native app key | - | - |
Provides a screen to share the destination specified on the Kakao Navi app.
Call the shareDestinationIntent() method in the NaviClient class, which returns Intent. You must pass destination as Location object containing the location information as an argument. You can also specify the desired search criteria using NaviOption.
// Sharing locationif (NaviClient.instance.isKakaoNaviInstalled(requireContext())) {// If Kakao Navi is installed, location is shared on Kakao Navi with WGS84.startActivity(NaviClient.instance.shareDestinationIntent(Location("카카오 판교오피스", "127.108640", "37.402111"),NaviOption(coordType = CoordType.WGS84)))} else {// If Kakao Navi is not installed, open the download page for Kakao Navi.startActivity(Intent(Intent.ACTION_VIEW,Uri.parse(Constants.WEB_NAVI_INSTALL)).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TOP))}

This API also provides a function to specify a list of waypoints. To share loacation with waypoints, pass viaList through Location object.
// Sharing locationif (NaviClient.instance.isKakaoNaviInstalled(requireContext())) {// If Kakao Navi is installed, location is shared on Kakao Navi with WGS84.startActivity(NaviClient.instance.shareDestinationIntent(Location("카카오 판교오피스", "127.108640", "37.402111"),NaviOption(coordType = CoordType.WGS84),// Set a list of waypoints.listOf(Location("판교역 1번출구", "127.111492", "37.395225"))))} else {// If Kakao Navi is not installed, open the download page for Kakao Navi.startActivity(Intent(Intent.ACTION_VIEW,Uri.parse(Constants.WEB_NAVI_INSTALL)).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TOP))}