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

Filtering within a Rectangle

Filtering within a Rectangle

You can retrieve all content type items that are geographically located within a rectangle formed by a pair of Geo Points—bottom left and top right corner, in that order.

To retrieve all content items that are within a rectangle formed by two geo points (the left lower and the right upper vertices) use the withinBox(field, pointBottomLeft, pointUpperRight) function:

var query = new Everlive.Query();
query.where().withinBox('Location',
     new Everlive.GeoPoint(23.317871, 42.687709),
     new Everlive.GeoPoint(23.331346, 42.707075));
Contact us: +1-888-365-2779
sales@telerik.com
Copyright © 2016-2017, Progress Software Corporation and/or its subsidiaries or affiliates. All rights reserved.