content: package com.alicloud.openservices.tablestore.model.search;
  
  import com.alicloud.openservices.tablestore.core.utils.Jsonizable;
  
  /**
   * The entity class for latitude and longitude.
   */
  public class GeoPoint implements Jsonizable {
  
      private double lat;
      private double lon;
  
      public GeoPoint() {
      }
  
      public GeoPoint(double lat, double lon) {
          this.lat = lat;
          this.lon = lon;
      }
  
      public double getLat() {
          return lat;
      }
  
      public void setLat(double lat) {
          this.lat = lat;
      }
  
      public double getLon() {
          return lon;
      }
  
      public void setLon(double lon) {
          this.lon = lon;
      }
  
      @Override
      public String jsonize() {
          StringBuilder sb = new StringBuilder();
          jsonize(sb, "\n");
          return sb.toString();
      }
  
      @Override
      public void jsonize(StringBuilder sb, String newline) {
          sb.append('{').append(newline);
          sb.append("  \"lon\": ").append(lon).append(',').append(newline);
          sb.append("  \"lat\": ").append(lat).append(newline);
          sb.append('}');
      }
  }
  