1
1
mirror of https://github.com/Pygmalion69/OpenTopoMapViewer.git synced 2025-10-06 00:02:42 +02:00

Correct function name

This commit is contained in:
Pygmalion69
2025-09-09 14:23:43 +02:00
parent 05c99cc0ba
commit 90a1aa1848

View File

@@ -11,7 +11,7 @@ class Directions(val client: OrsClient, private val profile: String) {
val routeHelper = RouteHelper()
fun getRouteGpx(coordinates: List<List<Double>>, language: String, result: RouteGpResult) {
fun getRouteGpx(coordinates: List<List<Double>>, language: String, result: RouteGpxResult) {
CoroutineScope(Dispatchers.IO).launch {
try {
val gpxXml = with(routeHelper) { client.getRouteGpx(coordinates, language, profile) }
@@ -30,7 +30,7 @@ class Directions(val client: OrsClient, private val profile: String) {
}
}
interface RouteGpResult {
interface RouteGpxResult {
fun onSuccess(gpx: String)
fun onError(message: String)
}