<?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 New geocoder component and intersection searches with &amp;amp;quot;/&amp;amp;quot; in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/new-geocoder-component-and-intersection-searches/m-p/206157#M4780</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I need to use a fore slash for intersection searches, which do not seem to be supported so I am working around it with a regular expression search and replace to use an intersection connector that I know will work.&amp;nbsp; Below is the code that I am using, when the user hits the enter key the regular expression function runs, and replaces the / with &amp;amp;.&amp;nbsp; That result is assigned to a bindable variable which is used by the Geocoder.&amp;nbsp; When I run this in debug mode, everything works...the variable shows the / intersection search has been converted to an &amp;amp;...however it seems that the original search that has the / is being sent to the rest endpoint.&amp;nbsp; I can find no reference to the search text that includes that /...so I'm not sure how it is being sent.&amp;nbsp; What am I missing here? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;nbsp;&amp;nbsp; public function searchPattern():void {

&amp;nbsp;&amp;nbsp;&amp;nbsp; var pattern:RegExp = /(\)/g;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var pattern1:RegExp = /(\/)/g;

&amp;nbsp;&amp;nbsp;&amp;nbsp; if (geocoder.text.search(pattern) &amp;gt; -1){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; geocoder.text = geocoder.text.replace(pattern, " &amp;amp; ");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; geotxt = geocoder.text;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }

&amp;nbsp;&amp;nbsp;&amp;nbsp; if (geocoder.text.search(pattern1) &amp;gt; -1){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; geocoder.text = geocoder.text.replace(pattern1, " &amp;amp; ");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; geotxt = geocoder.text;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; trace (geotxt);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp; 
 &amp;lt;esri:Geocoder&amp;nbsp; id="geocoder" text="{geotxt}" enter="searchPattern()" fault="geocoder_faultHandler(event)"&amp;nbsp; x="55" y="10" width="300" height="30" autoComplete="false" map="{map}"&amp;nbsp; mapServices="{mapServ}" minCharacters="2" 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; resultSelected="geocoder1_resultSelectedHandler(event)"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; url="http://{URL1}/arcgis/rest/services/compositeMay2013/GeocodeServer"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Jun 2013 14:41:20 GMT</pubDate>
    <dc:creator>DaveEaton</dc:creator>
    <dc:date>2013-06-07T14:41:20Z</dc:date>
    <item>
      <title>New geocoder component and intersection searches with &amp;quot;/&amp;quot;</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/new-geocoder-component-and-intersection-searches/m-p/206157#M4780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I need to use a fore slash for intersection searches, which do not seem to be supported so I am working around it with a regular expression search and replace to use an intersection connector that I know will work.&amp;nbsp; Below is the code that I am using, when the user hits the enter key the regular expression function runs, and replaces the / with &amp;amp;.&amp;nbsp; That result is assigned to a bindable variable which is used by the Geocoder.&amp;nbsp; When I run this in debug mode, everything works...the variable shows the / intersection search has been converted to an &amp;amp;...however it seems that the original search that has the / is being sent to the rest endpoint.&amp;nbsp; I can find no reference to the search text that includes that /...so I'm not sure how it is being sent.&amp;nbsp; What am I missing here? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;nbsp;&amp;nbsp; public function searchPattern():void {

&amp;nbsp;&amp;nbsp;&amp;nbsp; var pattern:RegExp = /(\)/g;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var pattern1:RegExp = /(\/)/g;

&amp;nbsp;&amp;nbsp;&amp;nbsp; if (geocoder.text.search(pattern) &amp;gt; -1){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; geocoder.text = geocoder.text.replace(pattern, " &amp;amp; ");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; geotxt = geocoder.text;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }

&amp;nbsp;&amp;nbsp;&amp;nbsp; if (geocoder.text.search(pattern1) &amp;gt; -1){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; geocoder.text = geocoder.text.replace(pattern1, " &amp;amp; ");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; geotxt = geocoder.text;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; trace (geotxt);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp; 
 &amp;lt;esri:Geocoder&amp;nbsp; id="geocoder" text="{geotxt}" enter="searchPattern()" fault="geocoder_faultHandler(event)"&amp;nbsp; x="55" y="10" width="300" height="30" autoComplete="false" map="{map}"&amp;nbsp; mapServices="{mapServ}" minCharacters="2" 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; resultSelected="geocoder1_resultSelectedHandler(event)"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; url="http://{URL1}/arcgis/rest/services/compositeMay2013/GeocodeServer"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 14:41:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/new-geocoder-component-and-intersection-searches/m-p/206157#M4780</guid>
      <dc:creator>DaveEaton</dc:creator>
      <dc:date>2013-06-07T14:41:20Z</dc:date>
    </item>
  </channel>
</rss>

