<?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: Finding distance between two points in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/finding-distance-between-two-points/m-p/194644#M913</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are right, I mistyped one of the coordinate pairs.&amp;nbsp; I agree, one is in Japan and the other Poland.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The NAServer doesn't mean North America, although the acronym does line up, I think it is "network analyst" since that is the server that does routing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Realizing that one point is in Japan and the other Poland, the error message makes a bit more sense.&amp;nbsp; The routing is setup by regions, and there are certain regions that cannot be routed between.&amp;nbsp; For example, if you try to route between a random point in the middle of North America and a random point in South America, you won't be able to route between them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 May 2017 21:13:01 GMT</pubDate>
    <dc:creator>JoshuaBixby</dc:creator>
    <dc:date>2017-05-22T21:13:01Z</dc:date>
    <item>
      <title>Finding distance between two points</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/finding-distance-between-two-points/m-p/194640#M909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to find distance between two points using the following API.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World/solve?token=[mytoken]&amp;amp;stops=135.700000,35.000000;21.011881,52.244949&amp;amp;f=json" title="http://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World/solve?token=[mytoken]&amp;amp;stops=135.700000,35.000000;21.011881,52.244949&amp;amp;f=json"&gt;http://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World/solve?token=[mytoken]&amp;amp;stops=135.700000,35.…&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm getting below error :&lt;/P&gt;&lt;PRE style="color: #000000;"&gt;{"error":{"code":400,"message":"Unable to complete operation.","details":["The input points are not all located within a single region."]}}&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know how to resolve this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 05:26:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/finding-distance-between-two-points/m-p/194640#M909</guid>
      <dc:creator>roshnibasu</dc:creator>
      <dc:date>2017-05-18T05:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: Finding distance between two points</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/finding-distance-between-two-points/m-p/194641#M910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe your longitude and latitude pairs are in the ocean and not in North America.&amp;nbsp; Also longitude should be negative for NA.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2017 19:15:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/finding-distance-between-two-points/m-p/194641#M910</guid>
      <dc:creator>RandyBurton</dc:creator>
      <dc:date>2017-05-22T19:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Finding distance between two points</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/finding-distance-between-two-points/m-p/194642#M911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;I believe both sets of coordinates are in Japan, which would be positive longitude as specified.&amp;nbsp; &lt;/SPAN&gt;Only 1 pair in Japan.&lt;SPAN style="text-decoration: line-through;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2017 20:05:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/finding-distance-between-two-points/m-p/194642#M911</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2017-05-22T20:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Finding distance between two points</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/finding-distance-between-two-points/m-p/194643#M912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was considering that possibility.&amp;nbsp; I thought one might be Japan and the other Poland.&amp;nbsp; If so, this would be between Europe and Japan (and thus between&amp;nbsp;2 regions).&amp;nbsp; &lt;SPAN style="text-decoration: line-through;"&gt;I think the NAServer is just for the North America region&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe this service is looking for a driving route between locations.&amp;nbsp; If a straight line distance is desired, using a great circle or &lt;A href="https://community.esri.com/migrated-users/3116"&gt;Dan Patterson&lt;/A&gt;‌'s &lt;A _jive_internal="true" href="https://community.esri.com/blogs/dan_patterson/2017/01/24/vincenty"&gt;Vincenty&lt;/A&gt; calculator would be an easier solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2017 20:16:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/finding-distance-between-two-points/m-p/194643#M912</guid>
      <dc:creator>RandyBurton</dc:creator>
      <dc:date>2017-05-22T20:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Finding distance between two points</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/finding-distance-between-two-points/m-p/194644#M913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are right, I mistyped one of the coordinate pairs.&amp;nbsp; I agree, one is in Japan and the other Poland.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The NAServer doesn't mean North America, although the acronym does line up, I think it is "network analyst" since that is the server that does routing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Realizing that one point is in Japan and the other Poland, the error message makes a bit more sense.&amp;nbsp; The routing is setup by regions, and there are certain regions that cannot be routed between.&amp;nbsp; For example, if you try to route between a random point in the middle of North America and a random point in South America, you won't be able to route between them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2017 21:13:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/finding-distance-between-two-points/m-p/194644#M913</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2017-05-22T21:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: Finding distance between two points</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/finding-distance-between-two-points/m-p/194645#M914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"Network Analyst" makes sense in the URL path.&amp;nbsp; Perhaps our comments will also make sense to the OP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2017 21:20:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/finding-distance-between-two-points/m-p/194645#M914</guid>
      <dc:creator>RandyBurton</dc:creator>
      <dc:date>2017-05-22T21:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: Finding distance between two points</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/finding-distance-between-two-points/m-p/194646#M915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Randy Burton and Joshua,&lt;/P&gt;&lt;P&gt;Thanks for your reply. So to calculate only distance does not ESRI provide any direct API?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2017 04:18:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/finding-distance-between-two-points/m-p/194646#M915</guid>
      <dc:creator>roshnibasu</dc:creator>
      <dc:date>2017-05-25T04:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: Finding distance between two points</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/finding-distance-between-two-points/m-p/194647#M916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you say distance, are you thinking/referring to "as a crow flies" or straight line?&amp;nbsp; Since you are using the World Route service, I think commentors assumed you were interested in travel or routed distance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2017 13:36:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/finding-distance-between-two-points/m-p/194647#M916</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2017-05-25T13:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Finding distance between two points</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/finding-distance-between-two-points/m-p/194648#M917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is this in the&amp;nbsp;REST&amp;nbsp;documentation: &lt;A href="http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#//02r3000000z3000000"&gt;Distance.&lt;/A&gt; "It reports the 2D Euclidean or geodesic distance between the two geometries."&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2017 23:31:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/finding-distance-between-two-points/m-p/194648#M917</guid>
      <dc:creator>RandyBurton</dc:creator>
      <dc:date>2017-05-25T23:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Finding distance between two points</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/finding-distance-between-two-points/m-p/194649#M918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joshua,&lt;/P&gt;&lt;P&gt;Thanks. Yes I actually want a straight line distance between two latlons.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 May 2017 08:11:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/finding-distance-between-two-points/m-p/194649#M918</guid>
      <dc:creator>roshnibasu</dc:creator>
      <dc:date>2017-05-26T08:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Finding distance between two points</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/finding-distance-between-two-points/m-p/194650#M919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As &lt;A href="https://community.esri.com/migrated-users/34565"&gt;Randy Burton&lt;/A&gt;‌ points out, use the Geometry Service and not Network Service.&amp;nbsp; Here is an example URL using the Geometry Service and your coordinates:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/Geometry/GeometryServer/distance?sr=4326&amp;amp;geometry1=%7B%22geometryType%22%3A%22esriGeometryPoint%22%2C%22geometry%22%3A%7B%22x%22%3A135.7%2C%22y%22%3A35.0%7D%7D&amp;amp;geometry2=%7B%22geometryType%22%3A%22esriGeometryPoint%22%2C%22geometry%22%3A%7B%22x%22%3A21.011881%2C%22y%22%3A52.244949%7D%7D&amp;amp;geodesic=true&amp;amp;distanceUnit=&amp;amp;f=pjson" title="http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/Geometry/GeometryServer/distance?sr=4326&amp;amp;geometry1=%7B%22geometryType%22%3A%22esriGeometryPoint%22%2C%22geometry%22%3A%7B%22x%22%3A135.7%2C%22y%22%3A35.0%7D%7D&amp;amp;geometry2=%7B%22geometryType%22%3A%22esriGeometryPoint%22%2C%22geometry%22%3A%7B%22x%22%3A21.011881%2C%22y%22%3A52.244949%7D%7D&amp;amp;geodesic=true&amp;amp;distanceUnit=&amp;amp;f=pjson"&gt;http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/Geometry/GeometryServer/distance?sr=4326&amp;amp;geometry1=…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 May 2017 13:30:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/finding-distance-between-two-points/m-p/194650#M919</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2017-05-26T13:30:17Z</dc:date>
    </item>
  </channel>
</rss>

