<?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: geopy.distance vincenty - pairs of coordinates in Python Snippets Questions</title>
    <link>https://community.esri.com/t5/python-snippets-questions/geopy-distance-vincenty-pairs-of-coordinates/m-p/786292#M179</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Dan! Unfortunately now it says it can't import the textwrapper functions. Will have to look at it at a later stage again.&lt;/P&gt;&lt;P&gt;I&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 26 Nov 2017 09:30:34 GMT</pubDate>
    <dc:creator>Nicole_Ueberschär</dc:creator>
    <dc:date>2017-11-26T09:30:34Z</dc:date>
    <item>
      <title>geopy.distance vincenty - pairs of coordinates</title>
      <link>https://community.esri.com/t5/python-snippets-questions/geopy-distance-vincenty-pairs-of-coordinates/m-p/786286#M173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I managed to calculate the distance between two points (from two different feature classes) using the vincenty module from&amp;nbsp;geopy.distance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For quite some time I struggled to find out why I got wrong distances. (even to realize it took me some time)&lt;/P&gt;&lt;P&gt;In the end I figured that the vincenty module requires the coordinates in Latitude/Longitude while the coordinates as they are stored in the feature class &lt;A href="mailto:shape@xy"&gt;shape@xy&lt;/A&gt;&amp;nbsp;are stored as Longitude/Langitude.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone confirm this? It doesn't make any sense to me why the vincenty module should require the coordinates the "wrong way" but I only get correct measures when using the coordinates switched to Latitude/Longitude...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 12:07:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/geopy-distance-vincenty-pairs-of-coordinates/m-p/786286#M173</guid>
      <dc:creator>Nicole_Ueberschär</dc:creator>
      <dc:date>2017-11-02T12:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: geopy.distance vincenty - pairs of coordinates</title>
      <link>https://community.esri.com/t5/python-snippets-questions/geopy-distance-vincenty-pairs-of-coordinates/m-p/786287#M174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.esri.com/blogs/dan_patterson/2017/01/24/vincenty"&gt;&lt;STRONG&gt;Use this Vincenty&lt;/STRONG&gt; &lt;/A&gt;then.... for comparison&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 12:43:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/geopy-distance-vincenty-pairs-of-coordinates/m-p/786287#M174</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-11-02T12:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: geopy.distance vincenty - pairs of coordinates</title>
      <link>https://community.esri.com/t5/python-snippets-questions/geopy-distance-vincenty-pairs-of-coordinates/m-p/786288#M175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The X property of a point always corresponds to Longitude and the Y always to Latitude. As far as I can see&amp;nbsp;&lt;A class="link-titled" href="https://pypi.python.org/pypi/geopy" title="https://pypi.python.org/pypi/geopy"&gt;geopy 1.11.0 : Python Package Index&lt;/A&gt;&amp;nbsp;seems to use a tuple of coordinates where the first element is the Latitude and the second is Longitude). So the answer would be yes...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 12:53:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/geopy-distance-vincenty-pairs-of-coordinates/m-p/786288#M175</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-11-02T12:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: geopy.distance vincenty - pairs of coordinates</title>
      <link>https://community.esri.com/t5/python-snippets-questions/geopy-distance-vincenty-pairs-of-coordinates/m-p/786289#M176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;of course, you can edit their code and swap the coordinates yourself&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;coords = [45, -75]&lt;/DIV&gt;&lt;DIV&gt;coords[::-1]&lt;BR /&gt;Out[5]: [-75, 45]&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 17:50:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/geopy-distance-vincenty-pairs-of-coordinates/m-p/786289#M176</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-11-02T17:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: geopy.distance vincenty - pairs of coordinates</title>
      <link>https://community.esri.com/t5/python-snippets-questions/geopy-distance-vincenty-pairs-of-coordinates/m-p/786290#M177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan, the python file is empty &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Nov 2017 08:47:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/geopy-distance-vincenty-pairs-of-coordinates/m-p/786290#M177</guid>
      <dc:creator>Nicole_Ueberschär</dc:creator>
      <dc:date>2017-11-26T08:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: geopy.distance vincenty - pairs of coordinates</title>
      <link>https://community.esri.com/t5/python-snippets-questions/geopy-distance-vincenty-pairs-of-coordinates/m-p/786291#M178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;strange, it used to be there because people have used it.. I uploaded again, let me know&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Nov 2017 09:18:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/geopy-distance-vincenty-pairs-of-coordinates/m-p/786291#M178</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-11-26T09:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: geopy.distance vincenty - pairs of coordinates</title>
      <link>https://community.esri.com/t5/python-snippets-questions/geopy-distance-vincenty-pairs-of-coordinates/m-p/786292#M179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Dan! Unfortunately now it says it can't import the textwrapper functions. Will have to look at it at a later stage again.&lt;/P&gt;&lt;P&gt;I&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Nov 2017 09:30:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/geopy-distance-vincenty-pairs-of-coordinates/m-p/786292#M179</guid>
      <dc:creator>Nicole_Ueberschär</dc:creator>
      <dc:date>2017-11-26T09:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: geopy.distance vincenty - pairs of coordinates</title>
      <link>https://community.esri.com/t5/python-snippets-questions/geopy-distance-vincenty-pairs-of-coordinates/m-p/786293#M180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use python 3... I forget some are still on legacy python&lt;/P&gt;&lt;P&gt;comment out line 50 and remove the word 'dedent' in line 163&lt;/P&gt;&lt;P&gt;And besides... you just don't 'run' it unless you want the demo to run.&amp;nbsp; the def is the main part, but don't forget the imports&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Nov 2017 09:51:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/geopy-distance-vincenty-pairs-of-coordinates/m-p/786293#M180</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-11-26T09:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: geopy.distance vincenty - pairs of coordinates</title>
      <link>https://community.esri.com/t5/python-snippets-questions/geopy-distance-vincenty-pairs-of-coordinates/m-p/786294#M181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! I will give it another try.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Of course you are right, that I don't run the script by itself, I imported it to my script and run it from there...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Nov 2017 20:29:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/geopy-distance-vincenty-pairs-of-coordinates/m-p/786294#M181</guid>
      <dc:creator>Nicole_Ueberschär</dc:creator>
      <dc:date>2017-11-26T20:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: geopy.distance vincenty - pairs of coordinates</title>
      <link>https://community.esri.com/t5/python-snippets-questions/geopy-distance-vincenty-pairs-of-coordinates/m-p/786295#M182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;closed?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2017 10:45:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/geopy-distance-vincenty-pairs-of-coordinates/m-p/786295#M182</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-12-06T10:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: geopy.distance vincenty - pairs of coordinates</title>
      <link>https://community.esri.com/t5/python-snippets-questions/geopy-distance-vincenty-pairs-of-coordinates/m-p/786296#M183</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/migrated-users/3116" target="_blank"&gt;Dan Patterson&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just did a small test with your script and obtained this result:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;:--------------------------------------------------------:
:Vincenty inverse...
:Longitude, Latitude
:From: (&amp;nbsp; 6.23927000, -75.60019300)
:To:&amp;nbsp;&amp;nbsp; (&amp;nbsp; 4.72356700, -74.07436300)
:Distance: 175953.991 m
:Bearings...
:&amp;nbsp; Initial&amp;nbsp;&amp;nbsp; 344.70 deg
:&amp;nbsp; Final&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 346.16 deg
:&amp;nbsp; Iterations taken.... 2
:--------------------------------------------------------:&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;When I run this script using the distance and angle to in arcpy:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;def&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;main&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy
&amp;nbsp;&amp;nbsp;&amp;nbsp; coords &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;6.239270&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;75.600193&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;4.723567&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;74.074363&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; sr &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SpatialReference&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;4326&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; pntg1 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;PointGeometry&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Point&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;coords&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; sr&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; pntg2 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;PointGeometry&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Point&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;coords&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; sr&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; methods &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'PLANAR'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'GEODESIC'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'GREAT_ELLIPTIC'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="string token"&gt;'LOXODROME'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'PLANAR'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'PRESERVE_SHAPE'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; method &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; methods&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"{0}\t{1}\t{2}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'%14s'&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;%&lt;/SPAN&gt; method&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;pntg1&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;angleAndDistanceTo&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;pntg2&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; method&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; __name__ &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'__main__'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; main&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... it gives me this:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PLANAR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;134.674409847&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;238078.891905
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GEODESIC&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;134.674454363&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;238078.891905
GREAT_ELLIPTIC&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;134.674961722&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;238078.891908
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOXODROME&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;134.750719983&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;238078.956191
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PLANAR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;134.674409847&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;238078.891905
PRESERVE_SHAPE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;134.674454363&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;238078.891905‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea why the distance is so different?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:58:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/geopy-distance-vincenty-pairs-of-coordinates/m-p/786296#M183</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-12T08:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: geopy.distance vincenty - pairs of coordinates</title>
      <link>https://community.esri.com/t5/python-snippets-questions/geopy-distance-vincenty-pairs-of-coordinates/m-p/786297#M184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And when using geopy:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;def&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;main&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; geopy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;distance &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; vincenty&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; great_circle
&amp;nbsp;&amp;nbsp;&amp;nbsp; medellin &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;6.239270&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;75.600193&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; bogota &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;4.723567&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;74.074363&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;vincenty&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;medellin&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; bogota&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;meters&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;great_circle&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;medellin&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; bogota&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;meters&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; __name__ &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'__main__'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; main&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;...&amp;nbsp;I get this result:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;238078.891889
238660.799202&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Showing that vincenty is very close to what arcpy calculated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:58:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/geopy-distance-vincenty-pairs-of-coordinates/m-p/786297#M184</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-12T08:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: geopy.distance vincenty - pairs of coordinates</title>
      <link>https://community.esri.com/t5/python-snippets-questions/geopy-distance-vincenty-pairs-of-coordinates/m-p/786298#M185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;longitude first then latitude... that is the problem with geowhater that I noted before and proposed a simple solution if anyone wanted to edit their code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV data-object-id="204529" data-object-type="1"&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;UL&gt;&lt;LI data-object-id="726433" data-object-type="2"&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;coords = [45, -75]&lt;/DIV&gt;&lt;DIV&gt;coords[::-1]&lt;BR /&gt;Out[5]: [-75, 45]&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2017 14:11:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/geopy-distance-vincenty-pairs-of-coordinates/m-p/786298#M185</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-12-06T14:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: geopy.distance vincenty - pairs of coordinates</title>
      <link>https://community.esri.com/t5/python-snippets-questions/geopy-distance-vincenty-pairs-of-coordinates/m-p/786299#M186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are (as always) completely right. I assumed that the code would use the coordinates in lat, lon order (as the OP mentioned), but it uses them the "right way" as X ,&amp;nbsp;Y and I provided Y, X. Switching the order did the trick and returns the expected values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;:--------------------------------------------------------:&lt;BR /&gt;:Vincenty inverse...&lt;BR /&gt;:Longitude, Latitude&lt;BR /&gt;:From: (-75.60019300, 6.23927000)&lt;BR /&gt;:To: (-74.07436300, 4.72356700)&lt;BR /&gt;:Distance: 238078.892 m&lt;BR /&gt;:Bearings...&lt;BR /&gt;: Initial 134.67 deg&lt;BR /&gt;: Final 134.82 deg&lt;BR /&gt;: Iterations taken.... 4&lt;BR /&gt;:--------------------------------------------------------:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2017 14:20:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/geopy-distance-vincenty-pairs-of-coordinates/m-p/786299#M186</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-12-06T14:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: geopy.distance vincenty - pairs of coordinates</title>
      <link>https://community.esri.com/t5/python-snippets-questions/geopy-distance-vincenty-pairs-of-coordinates/m-p/786300#M187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You had already mentioned this in one of you previous comments as well... &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;The X property of a point always corresponds to Longitude and the Y always to Latitude&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I belong to the Long/Lat... aka... X/Y, column/row... school&amp;nbsp;&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/silly.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2017 14:25:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/geopy-distance-vincenty-pairs-of-coordinates/m-p/786300#M187</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-12-06T14:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: geopy.distance vincenty - pairs of coordinates</title>
      <link>https://community.esri.com/t5/python-snippets-questions/geopy-distance-vincenty-pairs-of-coordinates/m-p/786301#M188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't get met wrong, I really feel weird if I have o specify something like Y, X, but I was focused on the way vincenty and geopy works with lat, long and therefore specified it incorrectly in your code, not noticing the correct example you provided that was not including point in the South Pole.. Anyway thanks for pointing out my mistake!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2017 14:43:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/geopy-distance-vincenty-pairs-of-coordinates/m-p/786301#M188</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-12-06T14:43:14Z</dc:date>
    </item>
  </channel>
</rss>

