// Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package com.google.sps.data;

/** Represents a marker on the map */
public class Marker {
  private final double lat;
  private final double lng;
  private final String crimeType;
  private final String date;
  private final String time;
  private final String address;
  private final String description;

  public Marker(
      double lat,
      double lng,
      String crimeType,
      String date,
      String time,
      String address,
      String description) {
    this.lat = lat;
    this.lng = lng;
    this.crimeType = crimeType;
    this.date = date;
    this.time = time;
    this.address = address;
    this.description = description;
  }

  public double getLat() {
    return lat;
  }

  public double getLng() {
    return lng;
  }

  public String getCrimeType() {
    return crimeType;
  }

  public String getDate() {
    return date;
  }

  public String getTime() {
    return time;
  }

  public String getAddress() {
    return address;
  }

  public String getDescription() {
    return description;
  }
}

@@ -887,16 +887,74 @@
 ription;
+%0A  private final int gridRow;%0A  private final int gridCol;
 %0A%0A  publ
@@ -1108,16 +1108,54 @@
 cription
+,%0A      int gridRow,%0A      int gridCol
 ) %7B%0A    
@@ -1326,24 +1326,80 @@
 escription;%0A
+    this.gridRow = gridRow;%0A    this.gridCol = gridCol;%0A
   %7D%0A%0A  publi
@@ -1734,24 +1734,24 @@
 ription() %7B%0A
-
     return d
@@ -1765,11 +1765,117 @@
 ion;%0A  %7D
+%0A%0A  public int getGridRow() %7B%0A    return gridRow;%0A  %7D%0A%0A  public int getGridCol() %7B%0A    return gridCol;%0A  %7D
 %0A%7D%0A

Add row and col to marker attributes