Skip to content

Commit

Permalink
[chore] longitude latitude
Browse files Browse the repository at this point in the history
  • Loading branch information
Sangwook123 committed Dec 17, 2024
1 parent 7c26257 commit 9f0c959
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class ExhibitionRepositoryImpl @Inject constructor(
}
override suspend fun getNearPlaceData(number: Int, size: Int, latitude: Double, longitude: Double) =
runCatching {
remotePlaceDataSource.getNearPlace(number = number, size = size, latitude = latitude, longitude = -longitude, distance = 3000000.0)
remotePlaceDataSource.getNearPlace(number = number, size = size, latitude = if (latitude < 0) -latitude else latitude, longitude = if (longitude < 0) -longitude else longitude, distance = 3000000.0)
}.mapCatching { it ->
Page(
hasNext = it.hasNext,
Expand Down

0 comments on commit 9f0c959

Please sign in to comment.