* It contains all of the necessary information to form a latitude and longitude box.
*
* */
public static S2LatLngRect getBoundingLatLngRect(GeoQueryRequest geoQueryRequest) {
if (geoQueryRequest instanceof QueryRectangleRequest) {
QueryRectangleRequest queryRectangleRequest = (QueryRectangleRequest) geoQueryRequest;
GeoPoint minPoint = queryRectangleRequest.getMinPoint();
GeoPoint maxPoint = queryRectangleRequest.getMaxPoint();
S2LatLngRect latLngRect = null;
if (minPoint != null && maxPoint != null) {
S2LatLng minLatLng = S2LatLng.fromDegrees(minPoint.getLatitude(), minPoint.getLongitude());