<?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: Get new point coordinate by current Point coordinate, angle and distance in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-new-point-coordinate-by-current-point/m-p/1157216#M76758</link>
    <description>&lt;P&gt;Hi sir, we are using the same code as given but getting the point at a wrong distance, kindly help us how to get the new point at given distance.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For lat- lattittue&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;log- logitude&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;radius- distance we are passing(line distance)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;bearing- angle&lt;/P&gt;&lt;P&gt;if we enter 200 mt distance, the line length will be 652 mt.&amp;nbsp; How to get the new point at the exact line distance, which we are providing.&amp;nbsp; The screen shot provided for reference.&lt;/P&gt;</description>
    <pubDate>Thu, 24 Mar 2022 12:15:58 GMT</pubDate>
    <dc:creator>JayakumarPD</dc:creator>
    <dc:date>2022-03-24T12:15:58Z</dc:date>
    <item>
      <title>Get new point coordinate by current Point coordinate, angle and distance</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-new-point-coordinate-by-current-point/m-p/1080853#M73953</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;i want to create new point to be away by specific angle and distance from existing point .&lt;/P&gt;&lt;P&gt;i checked geometryEngine.offset but its working only for polyline or polygon not working for points also i need to control the angle so i create the new point up or down not only right and left.&lt;/P&gt;&lt;P&gt;Thank you all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 15:47:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-new-point-coordinate-by-current-point/m-p/1080853#M73953</guid>
      <dc:creator>mohameantar</dc:creator>
      <dc:date>2021-07-20T15:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: Get new point coordinate by current Point coordinate, angle and distance</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-new-point-coordinate-by-current-point/m-p/1080882#M73955</link>
      <description>&lt;P&gt;I have some code that uses latitude and longitude as input values to calculate a second point based on bearing and distance. Haven't used this in quite a while. I'm not sure how much efficiency you need, you would have handle any additional coordinate conversions:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;        function bearingDistance(lat, lon, radius, bearing){
          const lat1Rads = toRad(lat);
          const lon1Rads = toRad(lon);
          const R_KM = 6371; // radius in KM
          const d = radius/R_KM; //angular distance on earth's surface

          const bearingRads = toRad(bearing);
          const lat2Rads = Math.asin(
            Math.sin(lat1Rads) * Math.cos(d) + Math.cos(lat1Rads) * Math.sin(d) * Math.cos(bearingRads)
          );

          const lon2Rads = lon1Rads + Math.atan2(
            Math.sin(bearingRads) * Math.sin(d) * Math.cos(lat1Rads),
            Math.cos(d) - Math.sin(lat1Rads) * Math.sin(lat2Rads)
          );

          return {
            latitude: toDeg(lat2Rads),
            longitude: toDeg(lon2Rads)
          }          
        }

        function toRad(degrees){
          return degrees * Math.PI / 180;
        }

        function toDeg(radians){
          return radians * 180 / Math.PI;
        }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 15:41:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-new-point-coordinate-by-current-point/m-p/1080882#M73955</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2021-07-20T15:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Get new point coordinate by current Point coordinate, angle and distance</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-new-point-coordinate-by-current-point/m-p/1081138#M73962</link>
      <description>&lt;P&gt;its working, thank you exactly what i want &lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jul 2021 00:04:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-new-point-coordinate-by-current-point/m-p/1081138#M73962</guid>
      <dc:creator>mohameantar</dc:creator>
      <dc:date>2021-07-21T00:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: Get new point coordinate by current Point coordinate, angle and distance</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-new-point-coordinate-by-current-point/m-p/1081142#M73963</link>
      <description>&lt;P&gt;You can also try the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-geodesicUtils.html#pointFromDistance" target="_self"&gt;pointFromDistance&lt;/A&gt;() method:&amp;nbsp;&lt;EM&gt;Geodetically computes the location at a defined distance and direction from a known location.&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jul 2021 00:56:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-new-point-coordinate-by-current-point/m-p/1081142#M73963</guid>
      <dc:creator>JohnGrayson</dc:creator>
      <dc:date>2021-07-21T00:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Get new point coordinate by current Point coordinate, angle and distance</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-new-point-coordinate-by-current-point/m-p/1157216#M76758</link>
      <description>&lt;P&gt;Hi sir, we are using the same code as given but getting the point at a wrong distance, kindly help us how to get the new point at given distance.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For lat- lattittue&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;log- logitude&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;radius- distance we are passing(line distance)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;bearing- angle&lt;/P&gt;&lt;P&gt;if we enter 200 mt distance, the line length will be 652 mt.&amp;nbsp; How to get the new point at the exact line distance, which we are providing.&amp;nbsp; The screen shot provided for reference.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 12:15:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-new-point-coordinate-by-current-point/m-p/1157216#M76758</guid>
      <dc:creator>JayakumarPD</dc:creator>
      <dc:date>2022-03-24T12:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Get new point coordinate by current Point coordinate, angle and distance</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-new-point-coordinate-by-current-point/m-p/1157319#M76762</link>
      <description>&lt;P&gt;As &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/11373"&gt;@JohnGrayson&lt;/a&gt; suggested below, try using the JS APIs geodesicUtils.pointDistance(): &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-geodesicUtils.html#pointFromDistance" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-geodesicUtils.html#pointFromDistance&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 14:47:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-new-point-coordinate-by-current-point/m-p/1157319#M76762</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2022-03-24T14:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: Get new point coordinate by current Point coordinate, angle and distance</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-new-point-coordinate-by-current-point/m-p/1157742#M76784</link>
      <description>&lt;P&gt;thank you sir,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2022 11:25:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-new-point-coordinate-by-current-point/m-p/1157742#M76784</guid>
      <dc:creator>JayakumarPD</dc:creator>
      <dc:date>2022-03-25T11:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Get new point coordinate by current Point coordinate, angle and distance</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-new-point-coordinate-by-current-point/m-p/1631505#M87350</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/11373"&gt;@JohnGrayson&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/180"&gt;@AndyGup&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;it's been a while since the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-geodesicUtils.html#pointFromDistance" target="_self"&gt;pointFromDistance()&lt;/A&gt;&amp;nbsp;hint, and the&amp;nbsp;geodesicUtils have been deprecated in JSSDK v 4.33, and I can't seem to find an &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-geodeticDistanceOperator.html" target="_self"&gt;operator&lt;/A&gt; that solves this very problem. Am I missing something?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Nik&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2025 11:41:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-new-point-coordinate-by-current-point/m-p/1631505#M87350</guid>
      <dc:creator>NiklasKöhn</dc:creator>
      <dc:date>2025-07-09T11:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: Get new point coordinate by current Point coordinate, angle and distance</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-new-point-coordinate-by-current-point/m-p/1632524#M87374</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/77918"&gt;@NiklasKöhn&lt;/a&gt;&amp;nbsp; thanks for the feedback. Correct, there's currently no replacement for pointFromDistance(). We are looking into options for that.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jul 2025 17:41:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-new-point-coordinate-by-current-point/m-p/1632524#M87374</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2025-07-11T17:41:02Z</dc:date>
    </item>
  </channel>
</rss>

