<?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: Need exmaple for street intersection in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-exmaple-for-street-intersection/m-p/259547#M24018</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/129060"&gt;james a&lt;/A&gt;, you'll need to be more specific about what you are trying to do before anyone will be able to help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Sep 2015 16:06:19 GMT</pubDate>
    <dc:creator>JeffJacobson</dc:creator>
    <dc:date>2015-09-01T16:06:19Z</dc:date>
    <item>
      <title>Need exmaple for street intersection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-exmaple-for-street-intersection/m-p/259545#M24016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone has an example for street intersection? &lt;/P&gt;&lt;P&gt;Thanks. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 12:54:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-exmaple-for-street-intersection/m-p/259545#M24016</guid>
      <dc:creator>jamesa</dc:creator>
      <dc:date>2015-09-01T12:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: Need exmaple for street intersection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-exmaple-for-street-intersection/m-p/259546#M24017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://www.google.com/maps/place/4th+%26+D+Streets,+Eureka/@40.80255,-124.168193,17z/data=!3m1!4b1!4m2!3m1!1s0x54d15564f3587567:0xb1cf70f7e19dae94"&gt;4th St &amp;amp; D&lt;/A&gt; is an intersection&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 15:23:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-exmaple-for-street-intersection/m-p/259546#M24017</guid>
      <dc:creator>JeffJacobson</dc:creator>
      <dc:date>2015-09-01T15:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Need exmaple for street intersection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-exmaple-for-street-intersection/m-p/259547#M24018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/129060"&gt;james a&lt;/A&gt;, you'll need to be more specific about what you are trying to do before anyone will be able to help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 16:06:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-exmaple-for-street-intersection/m-p/259547#M24018</guid>
      <dc:creator>JeffJacobson</dc:creator>
      <dc:date>2015-09-01T16:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Need exmaple for street intersection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-exmaple-for-street-intersection/m-p/259548#M24019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jeff,&lt;/P&gt;&lt;P&gt;That's is what I need.&amp;nbsp; The user can just type in two street names like your example without specific city then able to zoom to location after you select one of the results.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 16:36:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-exmaple-for-street-intersection/m-p/259548#M24019</guid>
      <dc:creator>jamesa</dc:creator>
      <dc:date>2015-09-01T16:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Need exmaple for street intersection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-exmaple-for-street-intersection/m-p/259549#M24020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By default (using Esri's World Geocoding service) it looks like you are required to enter the city along with the intersection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as I know, the only way around this is to host your own geocoding service, and thus you would need create a &lt;A href="http://desktop.arcgis.com/en/desktop/latest/guide-books/geocoding/defining-the-address-locator-components.htm"&gt;custom address locator&lt;/A&gt; which would only require the user to enter streets.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 16:58:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-exmaple-for-street-intersection/m-p/259549#M24020</guid>
      <dc:creator>JeffJacobson</dc:creator>
      <dc:date>2015-09-01T16:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: Need exmaple for street intersection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-exmaple-for-street-intersection/m-p/259550#M24021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I actually think it may be possible:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/find?text=madison%20and%20marion&amp;amp;f=pjson&amp;amp;location=-82.465144,27.949436&amp;amp;bbox=-81.465144,26.949436,-83.465144,28.949436" title="http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/find?text=madison%20and%20marion&amp;amp;f=pjson&amp;amp;location=-82.465144,27.949436&amp;amp;bbox=-81.465144,26.949436,-83.465144,28.949436" rel="nofollow noopener noreferrer" target="_blank"&gt;http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/find?text=madison%20and%20marion&amp;amp;f=pjson&amp;amp;location=-82…&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This returns:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;{
"spatialReference": {
&amp;nbsp; "wkid": 4326,
&amp;nbsp; "latestWkid": 4326
},
"locations": [
&amp;nbsp; {
&amp;nbsp; "name": "E Madison St &amp;amp; N Marion St, Tampa, Florida, 33602",
&amp;nbsp; "extent": {
&amp;nbsp; "xmin": -82.456560999999994,
&amp;nbsp; "ymin": 27.949013000000001,
&amp;nbsp; "xmax": -82.456560999999994,
&amp;nbsp; "ymax": 27.949013000000001
&amp;nbsp; },
&amp;nbsp; "feature": {
&amp;nbsp; "geometry": {
&amp;nbsp; "x": -82.456559754528257,
&amp;nbsp; "y": 27.949013008444638
&amp;nbsp; },
&amp;nbsp; "attributes": {
&amp;nbsp; "Score": 84.469999999999999,
&amp;nbsp; "Addr_Type": "StreetInt"
&amp;nbsp; }
&amp;nbsp; }
&amp;nbsp; }
]
}&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I provided a bounding box and location origin point - seems to return results for something like "Madison and Marion" without adding city or state.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:46:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-exmaple-for-street-intersection/m-p/259550#M24021</guid>
      <dc:creator>ChrisSmith7</dc:creator>
      <dc:date>2021-12-11T12:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Need exmaple for street intersection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-exmaple-for-street-intersection/m-p/259551#M24022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you mind show me your javascript code?&amp;nbsp; So you basically have to create a map extent to define the boundary?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 18:47:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-exmaple-for-street-intersection/m-p/259551#M24022</guid>
      <dc:creator>jamesa</dc:creator>
      <dc:date>2015-09-01T18:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need exmaple for street intersection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-exmaple-for-street-intersection/m-p/259552#M24023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't have any code available off top hand - I know that's the service that is called by default. Well, "find candidates" is, at least. You can set sources:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/jsapi/search-amd.html#sources" title="https://developers.arcgis.com/javascript/jsapi/search-amd.html#sources" rel="nofollow noopener noreferrer" target="_blank"&gt;Search | API Reference | ArcGIS API for JavaScript&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you should be able to set it to the Esri default world geocoder as a source yourself, and then set the "searchExtent" property on the source object, kinda like so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var extent = new esri.geometry.Extent({
&amp;nbsp; "xmin":-81.465144,"ymin":26.949436,"xmax":-83.465144,"ymax":28.949436,
&amp;nbsp; "spatialReference":{"wkid":4326}
});


var sources = [
&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; locator: ,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; singleLineFieldName: "SingleLine", 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name: "Custom Geocoding Service",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; localSearchOptions: {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; minScale: 300000,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; distance: 50000
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; },
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; placeholder: "Search Geocoder",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; maxResults: 3,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; maxSuggestions: 6,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; enableSuggestions: false,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; minCharacters: 0
}, {
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; featureLayer: new FeatureLayer("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http://services.arcgis.com/V6ZHFr6zdgNZuVG0/arcgis/rest/services/US_Senators/FeatureServer/0" target="_blank"&gt;http://services.arcgis.com/V6ZHFr6zdgNZuVG0/arcgis/rest/services/US_Senators/FeatureServer/0&lt;/A&gt;&lt;SPAN&gt;"),&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; searchFields: ["Name", "Party"],
&amp;nbsp;&amp;nbsp;&amp;nbsp; suggestionTemplate: "${Name}, Party: ${Party}",
&amp;nbsp;&amp;nbsp;&amp;nbsp; exactMatch: false,
&amp;nbsp;&amp;nbsp;&amp;nbsp; outFields: ["*"],
&amp;nbsp;&amp;nbsp;&amp;nbsp; name: "Senators",
&amp;nbsp;&amp;nbsp;&amp;nbsp; labelSymbol: textSymbol,
&amp;nbsp;&amp;nbsp;&amp;nbsp; placeholder: "Senator name",
&amp;nbsp;&amp;nbsp;&amp;nbsp; maxResults: 6,
&amp;nbsp;&amp;nbsp;&amp;nbsp; maxSuggestions: 6,
&amp;nbsp;&amp;nbsp;&amp;nbsp; enableSuggestions: true,
&amp;nbsp;&amp;nbsp;&amp;nbsp; minCharacters: 0
&amp;nbsp;&amp;nbsp; },
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; featureLayer: new FeatureLayer(),{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outFields: ["*"]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; placeholder: "esri",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name: "A FeatureLayer",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; prefix: "",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; suffix: "",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; maxResults: 1,
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt; maxSuggestions: 6, &lt;/STRONG&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;searchExtent: extent,&lt;/STRONG&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exactMatch: false, 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; searchFields: [], // defaults to FeatureLayer.displayField
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; displayField: "", // defaults to FeatureLayer.displayField
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; labelSymbol: new TextSymbol(), 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; minCharacters: 0 
&amp;nbsp;&amp;nbsp; }
];&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We know it's supported, at least in theory, by the service link I posted. I'll have to look into creating a sample app when I get a free moment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:46:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-exmaple-for-street-intersection/m-p/259552#M24023</guid>
      <dc:creator>ChrisSmith7</dc:creator>
      <dc:date>2021-12-11T12:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: Need exmaple for street intersection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-exmaple-for-street-intersection/m-p/259553#M24024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the example to find street intersection:&lt;/P&gt;&lt;P&gt;&lt;A href="http://jsfiddle.net/sky12/L8c035rg/2/" title="http://jsfiddle.net/sky12/L8c035rg/2/"&gt;Edit fiddle - JSFiddle&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2015 19:04:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-exmaple-for-street-intersection/m-p/259553#M24024</guid>
      <dc:creator>jamesa</dc:creator>
      <dc:date>2015-09-02T19:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: Need exmaple for street intersection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-exmaple-for-street-intersection/m-p/259554#M24025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2015 19:09:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-exmaple-for-street-intersection/m-p/259554#M24025</guid>
      <dc:creator>ChrisSmith7</dc:creator>
      <dc:date>2015-09-02T19:09:02Z</dc:date>
    </item>
  </channel>
</rss>

