Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.factual.driver;
 
 
Represents a geographic sub query confining results to a rectangle.

Author(s):
aaron
public class Rectangle extends Shape {
  private final double topLeftLat;
  private final double topLeftLon;
  private final double bottomRightLat;
  private final double bottomRightLon;


  
Constructs a Rectangle.

Parameters:
topLeftLat the latitude of the top left point
topLeftLon the longitude of the top left point
bottom the latitude of the bottom right point
right the longitude of the bottom right point
  public Rectangle(double topLeftLatdouble topLeftLon,
      double bottomRightLatdouble bottomRightLon) {
    this. = topLeftLat;
    this. = topLeftLon;
    this. = bottomRightLat;
    this. = bottomRightLon;
  }
  @SuppressWarnings({ "unchecked""rawtypes""serial" })
  public Object toJsonObject() {
    return new HashMap() {
      {
        put(.,
            Lists.newArrayList(
                Lists.newArrayList(),
                Lists.newArrayList()));}};
  }
New to GrepCode? Check out our FAQ X