<?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: GeoCode locator not working properly for POI or Business  in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geocode-locator-not-working-properly-for-poi-or/m-p/531106#M49502</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The issue fixed&lt;/P&gt;&lt;P&gt;the reason was passing the parameters in proper order/Passing address as object&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//Error&amp;nbsp;code&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;var newaddress = {&lt;BR /&gt; singleLine: item.address,&lt;BR /&gt; magicKey: item.Magickey&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;esrilocator.outSpatialReference = map.spatialReference; &lt;BR /&gt;esrilocator.addressToLocations(newaddress);&lt;/P&gt;&lt;P&gt;l.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//Working&amp;nbsp;code&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;var address = { "singleLine": item.address };&lt;/EM&gt;&lt;BR /&gt;var newaddress = { address: address, magicKey: item.Magickey };&lt;BR /&gt; &lt;BR /&gt;esrilocator.outSpatialReference = map.spatialReference;&lt;BR /&gt;esrilocator.addressToLocations(newaddress);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Jun 2017 20:47:52 GMT</pubDate>
    <dc:creator>arunepuri1</dc:creator>
    <dc:date>2017-06-20T20:47:52Z</dc:date>
    <item>
      <title>GeoCode locator not working properly for POI or Business</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geocode-locator-not-working-properly-for-poi-or/m-p/531105#M49501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Hi All,&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;We are using ArcGIS Javascript API V 3.4 with&amp;nbsp;"esri/tasks/locator", "esri/tasks/AddressCandidate",&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;When searched with Business names(Startbuck, San Francico or Walmart San Ramon) the suggestion are coming properly with magickey and bound the dataset to Grid&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;But when selected a row in the data grid, for user required address. The address locator not giving proper lat, longs.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;GeoCode locator URL:&amp;nbsp;&lt;A class="" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fgeocode.arcgis.com%2Farcgis%2Frest%2Fservices%2FWorld%2FGeocodeServer" rel="nofollow" style="color: #287433; border: 0px; font-weight: inherit; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Javascrpt Code snippet.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;//Passing the one the suggestion address to get the lat,long&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;var newaddress = {&lt;BR /&gt;singleLine: item.address,&lt;BR /&gt;magicKey: item.Magickey&lt;BR /&gt;};&lt;BR /&gt;esrilocator.outSpatialReference = map.spatialReference;&lt;BR /&gt;esrilocator.addressToLocations(newaddress);&lt;BR /&gt;esrilocator.on("address-to-locations-complete", function (e) {&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;//Zoonto result lat,long&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Checked direct URL which ESRI using &amp;nbsp;&lt;A class="" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fgeocode.arcgis.com%2Farcgis%2Frest%2Fservices%2FWorld%2FGeocodeServer%2FfindAddressCandidates%3FSingleLine%3Dstarbucks%2Bsydney%2BAUS%26maxLocations%3D1%26forStorage%3Dfalse%26f%3Dpjson" rel="nofollow" style="color: #287433; border: 0px; font-weight: inherit; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/findAddressCandidates?SingleLine=starbucks+sydney+AUS…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;This also not working properly.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Anyonce faced the similar issue with&amp;nbsp;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;esrilocator.addressToLocations&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Please let me know your thoughts and suggestions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 00:52:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geocode-locator-not-working-properly-for-poi-or/m-p/531105#M49501</guid>
      <dc:creator>arunepuri1</dc:creator>
      <dc:date>2017-06-20T00:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: GeoCode locator not working properly for POI or Business</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geocode-locator-not-working-properly-for-poi-or/m-p/531106#M49502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The issue fixed&lt;/P&gt;&lt;P&gt;the reason was passing the parameters in proper order/Passing address as object&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//Error&amp;nbsp;code&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;var newaddress = {&lt;BR /&gt; singleLine: item.address,&lt;BR /&gt; magicKey: item.Magickey&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;esrilocator.outSpatialReference = map.spatialReference; &lt;BR /&gt;esrilocator.addressToLocations(newaddress);&lt;/P&gt;&lt;P&gt;l.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//Working&amp;nbsp;code&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;var address = { "singleLine": item.address };&lt;/EM&gt;&lt;BR /&gt;var newaddress = { address: address, magicKey: item.Magickey };&lt;BR /&gt; &lt;BR /&gt;esrilocator.outSpatialReference = map.spatialReference;&lt;BR /&gt;esrilocator.addressToLocations(newaddress);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 20:47:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geocode-locator-not-working-properly-for-poi-or/m-p/531106#M49502</guid>
      <dc:creator>arunepuri1</dc:creator>
      <dc:date>2017-06-20T20:47:52Z</dc:date>
    </item>
  </channel>
</rss>

