Package com.amazonaws.geo.model

Examples of com.amazonaws.geo.model.QueryRadiusRequest


    List<String> attributesToGet = new ArrayList<String>();
    attributesToGet.add(config.getRangeKeyAttributeName());
    attributesToGet.add(config.getGeoJsonAttributeName());
    attributesToGet.add("schoolName");

    QueryRadiusRequest queryRadiusRequest = new QueryRadiusRequest(centerPoint, radiusInMeter);
    queryRadiusRequest.getQueryRequest().setAttributesToGet(attributesToGet);
    QueryRadiusResult queryRadiusResult = geoDataManager.queryRadius(queryRadiusRequest);

    printGeoQueryResult(queryRadiusResult, out);
  }
View Full Code Here


        latLngRect = new S2LatLngRect(minLatLng, maxLatLng);
      }

      return latLngRect;
    } else if (geoQueryRequest instanceof QueryRadiusRequest) {
      QueryRadiusRequest queryRadiusRequest = (QueryRadiusRequest) geoQueryRequest;

      GeoPoint centerPoint = queryRadiusRequest.getCenterPoint();
      double radiusInMeter = queryRadiusRequest.getRadiusInMeter();

      S2LatLng centerLatLng = S2LatLng.fromDegrees(centerPoint.getLatitude(), centerPoint.getLongitude());

      double latReferenceUnit = centerPoint.getLatitude() > 0.0 ? -1.0 : 1.0;
      S2LatLng latReferenceLatLng = S2LatLng.fromDegrees(centerPoint.getLatitude() + latReferenceUnit,
View Full Code Here

TOP

Related Classes of com.amazonaws.geo.model.QueryRadiusRequest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.