package com.google.sps.data;

/** Listing object with the specified attributes returned from the places API **/
public class Listing {
    private String name;
    private MapLocation mapLocation;
    private int rating;
    private String image;
    private String url;
    private String businessType;

  /**
  * Creates a new Listing
  * @param name Name of business
  * @param mapLocation Location of business (lat/long coordinate)
  * @param rating Numerical rating of business (1-5)
  * @param image Image
  * @param url Url to business' site
  * @param businessType specifies business type from Places API (establishment, food, etc.)
  * @return Listing object
  **/

  public Listing(String name, MapLocation mapLocation, int rating, String image, String url) {
    this.name = name;
    this.mapLocation = mapLocation;
    this.rating = rating;
    this.image = image;
    this.url = url;
    this.businessType = businessType;
  }

  public String getName() {
    return name;
  }

  public MapLocation getMapLocation() {
    return mapLocation;
  }

  public int getRating() {
    return rating;
  }

  public String getImage() {
    return image;
  } 

  public String getUrl() {
    return url;
  }

  public String getBusinessType() {
    return businessType;
  }
}
@@ -202,19 +202,22 @@
 private 
-int
+double
  rating;
@@ -726,19 +726,22 @@
 cation, 
-int
+double
  rating,
@@ -1072,11 +1072,14 @@
 lic 
-int
+double
  get

change rating to double