<?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 Reverse Geocode Android in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/reverse-geocode-android/m-p/729611#M5102</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am new to ArcGIS and I am working on Geocode and reverse geocode.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I use the sample project Place Search and i want to add reverse geocode function that after we provide the address, we put a graphic on the layer showing where we are at. When a user tap on the graphic, i want to show the street name of that location by using Toast.makeText, but i am unable to.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;private void identityLocation(float x, float y)
 {
&amp;nbsp; searchFeature(x, y);
&amp;nbsp; 
&amp;nbsp; if(identifyGraphic !=null)
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; Point mapPoint = mMapView.toMapPoint(x,y);
&amp;nbsp;&amp;nbsp; Point currentPoint = (Point) GeometryEngine.project(mapPoint, SpatialReference.create(4326), mMapView.getSpatialReference());
&amp;nbsp;&amp;nbsp; try {
&amp;nbsp;&amp;nbsp;&amp;nbsp; locRev = locator.reverseGeocode(currentPoint, 2000.0);
&amp;nbsp;&amp;nbsp;&amp;nbsp; s = locRev.getAddressFields().get("StreetName");&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; } catch (Exception e) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; e.printStackTrace();
&amp;nbsp;&amp;nbsp; }&amp;nbsp; 
&amp;nbsp;&amp;nbsp; Toast.makeText(getApplicationContext(), s, Toast.LENGTH_LONG).show();&amp;nbsp;&amp;nbsp; 
&amp;nbsp; }&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;Can someone please help. Thank you&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Jul 2013 18:29:47 GMT</pubDate>
    <dc:creator>JackyNguyen</dc:creator>
    <dc:date>2013-07-10T18:29:47Z</dc:date>
    <item>
      <title>Reverse Geocode Android</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/reverse-geocode-android/m-p/729611#M5102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am new to ArcGIS and I am working on Geocode and reverse geocode.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I use the sample project Place Search and i want to add reverse geocode function that after we provide the address, we put a graphic on the layer showing where we are at. When a user tap on the graphic, i want to show the street name of that location by using Toast.makeText, but i am unable to.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;private void identityLocation(float x, float y)
 {
&amp;nbsp; searchFeature(x, y);
&amp;nbsp; 
&amp;nbsp; if(identifyGraphic !=null)
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; Point mapPoint = mMapView.toMapPoint(x,y);
&amp;nbsp;&amp;nbsp; Point currentPoint = (Point) GeometryEngine.project(mapPoint, SpatialReference.create(4326), mMapView.getSpatialReference());
&amp;nbsp;&amp;nbsp; try {
&amp;nbsp;&amp;nbsp;&amp;nbsp; locRev = locator.reverseGeocode(currentPoint, 2000.0);
&amp;nbsp;&amp;nbsp;&amp;nbsp; s = locRev.getAddressFields().get("StreetName");&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; } catch (Exception e) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; e.printStackTrace();
&amp;nbsp;&amp;nbsp; }&amp;nbsp; 
&amp;nbsp;&amp;nbsp; Toast.makeText(getApplicationContext(), s, Toast.LENGTH_LONG).show();&amp;nbsp;&amp;nbsp; 
&amp;nbsp; }&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;Can someone please help. Thank you&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2013 18:29:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/reverse-geocode-android/m-p/729611#M5102</guid>
      <dc:creator>JackyNguyen</dc:creator>
      <dc:date>2013-07-10T18:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Reverse Geocode Android</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/reverse-geocode-android/m-p/729612#M5103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Answer provide in cross-post &lt;/SPAN&gt;&lt;A href="http://gis.stackexchange.com/questions/65774/reverse-geocode-for-android"&gt;here&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jul 2013 04:01:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/reverse-geocode-android/m-p/729612#M5103</guid>
      <dc:creator>DanO_Neill</dc:creator>
      <dc:date>2013-07-17T04:01:12Z</dc:date>
    </item>
  </channel>
</rss>

