[MarkLogic Dev General] Finding target geocodes using REST API

Erik Hennum Erik.Hennum at marklogic.com
Fri Feb 24 11:29:22 PST 2017

Hi, Shiv:

Yes, the REST API supports geospatial queries through the Search API vocabulary on the /v1/search endpoint.

See the reference starting at:




Hoping that helps,

Erik Hennum

From: Shiv Shankar [shiv.shivshankar at gmail.com]
Sent: Friday, February 24, 2017 11:05 AM
To: MarkLogic Developer Discussion; Erik Hennum
Subject: Re: Finding target geocodes using REST API

Hi Erik,

Thanks for the quick update. Is there a way I can enable below geospatial document vocabularies using REST?

var lat=;

var long=;



    "lat", "lng", cts.circle(20, cts.point(lat, long))),cts.collectionQuery(["ADDRESS_COLLECTION"])]));




Hi, Shiv:

QBE doesn't support geospatial document vocabularies at present.

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

Erik Hennum

On Fri, Feb 24, 2017 at 11:09 AM, Shiv Shankar <shiv.shivshankar at gmail.com<mailto:shiv.shivshankar at gmail.com>> wrote:
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
"fullAddress":"Unknown address",
"geoCoordinates" :
"lat": 41.335747

  "parent-property": "geoCoordinates",
  "lat-property": "lat",
  "lon-property": "lng",
  "geo-option": "5 miles"


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://developer.marklogic.com/pipermail/general/attachments/20170224/bcc0cd1d/attachment-0001.html 

More information about the General mailing list