<?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 Calculating bearing between 2 GPS points in Public Transit Questions</title>
    <link>https://community.esri.com/t5/public-transit-questions/calculating-bearing-between-2-gps-points/m-p/6643#M361</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to calculate the bearing between 2 different points - Lat1, Long1 &amp;amp; Lat2, Long2.&amp;nbsp; I have researched many formulas and python scripts but cannot seem to accurately determine the bearing.&amp;nbsp; I found that ArcGIS has a Production Mapping license which contains a tool that can do the work for me, but would rather attempt other option first.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there an easier way without inquiring about another license to achieve the bearing between 2 points?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Feb 2019 18:50:08 GMT</pubDate>
    <dc:creator>LondonTransit</dc:creator>
    <dc:date>2019-02-27T18:50:08Z</dc:date>
    <item>
      <title>Calculating bearing between 2 GPS points</title>
      <link>https://community.esri.com/t5/public-transit-questions/calculating-bearing-between-2-gps-points/m-p/6643#M361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to calculate the bearing between 2 different points - Lat1, Long1 &amp;amp; Lat2, Long2.&amp;nbsp; I have researched many formulas and python scripts but cannot seem to accurately determine the bearing.&amp;nbsp; I found that ArcGIS has a Production Mapping license which contains a tool that can do the work for me, but would rather attempt other option first.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there an easier way without inquiring about another license to achieve the bearing between 2 points?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2019 18:50:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/public-transit-questions/calculating-bearing-between-2-gps-points/m-p/6643#M361</guid>
      <dc:creator>LondonTransit</dc:creator>
      <dc:date>2019-02-27T18:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating bearing between 2 GPS points</title>
      <link>https://community.esri.com/t5/public-transit-questions/calculating-bearing-between-2-gps-points/m-p/6644#M362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is Haversine not good enough?&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://stackoverflow.com/questions/4913349/haversine-formula-in-python-bearing-and-distance-between-two-gps-points" title="https://stackoverflow.com/questions/4913349/haversine-formula-in-python-bearing-and-distance-between-two-gps-points"&gt;Haversine Formula in Python (Bearing and Distance between two GPS points) - Stack Overflow&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have implemented Vincenty's approximation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://en.wikipedia.org/wiki/Vincenty%27s_formulae" title="https://en.wikipedia.org/wiki/Vincenty%27s_formulae"&gt;Vincenty's formulae - Wikipedia&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in Python, but it isn't suitable for field calculator calculations since it is iterative.&amp;nbsp; It can be used in a python ide with the user providing long/lats pairs, if you are interested? (not much market for a tool to do this) or you could construct lines and calculate the bearings yourself using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/calculate-geometry-attributes.htm" title="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/calculate-geometry-attributes.htm"&gt;Calculate Geometry Attributes—Data Management toolbox | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2019 20:29:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/public-transit-questions/calculating-bearing-between-2-gps-points/m-p/6644#M362</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-02-27T20:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating bearing between 2 GPS points</title>
      <link>https://community.esri.com/t5/public-transit-questions/calculating-bearing-between-2-gps-points/m-p/6645#M363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you're working with python PointGeometry objects, there's a method called angleAndDistanceTo that can be used to calculate the bearing from one point to the next.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/arcpy/classes/pointgeometry.htm" title="https://pro.arcgis.com/en/pro-app/arcpy/classes/pointgeometry.htm"&gt;PointGeometry—ArcPy classes | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2019 20:40:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/public-transit-questions/calculating-bearing-between-2-gps-points/m-p/6645#M363</guid>
      <dc:creator>MelindaMorang</dc:creator>
      <dc:date>2019-02-27T20:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating bearing between 2 GPS points</title>
      <link>https://community.esri.com/t5/public-transit-questions/calculating-bearing-between-2-gps-points/m-p/6646#M364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the help!&amp;nbsp; I ended up using the Haversine Formula in Python which is calculating the proper bearing between stops.&amp;nbsp; Now my only issue is that I need to calculate the bearing for roughly 1000 pairs of GPS points....It would be great if I could enter it into the Field Calculator, however like you said that is not possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions on how to batch this process for a number of records?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2019 21:39:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/public-transit-questions/calculating-bearing-between-2-gps-points/m-p/6646#M364</guid>
      <dc:creator>LondonTransit</dc:creator>
      <dc:date>2019-02-27T21:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating bearing between 2 GPS points</title>
      <link>https://community.esri.com/t5/public-transit-questions/calculating-bearing-between-2-gps-points/m-p/6647#M365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vincenty is iterative, not haversine.,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2019 22:19:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/public-transit-questions/calculating-bearing-between-2-gps-points/m-p/6647#M365</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-02-27T22:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating bearing between 2 GPS points</title>
      <link>https://community.esri.com/t5/public-transit-questions/calculating-bearing-between-2-gps-points/m-p/6648#M366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you can cobble up something with this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://gist.github.com/Dan-Patterson/137a5492080b9bd914dcaa0656ccdb77" title="https://gist.github.com/Dan-Patterson/137a5492080b9bd914dcaa0656ccdb77"&gt;vincenty.py · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It was actually way faster than doing geodesic calculations using arcpy pointgeometry objects&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2019 02:30:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/public-transit-questions/calculating-bearing-between-2-gps-points/m-p/6648#M366</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-03-01T02:30:54Z</dc:date>
    </item>
  </channel>
</rss>

