<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to query feature layer and return results in json feed in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-query-feature-layer-and-return-results-in/m-p/1021063#M71526</link>
    <description>&lt;P&gt;Sounds like you want to create an API rather than a web app. Look into &lt;A href="https://enterprise.arcgis.com/en/server/latest/publish-services/windows/what-is-a-geoprocessing-service-.htm" target="_self"&gt;publishing a geoprocessing service&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Thu, 28 Jan 2021 16:20:44 GMT</pubDate>
    <dc:creator>BlakeTerhune</dc:creator>
    <dc:date>2021-01-28T16:20:44Z</dc:date>
    <item>
      <title>How to query feature layer and return results in json feed</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-query-feature-layer-and-return-results-in/m-p/1021045#M71524</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I'm new to this community and not sure if this is the correct place to be.&amp;nbsp; I have a need to create a json feed that will return 8 closest points from a given location on a feature layer.&amp;nbsp; Using esri's javascript API I am able to query the feature layer, retrieve the points and display them in a pop-up window on the screen.&amp;nbsp; Instead of displaying the results on the screen I would to send them to the browser as a JSON Object.&amp;nbsp; Is this doable using ArcGIS JavaScript API or do I need to use another Esri API? Any advice/insights would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2021 16:04:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-query-feature-layer-and-return-results-in/m-p/1021045#M71524</guid>
      <dc:creator>PaulMarano</dc:creator>
      <dc:date>2021-01-28T16:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to query feature layer and return results in json feed</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-query-feature-layer-and-return-results-in/m-p/1021063#M71526</link>
      <description>&lt;P&gt;Sounds like you want to create an API rather than a web app. Look into &lt;A href="https://enterprise.arcgis.com/en/server/latest/publish-services/windows/what-is-a-geoprocessing-service-.htm" target="_self"&gt;publishing a geoprocessing service&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2021 16:20:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-query-feature-layer-and-return-results-in/m-p/1021063#M71526</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2021-01-28T16:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to query feature layer and return results in json feed</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-query-feature-layer-and-return-results-in/m-p/1021067#M71527</link>
      <description>&lt;P&gt;Is this something that is available in Arcgis Online?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2021 16:25:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-query-feature-layer-and-return-results-in/m-p/1021067#M71527</guid>
      <dc:creator>PaulMarano</dc:creator>
      <dc:date>2021-01-28T16:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to query feature layer and return results in json feed</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-query-feature-layer-and-return-results-in/m-p/1021225#M71530</link>
      <description>&lt;P&gt;You can query the REST endpoint of a hosted feature layer in ArcGIS Online. However, there's no option to measure the distance from the input geometry. That would require a geoprocessing task of some kind. A quick search didn't reveal anything like that available in ArcGIS Online but I'm not that familiar with that stuff.&lt;/P&gt;&lt;P&gt;Here's an &lt;A href="https://www.arcgis.com/home/item.html?id=1044bb19da8d4dbfb6a96eb1b4ebf629" target="_self"&gt;example hosted feature layer&lt;/A&gt; and here's a URL to query the first 8 records within 100 miles of the input geometry (point as lon/lat). Changing the&amp;nbsp;&lt;FONT face="courier new,courier"&gt;f=pjson&lt;/FONT&gt; to&amp;nbsp;&lt;FONT face="courier new,courier"&gt;f=html&lt;/FONT&gt; will let you see the all the query parameters available.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;https://services7.arcgis.com/LXCny1HyhQCUSueu/arcgis/rest/services/Definitive_Healthcare_USA_Hospital_Beds/FeatureServer/0/query?where=1%3D1&amp;amp;objectIds=&amp;amp;time=&amp;amp;geometry=-90.270527%2C+38.637732&amp;amp;geometryType=esriGeometryPoint&amp;amp;inSR=&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;resultType=none&amp;amp;distance=100&amp;amp;units=esriSRUnit_StatuteMile&amp;amp;returnGeodetic=false&amp;amp;outFields=&amp;amp;returnGeometry=true&amp;amp;featureEncoding=esriDefault&amp;amp;multipatchOption=xyFootprint&amp;amp;maxAllowableOffset=&amp;amp;geometryPrecision=&amp;amp;outSR=&amp;amp;datumTransformation=&amp;amp;applyVCSProjection=false&amp;amp;returnIdsOnly=false&amp;amp;returnUniqueIdsOnly=false&amp;amp;returnCountOnly=false&amp;amp;returnExtentOnly=false&amp;amp;returnQueryGeometry=false&amp;amp;returnDistinctValues=false&amp;amp;cacheHint=false&amp;amp;orderByFields=&amp;amp;groupByFieldsForStatistics=&amp;amp;outStatistics=&amp;amp;having=&amp;amp;resultOffset=0&amp;amp;resultRecordCount=8&amp;amp;returnZ=false&amp;amp;returnM=false&amp;amp;returnExceededLimitFeatures=true&amp;amp;quantizationParameters=&amp;amp;sqlFormat=none&amp;amp;token=&amp;amp;f=pjson&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 28 Jan 2021 20:12:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-query-feature-layer-and-return-results-in/m-p/1021225#M71530</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2021-01-28T20:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to query feature layer and return results in json feed</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-query-feature-layer-and-return-results-in/m-p/1021741#M71543</link>
      <description>&lt;P&gt;This link might help with your gathering of the 8 closest results:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-api-for-javascript/featurelayer-queryfeatures-order-by-closest-first/m-p/473139" target="_blank"&gt;https://community.esri.com/t5/arcgis-api-for-javascript/featurelayer-queryfeatures-order-by-closest-first/m-p/473139&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 20:51:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-query-feature-layer-and-return-results-in/m-p/1021741#M71543</guid>
      <dc:creator>bobmeyering</dc:creator>
      <dc:date>2021-01-29T20:51:13Z</dc:date>
    </item>
  </channel>
</rss>

