Filtering on Mixed Fields

Filtering on Mixed Fields

Using the Backend Services JavaScript SDK, you can perform complex queries that mix a Geo Point field with multiple non-Geo-Point fields. Telerik Platform does not support filtering on two or more Geo Points simultaneously.

Filtering on a Text and a Geo Point Fields

To retrieve all content items that are within 5 kilometers from a geo point named "Location" and text field containing a string "Some text" use the following snippet:

var el = new Everlive('your-app-id');
var query = new Everlive.Query();
query
    .where()
        .nearSphere('Location', [23.379068, 42.650601], 5, 'km')
        .eq('Author', 'Some text');
var data = el.data('type-name');
data.get(query)
    .then(function(data){
        alert(JSON.stringify(data));
    },
    function(error){
        alert(JSON.stringify(error));
    });
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.