AnsweredAssumed Answered

How to query ARCGIS REST Service via ajax with street address

Question asked by assiaalexandrova on Sep 28, 2017
Latest reply on Sep 29, 2017 by rscheitlin

Not very familiar with the necessary GIS concepts so this is a beginner question. From my web app I am querying a GIS REST Service using this query:

require([ "dojo/dom", "dojo/on", "esri/tasks/query", "esri/tasks/QueryTask", "dojo/domReady!" ], function (dom, on, Query, QueryTask) {


var queryTask = new QueryTask("");
var query = new Query();
query.returnGeometry = false;
query.outFields = [


query.where = "SUBID = '" + SUBJID + "'";

queryTask.execute(query, showResults);


In this scenario I had a subject ID (SUBID) which I used for the query to return which district the subject falls in (i.e. the respective DistrictID). I now want to query the service by street address, rather than by SUBID. Any pointers how to structure the query in this case?