<?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: Retrieve postal codes by city in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retrieve-postal-codes-by-city/m-p/128445#M11859</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Tim,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was able to find a way to do this by passing the XY coordinates from the locator results to the &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/jsapi/locator-amd.html#locationtoaddress"&gt;locationToAddress&lt;/A&gt;&lt;SPAN&gt; method.&amp;nbsp; Then using the &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/jsapi/locator-amd.html#event-location-to-address-complete"&gt;location-to-address-complete&lt;/A&gt;&lt;SPAN&gt; event I was able to retrieve the zip.&amp;nbsp; Take a look at this working example &lt;/SPAN&gt;&lt;A href="http://jsfiddle.net/ckAeQ/"&gt;here&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 May 2014 12:00:32 GMT</pubDate>
    <dc:creator>JakeSkinner</dc:creator>
    <dc:date>2014-05-21T12:00:32Z</dc:date>
    <item>
      <title>Retrieve postal codes by city</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retrieve-postal-codes-by-city/m-p/128444#M11858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to find a postal code when searching for a city. I know this can of course result in multiple postal codes but I only need one. It doesn't really matter which one, but I prefer the one in the center. Does anyone know if this is possible and how? For now I can search for a city, but no postal codes are returned. Background: I need a postal code to send to another service, which returns differtent addresses which should be shown on a map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tim&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2014 05:08:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retrieve-postal-codes-by-city/m-p/128444#M11858</guid>
      <dc:creator>TimKetelaars</dc:creator>
      <dc:date>2014-05-21T05:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve postal codes by city</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retrieve-postal-codes-by-city/m-p/128445#M11859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Tim,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was able to find a way to do this by passing the XY coordinates from the locator results to the &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/jsapi/locator-amd.html#locationtoaddress"&gt;locationToAddress&lt;/A&gt;&lt;SPAN&gt; method.&amp;nbsp; Then using the &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/jsapi/locator-amd.html#event-location-to-address-complete"&gt;location-to-address-complete&lt;/A&gt;&lt;SPAN&gt; event I was able to retrieve the zip.&amp;nbsp; Take a look at this working example &lt;/SPAN&gt;&lt;A href="http://jsfiddle.net/ckAeQ/"&gt;here&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2014 12:00:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retrieve-postal-codes-by-city/m-p/128445#M11859</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2014-05-21T12:00:32Z</dc:date>
    </item>
  </channel>
</rss>

