Package com.amazonaws.geo.model

Examples of com.amazonaws.geo.model.QueryRectangleRequest


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

    QueryRectangleRequest queryRectangleRequest = new QueryRectangleRequest(minPoint, maxPoint);
    queryRectangleRequest.getQueryRequest().setAttributesToGet(attributesToGet);
    QueryRectangleResult queryRectangleResult = geoDataManager.queryRectangle(queryRectangleRequest);

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


   *            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());
View Full Code Here

TOP

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

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.