diff --git a/library/src/main/java/com/rtchagas/pingplacepicker/repository/googlemaps/GoogleMapsRepository.kt b/library/src/main/java/com/rtchagas/pingplacepicker/repository/googlemaps/GoogleMapsRepository.kt index 116e70e..822247d 100644 --- a/library/src/main/java/com/rtchagas/pingplacepicker/repository/googlemaps/GoogleMapsRepository.kt +++ b/library/src/main/java/com/rtchagas/pingplacepicker/repository/googlemaps/GoogleMapsRepository.kt @@ -180,7 +180,7 @@ class GoogleMapsRepository constructor( val latLng = LatLng(place.geometry.location.lat, place.geometry.location.lng) - return NearbyPlace(place.name, photoList, place.vicinity, typeList, latLng) + return NearbyPlace(place.placeId, place.name, photoList, place.vicinity, typeList, latLng) } /** diff --git a/library/src/main/java/com/rtchagas/pingplacepicker/repository/googlemaps/NearbyPlace.kt b/library/src/main/java/com/rtchagas/pingplacepicker/repository/googlemaps/NearbyPlace.kt index 090cdfb..4a6eda9 100644 --- a/library/src/main/java/com/rtchagas/pingplacepicker/repository/googlemaps/NearbyPlace.kt +++ b/library/src/main/java/com/rtchagas/pingplacepicker/repository/googlemaps/NearbyPlace.kt @@ -8,6 +8,7 @@ import kotlinx.android.parcel.Parcelize @Parcelize class NearbyPlace( + var placeId: String, var placeName: String, var placePhotos: MutableList, var placeAddress: String, @@ -28,7 +29,7 @@ class NearbyPlace( } override fun getId(): String? { - return null + return placeId } override fun getPhotoMetadatas(): MutableList {