<?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: Geocoding with another countries information in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geocoding-with-another-countries-information/m-p/628322#M58660</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Alright, thank you.&amp;nbsp; I have actually got something working with a MapServer where I altered the code to &lt;/SPAN&gt;&lt;A href="http://developers.arcgis.com/en/javascript/samples/find_map/index.html"&gt;This Application&lt;/A&gt;&lt;SPAN&gt; and my program does virtually the same thing that application does, except mine has the proper data that I need.&amp;nbsp; And when I enter an address it returns the proper address and symbolizes it on the map.&amp;nbsp; But I was wondering if it is possible to autozoom to that location after the result is returned. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Pretty much exactly like the &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/en/javascript/jssamples/locator_address.html"&gt;Geocoding an Address&lt;/A&gt;&lt;SPAN&gt; application.&amp;nbsp; Except that one uses Geocoding and I am not sure if that is going to make a difference or not.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ryan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Jun 2013 15:23:25 GMT</pubDate>
    <dc:creator>RyanWhiley</dc:creator>
    <dc:date>2013-06-25T15:23:25Z</dc:date>
    <item>
      <title>Geocoding with another countries information</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geocoding-with-another-countries-information/m-p/628318#M58656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Right now I am currently working in another country trying to set up a web application that can search addresses.&amp;nbsp; I have looked through the samples and attempted to manipulate them so that they work with me, but I was unable to.&amp;nbsp; Along with that, I am not able to access the database that supplies the information for one of the samples (links are at the bottom) and so I am not able to see the fields that are in that database.&amp;nbsp; I am able to tell that there is at least a score and locatorName field, neither of which I have.&amp;nbsp; I have an &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Adres&lt;/SPAN&gt;&lt;SPAN&gt; field where the address is stored, and a &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Point&lt;/SPAN&gt;&lt;SPAN&gt; section where the X and Y coordinates are stored.&amp;nbsp; But that is about it.&amp;nbsp; Below is a copy of the JS I have. So I was wondering how I would go about building this with the amount of information I have.&amp;nbsp; I am not the most fluent in JS, but any help would be greatly appreciated.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;script&amp;gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.require("esri.map"); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.require("esri.tasks.locator"); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.require("dojo.number"); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.require("dijit.form.Button"); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.require("dijit.form.Textarea"); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.require("dijit.layout.BorderContainer"); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.require("dijit.layout.ContentPane"); &amp;nbsp;&amp;nbsp; dojo.require("esri.layers.FeatureLayer"); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var map;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function init() { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map = new esri.Map("map", {&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; basemap: "topo", &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; center: [-68.95921478269354, 12.201009750494986], &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; zoom: 11 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }); &amp;nbsp;&amp;nbsp; &amp;nbsp; var opLayer1 = new esri.layers.ArcGISDynamicMapServiceLayer(&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; "ihavetherightlinkbutcannotputithere/rest/services/FeatureServer", { &amp;nbsp; opacity:0.4, &amp;nbsp; basemap:"topo" &amp;nbsp; }); &amp;nbsp; map.addLayer(opLayer1);&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var locator = new esri.tasks.Locator("http://ihavetherightlinkbutcannotputithere/rest/services/FeatureServer"); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.connect(locator, "onAddressToLocationsComplete", showResults); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.infoWindow.resize(200,125); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function locate() { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.graphics.clear(); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var address = {"SingleLine":dojo.byId("Adres").value}; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; locator.outSpatialReference= map.spatialReference; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var Adres = { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; address:Adres, &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; locator.addressToLocations(Adres); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function showResults(candidates) { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var candidate; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var symbol = new esri.symbol.SimpleMarkerSymbol(); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var infoTemplate = new esri.InfoTemplate( "Address: ${Adres}");&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; symbol.setStyle(esri.symbol.SimpleMarkerSymbol.STYLE_SQUARE); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; symbol.setColor(new dojo.Color([153,0,51,0.75]));&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var geom; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.every(candidates,function(candidate){ &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log(candidate.Adres); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var attributes = { address: candidate.Adres };&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; geom = candidate.Adres; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var graphic = new esri.Graphic(geom, symbol, attributes, infoTemplate); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //add a graphic to the map at the geocoded location &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.graphics.add(graphic); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //add a text symbol to the map listing the location of the matched address. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var displayText = candidate.Adres; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var font = new esri.symbol.Font("16pt",esri.symbol.Font.STYLE_NORMAL, esri.symbol.Font.VARIANT_NORMAL,esri.symbol.Font.WEIGHT_BOLD,"Helvetica"); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var textSymbol = new esri.symbol.TextSymbol(displayText,font,new dojo.Color("#666633")); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; textSymbol.setOffset(0,8); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.graphics.add(new esri.Graphic(geom, textSymbol)); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return false; //break out of loop after one candidate with score greater&amp;nbsp; than 80 is found. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(geom !== undefined){ &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.centerAndZoom(geom,12); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.ready(init); &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/script&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The sample I've been working with:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://developers.arcgis.com/en/javascript/jssamples/locator_address.html" rel="nofollow" target="_blank"&gt;https://developers.arcgis.com/en/javascript/jssamples/locator_address.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And the link that is disabled:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer" rel="nofollow" target="_blank"&gt;http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, here is a list of the fields I have available:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; OBJECTID (Type: esriFieldTypeOID, Alias: OBJECTID)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Buurten (EN:Neighborhood) (Type: esriFieldTypeString, Alias: Buurten, Length: 250 )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; B_STATUS (Type: esriFieldTypeString, Alias: B_STATUS, Length: 255 )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FUNCTIE (EN:Type of building) (Type: esriFieldTypeString, Alias: FUNCTIE, Length: 255 )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Straatnaam_conc (En:Streetname) (Type: esriFieldTypeString, Alias: Straatnaam_conc, Length: 250 )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Adres (EN:Address) (Type: esriFieldTypeString, Alias: Adres, Length: 100 )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Shape (Type: esriFieldTypeGeometry, Alias: Shape)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Point:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X: ##.###&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Y: ##.###&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ryan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jun 2013 19:46:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geocoding-with-another-countries-information/m-p/628318#M58656</guid>
      <dc:creator>RyanWhiley</dc:creator>
      <dc:date>2013-06-24T19:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: Geocoding with another countries information</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geocoding-with-another-countries-information/m-p/628319#M58657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;var locator = new esri.tasks.Locator("http://ihavetherightlinkbutcannotputithere/rest/services/FeatureServer");&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you can't geocode against feature services, only &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/rest/apiref/geocodeserver.html"&gt;geocoding services&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jun 2013 21:47:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geocoding-with-another-countries-information/m-p/628319#M58657</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2013-06-24T21:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Geocoding with another countries information</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geocoding-with-another-countries-information/m-p/628320#M58658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi John, thanks for the reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not sure a geocode server will work out here because the addresses do not follow a regular order like they do in The States.&amp;nbsp; The addresses are just in a random order.&amp;nbsp; Would it still work despite that?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If not I was thinking I may have to make some sort of find attribute function and then have another that zooms to said attribute, would this work if the geocode server does not?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ryan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 11:30:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geocoding-with-another-countries-information/m-p/628320#M58658</guid>
      <dc:creator>RyanWhiley</dc:creator>
      <dc:date>2013-06-25T11:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: Geocoding with another countries information</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geocoding-with-another-countries-information/m-p/628321#M58659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;im not sure i understand what you mean by "attribute function", but you can definitely &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/en/javascript/jssamples/query_nomap.html"&gt;query&lt;/A&gt;&lt;SPAN&gt; any individual feature layer in a map service by attributes and return exact matches.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the purpose of a geocoding service is to translate addresses (even when they aren't an exact match to what exists in your reference data) into the most accurate location possible.&amp;nbsp; this is typically done with centerlines that have address ranges defined in the attribute table, but an &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/The_geocoding_workflow/00250000000p000000/"&gt;address locator&lt;/A&gt;&lt;SPAN&gt; can also be created using point data from individual addresses.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 14:47:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geocoding-with-another-countries-information/m-p/628321#M58659</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2013-06-25T14:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Geocoding with another countries information</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geocoding-with-another-countries-information/m-p/628322#M58660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Alright, thank you.&amp;nbsp; I have actually got something working with a MapServer where I altered the code to &lt;/SPAN&gt;&lt;A href="http://developers.arcgis.com/en/javascript/samples/find_map/index.html"&gt;This Application&lt;/A&gt;&lt;SPAN&gt; and my program does virtually the same thing that application does, except mine has the proper data that I need.&amp;nbsp; And when I enter an address it returns the proper address and symbolizes it on the map.&amp;nbsp; But I was wondering if it is possible to autozoom to that location after the result is returned. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Pretty much exactly like the &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/en/javascript/jssamples/locator_address.html"&gt;Geocoding an Address&lt;/A&gt;&lt;SPAN&gt; application.&amp;nbsp; Except that one uses Geocoding and I am not sure if that is going to make a difference or not.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ryan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 15:23:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geocoding-with-another-countries-information/m-p/628322#M58660</guid>
      <dc:creator>RyanWhiley</dc:creator>
      <dc:date>2013-06-25T15:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: Geocoding with another countries information</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geocoding-with-another-countries-information/m-p/628323#M58661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;definitely possible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in our geocoding sample, within the showResults function, we set the variable "geom" equal to the &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/en/javascript/jsapi/addresscandidate.html" rel="nofollow noopener noreferrer" target="_blank"&gt;location&lt;/A&gt;&lt;SPAN&gt; of the returned address candidate (the location property returns a geometry object) prior to passing this information within a call to the function &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/en/javascript/jsapi/map.html#centerandzoom" rel="nofollow noopener noreferrer" target="_blank"&gt;map.centerAndZoom()&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp; in order to do something similar in your app, you'll have to figure out a way to get a reference to a similarly appropriate geometry object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
geom = candidate.location;
...
//first make sure that the geometry of the returned address is actually defined
if(geom !== undefined){
&amp;nbsp;&amp;nbsp;&amp;nbsp; map.centerAndZoom(geom,12);
}
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:45:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geocoding-with-another-countries-information/m-p/628323#M58661</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2021-12-12T02:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Geocoding with another countries information</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geocoding-with-another-countries-information/m-p/628324#M58662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I just did that and referenced geom to result.feature.&amp;nbsp; And now it is simply shrinking the width of the map and displacing the layers from the basemap a little.&amp;nbsp; Am I able to use &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;map.centerAndZoom(geom,12);&lt;/SPAN&gt;&lt;SPAN&gt; when I am not using a GeocodeServer?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was also looking through this thread, &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/85974-Zoom-to-Query-Results?highlight=zoom"&gt;Zoom to Query&lt;/A&gt;&lt;SPAN&gt;, and trying some of the stuff in there but was unable to get any of that to work as well.&amp;nbsp; When I would plug in some new code, the map would just not show up.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 18:16:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geocoding-with-another-countries-information/m-p/628324#M58662</guid>
      <dc:creator>RyanWhiley</dc:creator>
      <dc:date>2013-06-25T18:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: Geocoding with another countries information</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geocoding-with-another-countries-information/m-p/628325#M58663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;results is actually an array of features, so typing something like results.feature into the console after setting a breakpoint in the app returns "undefined".&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you could use results[0].feature to specify the feature in the array at index position 0 (or in english, the first result in the list), but this doesn't return a geometry object either.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]25477[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in order to get a geometry object, you have to dig into the properties of the returned &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://developers.arcgis.com/en/javascript/jsapi/findresult.html#feature" rel="nofollow" target="_blank"&gt;feature&lt;/A&gt;&lt;SPAN&gt; itself (ie. results[0].feature.geometry)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the more comfortable you get navigating our &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://developers.arcgis.com/en/javascript/jsapi/" rel="nofollow" target="_blank"&gt;API reference&lt;/A&gt;&lt;SPAN&gt; and using the developer tools in the browser to set breakpoints and interrogate variables, the less this stuff seems like black magic.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;good luck with the rest of your project!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 18:28:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geocoding-with-another-countries-information/m-p/628325#M58663</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2013-06-25T18:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: Geocoding with another countries information</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geocoding-with-another-countries-information/m-p/628326#M58664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Awesome, it works perfectly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for all your assistance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 18:43:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geocoding-with-another-countries-information/m-p/628326#M58664</guid>
      <dc:creator>RyanWhiley</dc:creator>
      <dc:date>2013-06-25T18:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Geocoding with another countries information</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geocoding-with-another-countries-information/m-p/628327#M58665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;you're very welcome.&amp;nbsp; please consider marking this thread as "answered" &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 18:44:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geocoding-with-another-countries-information/m-p/628327#M58665</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2013-06-25T18:44:47Z</dc:date>
    </item>
  </channel>
</rss>

