<?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 Synchronous request to search address on map in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/synchronous-request-to-search-address-on-map/m-p/603328#M56485</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have one scenario in my product related to address search over multiple geocoding services. My product is integrated with ArcGIS Server (on premises or arcgisonline). I am allowing user to enter address on the form and performing address search. I am using&amp;nbsp; Locator for that. I need to use one primary geocoding service and other as a backup services. Let's say if I don't find address from primary geocoding service then I have to use other backup services from the list. The question is - can I perform synchronous address search using Locator? That way, in case primary service fails then I can send request to another service and loop it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 May 2014 19:42:01 GMT</pubDate>
    <dc:creator>BhavinSanghani</dc:creator>
    <dc:date>2014-05-29T19:42:01Z</dc:date>
    <item>
      <title>Synchronous request to search address on map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/synchronous-request-to-search-address-on-map/m-p/603328#M56485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have one scenario in my product related to address search over multiple geocoding services. My product is integrated with ArcGIS Server (on premises or arcgisonline). I am allowing user to enter address on the form and performing address search. I am using&amp;nbsp; Locator for that. I need to use one primary geocoding service and other as a backup services. Let's say if I don't find address from primary geocoding service then I have to use other backup services from the list. The question is - can I perform synchronous address search using Locator? That way, in case primary service fails then I can send request to another service and loop it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2014 19:42:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/synchronous-request-to-search-address-on-map/m-p/603328#M56485</guid>
      <dc:creator>BhavinSanghani</dc:creator>
      <dc:date>2014-05-29T19:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Synchronous request to search address on map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/synchronous-request-to-search-address-on-map/m-p/603329#M56486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I have one scenario in my product related to address search over multiple geocoding services. My product is integrated with ArcGIS Server (on premises or arcgisonline). I am allowing user to enter address on the form and performing address search. I am using&amp;nbsp; Locator for that. I need to use one primary geocoding service and other as a backup services. Let's say if I don't find address from primary geocoding service then I have to use other backup services from the list. The question is - can I perform synchronous address search using Locator? That way, in case primary service fails then I can send request to another service and loop it.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you could try making ajax calls based on the response you can try to loop through and call another ajax till condition is satisfied.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 09:09:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/synchronous-request-to-search-address-on-map/m-p/603329#M56486</guid>
      <dc:creator>ManishkumarPatel</dc:creator>
      <dc:date>2014-06-02T09:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: Synchronous request to search address on map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/synchronous-request-to-search-address-on-map/m-p/603330#M56487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;you want to use a deferred&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://dojotoolkit.org/reference-guide/1.9/dojo/Deferred.html#dojo-deferred"&gt;http://dojotoolkit.org/reference-guide/1.9/dojo/Deferred.html#dojo-deferred&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So you can do &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;deferred = geocode request&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;deferred.then(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if(success){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}else {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;try geocode # 2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 12:31:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/synchronous-request-to-search-address-on-map/m-p/603330#M56487</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2014-06-02T12:31:05Z</dc:date>
    </item>
  </channel>
</rss>

