package com.google.sps.data;

/** Class for 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;

  /**
  * 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
  * @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;
  }

  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;
  }
}
@@ -135,18 +135,19 @@
  Listing
+ 
 %7B%0A
-
     priv
@@ -273,16 +273,49 @@
 ing url;
+%0A    private String businessType;
 %0A%0A  /**%0A
@@ -552,16 +552,108 @@
 s' site%0A
+  * @param businessType specifies business type from Places API (establishment, food, etc.)%0A
   * @ret
@@ -897,24 +897,62 @@
 .url = url;%0A
+    this.businessType = businessType;%0A
   %7D%0A%0A  publi
@@ -1190,24 +1190,24 @@
  getUrl() %7B%0A
-
     return u
@@ -1213,10 +1213,76 @@
 url;%0A  %7D
+%0A%0A  public String getBusinessType() %7B%0A    return businessType;%0A  %7D
 %0A%7D

Add business type param