Closed onursezn closed 3 years ago
@onursezn are you looking for sorting by 'nearest' ?
Then please use 'near' filter
https://developers.connectycube.com/server/custom_objects?id=_1-sorting
@DaveLomber I also have some issues. The problem is that the given document does not describe the request data well. Should it be in json form and be like:
{
'near': {
<field_name>: [latitude, longitude],
radius: 19999
}
}
@alperbilgic right, everything in JavaScript should be a JSON ;-D
@DaveLomber Sir I also need to know the structure of the JSON object.
{
'near': {
<field_name>: [latitude, longitude],
radius: 19999
}
}
Is this structure in the right form? Are the field names and the value types that are passed correct?
Yes this is correct
Is there any example request that I can use for the sorting by custom data: Location on the react-native SDK? Any help would be appreciated. Thanks.