A geographical region representing all points within a fixed distance from a central point,
i.e., a circle. Intended for use in a geo-containment predicate filter.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003e\u003ccode\u003eQuery.GeoRegion.Circle\u003c/code\u003e represents a geographical area defined as all points within a specified distance from a central point, functioning as a circle for geo-containment filter predicates.\u003c/p\u003e\n"],["\u003cp\u003eA \u003ccode\u003eCircle\u003c/code\u003e object is created using a central \u003ccode\u003eGeoPt\u003c/code\u003e and a radius value that specifies the distance in meters from the center to define the circle's boundary.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003econtains(GeoPt point)\u003c/code\u003e method determines if a given \u003ccode\u003eGeoPt\u003c/code\u003e is located within the \u003ccode\u003eCircle\u003c/code\u003e, including points on the border.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides methods \u003ccode\u003egetCenter()\u003c/code\u003e and \u003ccode\u003egetRadius()\u003c/code\u003e to retrieve the circle's central point and radius, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits several methods from \u003ccode\u003eObject\u003c/code\u003e, including \u003ccode\u003eequals()\u003c/code\u003e, \u003ccode\u003ehashCode()\u003c/code\u003e, and \u003ccode\u003etoString()\u003c/code\u003e, which it overrides to implement its own specific behavior.\u003c/p\u003e\n"]]],[],null,["# Class Query.GeoRegion.Circle (2.0.0)\n\n public static final class Query.GeoRegion.Circle extends Query.GeoRegion\n\nA geographical region representing all points within a fixed distance from a central point,\ni.e., a circle. Intended for use in a geo-containment predicate filter. \n\nInheritance\n-----------\n\n[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e [Query.GeoRegion](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.datastore.Query.GeoRegion) \\\u003e Query.GeoRegion.Circle \n\nInherited Members\n-----------------\n\n[Query.GeoRegion.contains(GeoPt)](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.datastore.Query.GeoRegion#com_google_appengine_api_datastore_Query_GeoRegion_contains_com_google_appengine_api_datastore_GeoPt_) \n[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) \n[Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) \n[Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) \n[Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) \n[Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) \n[Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) \n[Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) \n[Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)\n\nConstructors\n------------\n\n### Circle(GeoPt center, double radius)\n\n public Circle(GeoPt center, double radius)\n\nCreates a new `Circle` object from the given arguments.\n\nMethods\n-------\n\n### contains(GeoPt point)\n\n public boolean contains(GeoPt point)\n\nDetermines whether the given [GeoPt](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.datastore.GeoPt) value lies within this geographic region. If the\npoint lies on the border of the region it is considered to be contained.\n\n**Overrides** \n[Query.GeoRegion.contains(GeoPt point)](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.datastore.Query.GeoRegion#com_google_appengine_api_datastore_Query_GeoRegion_contains_com_google_appengine_api_datastore_GeoPt_)\n\n### equals(@Nullable Object o)\n\n public boolean equals(@Nullable Object o)\n\n**Overrides** \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-)\n\n### getCenter()\n\n public GeoPt getCenter()\n\n### getRadius()\n\n public double getRadius()\n\n### hashCode()\n\n public int hashCode()\n\n**Overrides** \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--)\n\n### toString()\n\n public String toString()\n\n**Overrides** \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--)"]]