<?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: Distance from lat/lng to coast? in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/distance-from-lat-lng-to-coast/m-p/187247#M1169</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;SPAN style="color: #b00000; font-family: Verdana,Arial,Helvetica,sans-serif; background-color: #e5eff7;"&gt;Hello,&lt;BR /&gt;It returns:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #b00000; font-family: Verdana,Arial,Helvetica,sans-serif; background-color: #e5eff7;"&gt;{ "objectId": 0, "name": "Pixel", "value": "101", "location": { "x": -8412354.919917563, "y": 693391.3328019552, "spatialReference": { "wkid": 102100, "latestWkid": 3857 } }, "properties": null, "catalogItems": null, "catalogItemVisibilities": [] }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #b00000; font-family: Verdana,Arial,Helvetica,sans-serif; background-color: #e5eff7;"&gt;I assume that value is in kilometers. Is there a way to make it return something different?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #b00000; font-family: Verdana,Arial,Helvetica,sans-serif; background-color: #e5eff7;"&gt;Thanks&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Jan 2020 17:14:34 GMT</pubDate>
    <dc:creator>CharlieGrosvenor</dc:creator>
    <dc:date>2020-01-14T17:14:34Z</dc:date>
    <item>
      <title>Distance from lat/lng to coast?</title>
      <link>https://community.esri.com/t5/developers-questions/distance-from-lat-lng-to-coast/m-p/187243#M1165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have found the following:&amp;nbsp;&lt;A class="link-titled" href="https://www.arcgis.com/home/item.html?id=edc6d54479014a49941122acf1104cbe" title="https://www.arcgis.com/home/item.html?id=edc6d54479014a49941122acf1104cbe"&gt;https://www.arcgis.com/home/item.html?id=edc6d54479014a49941122acf1104cbe&lt;/A&gt; which suggests it could be used to get the distance to coast from a point. I would like to be able to give a lat / lng and it returns the distance. Is this doable with ArcGIS online?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2020 15:46:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/distance-from-lat-lng-to-coast/m-p/187243#M1165</guid>
      <dc:creator>CharlieGrosvenor</dc:creator>
      <dc:date>2020-01-09T15:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Distance from lat/lng to coast?</title>
      <link>https://community.esri.com/t5/developers-questions/distance-from-lat-lng-to-coast/m-p/187244#M1166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/people/charlie.grosvenor@bellandclements.com"&gt;charlie.grosvenor@bellandclements.com&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you add the layer to a web map in ArcGIS Online you can search for the lat lon location and click on the map to get the result:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/477816_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also use the REST API, like this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://oceans2.arcgis.com/arcgis/rest/services/Distance_to_Coast/ImageServer/identify?geometry=%7B%22x%22%3A-75.569470%2C%22y%22%3A6.216607%2C%22spatialReference%22%3A%7B%22wkid%22%3A4326%7D%7D&amp;amp;geometryType=esriGeometryPoint&amp;amp;mosaicRule=&amp;amp;renderingRule=&amp;amp;renderingRules=&amp;amp;pixelSize=&amp;amp;time=&amp;amp;returnGeometry=false&amp;amp;returnCatalogItems=false&amp;amp;f=html"&gt;https://oceans2.arcgis.com/arcgis/rest/services/Distance_to_Coast/ImageServer/identify?geometry=%7B%22x%22%3A-75.569470%2C%22y%22%3A6.216607%2C%22spatialReference%22%3A%7B%22wkid%22%3A4326%7D%7D&amp;amp;geometryType=esriGeometryPoint&amp;amp;mosaicRule=&amp;amp;renderingRule=&amp;amp;renderingRules=&amp;amp;pixelSize=&amp;amp;time=&amp;amp;returnGeometry=false&amp;amp;returnCatalogItems=false&amp;amp;f=html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" height="378" src="https://community.esri.com/legacyfs/online/477817_pastedImage_2.png" width="407" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will return the result in the format you specify:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" height="221" src="https://community.esri.com/legacyfs/online/477821_pastedImage_3.png" width="208" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2020 16:21:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/distance-from-lat-lng-to-coast/m-p/187244#M1166</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2020-01-09T16:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: Distance from lat/lng to coast?</title>
      <link>https://community.esri.com/t5/developers-questions/distance-from-lat-lng-to-coast/m-p/187245#M1167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the response. Have it working now. Do you know if its possible to get decimal values back. The API only seems to return whole numbers?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jan 2020 14:40:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/distance-from-lat-lng-to-coast/m-p/187245#M1167</guid>
      <dc:creator>CharlieGrosvenor1</dc:creator>
      <dc:date>2020-01-14T14:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Distance from lat/lng to coast?</title>
      <link>https://community.esri.com/t5/developers-questions/distance-from-lat-lng-to-coast/m-p/187246#M1168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/people/bcgrosvenor"&gt;bcgrosvenor&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it a floating raster or integer?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jan 2020 16:54:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/distance-from-lat-lng-to-coast/m-p/187246#M1168</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2020-01-14T16:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Distance from lat/lng to coast?</title>
      <link>https://community.esri.com/t5/developers-questions/distance-from-lat-lng-to-coast/m-p/187247#M1169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;SPAN style="color: #b00000; font-family: Verdana,Arial,Helvetica,sans-serif; background-color: #e5eff7;"&gt;Hello,&lt;BR /&gt;It returns:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #b00000; font-family: Verdana,Arial,Helvetica,sans-serif; background-color: #e5eff7;"&gt;{ "objectId": 0, "name": "Pixel", "value": "101", "location": { "x": -8412354.919917563, "y": 693391.3328019552, "spatialReference": { "wkid": 102100, "latestWkid": 3857 } }, "properties": null, "catalogItems": null, "catalogItemVisibilities": [] }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #b00000; font-family: Verdana,Arial,Helvetica,sans-serif; background-color: #e5eff7;"&gt;I assume that value is in kilometers. Is there a way to make it return something different?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #b00000; font-family: Verdana,Arial,Helvetica,sans-serif; background-color: #e5eff7;"&gt;Thanks&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jan 2020 17:14:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/distance-from-lat-lng-to-coast/m-p/187247#M1169</guid>
      <dc:creator>CharlieGrosvenor</dc:creator>
      <dc:date>2020-01-14T17:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Distance from lat/lng to coast?</title>
      <link>https://community.esri.com/t5/developers-questions/distance-from-lat-lng-to-coast/m-p/187248#M1170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/people/charlie.grosvenor@bellandclements.com"&gt;charlie.grosvenor@bellandclements.com&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sorry, but yes the pixel type of the service is U16 (unsigned 16 bit integer, range 0 to 65535), so you will not obtain a decimal value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jan 2020 17:34:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/distance-from-lat-lng-to-coast/m-p/187248#M1170</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2020-01-14T17:34:03Z</dc:date>
    </item>
  </channel>
</rss>

