Naver Maps API SDK for Kotlin/JVM, Java, Android written by Kotlin
val config = NaverClientConfig(
System.getenv("NAVER_MAPS_CLIENT_ID"),
System.getenv("NAVER_MAPS_CLIENT_SECRET"),
)
val client = NaverHttpClientKtor(config)
val naverMapsService = NaverMapsService(client)
val geocode = client.geocode(GeocodeRequest("분당구 불정로 6"))
val reverseGcResponse = client.reverseGeocode(
ReverseGCRequest(
"129.1133567",
"35.2982640",
output = ReverseGCRequest.Output.JSON,
)
)
val githubToken: String = System.getenv("GITHUB_TOKEN")
repositories {
maven {
name = "GitHubPackages"
setUrl("https://maven.pkg.github.com/hojongs/naver-maps-kt")
credentials {
username = "hojongs" // your GitHub username
password = githubToken // your Personal Access Token with enough permissions
}
}
}
dependencies {
implementation("com.hojongs:naver-maps-kt-core:0.2")
implementation("com.hojongs:naver-maps-kt-http-client-ktor:0.2")
}
For more information about installing package from Github Package Registry, please refer https://docs.github.com/en/packages/learn-github-packages/installing-a-package
If 403 Forbidden error occurs, please check the API is enabled in your console.
- Features
- Implement more REST APIs
- Static Map
- Directions
- Add exception classes
- Implement more REST APIs
- Build environment
- Add GitHub Action for CI/CD
- Test Coverage with Jacoco
- Refactoring Gradle build script
- Kotlin 1.5.21
- Logging : Logback
- HTTP Client : ktor, Coroutines
- JSON (De)Serialization : kotlinx.serialization
- Test Framework
This repository follows: