whereQuery.withinBox

whereQuery.withinBox

Signature

whereQuery.withinBox(field, pointBottomLeft, pointUpperRight)

Description

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

Return Type

WhereQuery

Parameters

Parameter Name Type 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)
pointBottomLeft Everlive.GeoPoint Value representing the bottom left corner of the box.
pointUpperRight Everlive.GeoPoint Value representing the upper right corner of the box.

Example

         var query = new Everlive.Query();
         query.where().withinBox('Location',
         new Everlive.GeoPoint(23.317871, 42.687709),
         new Everlive.GeoPoint(23.331346, 42.707075));
         ```


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.