Skip to content

Commit 6ae6100

Browse files
bngshyonghanJu
andcommitted
✨ RunningPosition을 LatLng으로 전환하는 확장 함수
Co-authored-by: yonghanJu <[email protected]>
1 parent 364fb15 commit 6ae6100

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
package com.whyranoid.presentation.running
22

3+
import com.naver.maps.geometry.LatLng
4+
35
data class RunningPosition(
46
val latitude: Double,
57
val longitude: Double
68
)
9+
10+
fun RunningPosition.toLatLng(): LatLng {
11+
return LatLng(
12+
this.latitude,
13+
this.longitude
14+
)
15+
}

0 commit comments

Comments
 (0)