According to the oasis reference, there is an available built-in query Geo function named geo.distance that can be used in $filter in OData queries.
ref: http://docs.oasis-open.org/odata/odata/v4.0/os/part1-protocol/odata-v4.0-os-part1-protocol.html#_Toc372793694
my query:
{{my_api_url}}/accounts?$select=accountid,name&$orderby=accountid&$top=100&$filter=geo.distance(geography'POINT(136.62570190429688 36.594619750976563)',geography'POINT(136.625663 36.594671)') lt 900.0
When I execute the above query to retrieve Dynamics records, the following error was returned.
{
"error": {
"code": "0x0",
"message": "The \"geo.distance\" function isn't supported."
}
}
Does it mean Dynamics not supporting OData's geo.distance function? If there is anyone faced similar issues with Geo functions, how did you solved it?
Any king of help regarding the geo.distance function is appreciated.