[MarkLogic Dev General] Finding target geocodes using REST API

Erik Hennum Erik.Hennum at marklogic.com
Fri Feb 24 09:57:10 PST 2017


Hi, Shiv:

QBE doesn't support geospatial document vocabularies at present.

You may want to raise this issue through your support contact.


Erik Hennum


________________________________
From: general-bounces at developer.marklogic.com [general-bounces at developer.marklogic.com] on behalf of Shiv Shankar [shiv.shivshankar at gmail.com]
Sent: Friday, February 24, 2017 8:09 AM
To: MarkLogic Developer Discussion
Subject: [MarkLogic Dev General] Finding target geocodes using REST API

Hi,
I could able to achieve finding the nearest addresses based on the starting geo codes  in a circle  with in the given distance using SJava Script API in the qconsole and I wanted to achive the same using REST. I see very less documentation and I found these part of Options in a QBE. Any help on this please?

My address structure
"address":{
"fullAddress":"Unknown address",
"geoCoordinates" :
{
"lat": 41.335747
"lng:-72.06697
}



http://localhost:8081/LATEST/qbe?query={"$query":{}}
{
  "parent-property": "geoCoordinates",
  "lat-property": "lat",
  "lon-property": "lng",
  "geo-option": "5 miles"
}

Thanks
Shan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://developer.marklogic.com/pipermail/general/attachments/20170224/8356fd1b/attachment.html 


More information about the General mailing list