Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ public class PlaceInfoDetail {
private Long reviewCount;
private Double placeLatitude;
private Double placeLongitude;
private boolean visited;
private boolean isVisited;
private boolean liked;
}
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,8 @@ private String parsePlaceImageFromJson(String response) throws Exception {
}
}

if (photoReference.isBlank()) return null;

// photo_reference로 photo_url 받아오기
String query = String.format(
"photo?maxwidth=400&photoreference=%s&key=GOOGLE_API_KEY",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public static PlaceInfoDetail toPlaceInfoDetail (Place place, Long reviewCount,
.reviewCount(reviewCount)
.placeLatitude(place.getLatitude())
.placeLongitude(place.getLongitude())
.visited(isVisited)
.isVisited(isVisited)
.liked(isLiked)
.build();
}
Expand Down