Class Query.GeoRegion

java.lang.Object
com.google.appengine.api.datastore.Query.GeoRegion
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Query.GeoRegion.Circle, Query.GeoRegion.Rectangle
Enclosing class:
Query

public abstract static class Query.GeoRegion extends Object implements Serializable
A geographic region intended for use in a Query.StContainsFilter. Note that this is the only purpose for which it should be used: in particular, it is not suitable as a Property value to be stored in Datastore.
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    A geographical region representing all points within a fixed distance from a central point, i.e., a circle.
    static final class 
    A simple geographical region bounded by two latitude lines, and two longitude lines, i.e., a "rectangle".
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract boolean
    contains(GeoPt point)
    Determines whether the given GeoPt value lies within this geographic region.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • contains

      public abstract boolean contains(GeoPt point)
      Determines whether the given GeoPt value lies within this geographic region. If the point lies on the border of the region it is considered to be contained.