|
|
|
@ -14,8 +14,6 @@ fun getRestaurants(lat: Double, lon: Double, radius: Int): List<RestaurantData>
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
val response = apiInterface.getRestaurants(lat, lon, radius)
|
|
|
|
|
Log.e("Debug", "${lat},${lon}")
|
|
|
|
|
Log.e("Debug", response.toString())
|
|
|
|
|
response.results.forEach {
|
|
|
|
|
listRestaurant += RestaurantData(it.position.lat,it.position.lon,it.poi.name,it.poi.phone,it.address.freeformAddress)
|
|
|
|
|
}
|
|
|
|
|