Progress will discontinue Telerik Platform on May 10th, 2018. Learn more

whereQuery.withinCenterSphere

whereQuery.withinCenterSphere

Signature

whereQuery.withinCenterSphere(field, center, radius, [metrics])

Description

Adds a Geospatial condition that a specified geopoint must be within a coordinate circle. Applicable to GeoPoint fields only.

Return Type

WhereQuery

Parameters

Parameter Name Type Default Description
field string Field name containing a {GeoPoint} in the following format: (decimal_degrees_latitude,decimal_degrees_longitude), where decimal_degrees_latitude ranges from -90 to 90 and decimal_degrees_longitude ranges from -180 to 180. Example: (42.6954322,123.3239467)
center Everlive.GeoPoint Comparison value specifying the center of the coordinate circle.
radius number Value specifying the radius length.
[metrics] string radians A string representing what unit of measurement is used for radius length. Possible values: radians, km, miles.
Start a free trial Request a demo
Contact us: +1-888-365-2779
sales@telerik.com
Copyright © 2016-2017, Progress Software Corporation and/or its subsidiaries or affiliates. All rights reserved.