<?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: which coordinates send? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/which-coordinates-send/m-p/315958#M29071</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I realized I had to add the parameters SpatialReference, in my case my coordinates are type wkid 4326&lt;/P&gt;&lt;P&gt;SpatialReference ": {" wkid ": 4326}&lt;/P&gt;&lt;P&gt;but when I query I still returns FAILED state&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 15 May 2016 23:15:52 GMT</pubDate>
    <dc:creator>CloudingSoft</dc:creator>
    <dc:date>2016-05-15T23:15:52Z</dc:date>
    <item>
      <title>which coordinates send?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/which-coordinates-send/m-p/315957#M29070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Hi I continue with the&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fresources.arcgis.com%2Fen%2Fhelp%2Farcgis-rest-api%2F%23%2FVehicle_Routing_Problem_service%2F02r3000000n4000000%2F" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/arcgis-rest-api/#/Vehicle_Routing_Problem_service/02r3000000n4000000/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sending a url with all the data and get the jobId &lt;STRONG&gt;OK&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when I check the status of jobId always gives me "&lt;STRONG&gt;esriJobFailed&lt;/STRONG&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;investigation found that I am sending &lt;SPAN style="color: #e23d39;"&gt;&lt;STRONG&gt;wrong&lt;/STRONG&gt; &lt;/SPAN&gt;coordinates &lt;STRONG&gt;"orders" and "depots"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;&amp;amp; Orders = { "features": [{ "geometry": { "x": - 4283666882700000, "y": - 5094167652999600} ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;&amp;amp; Depots = { "features": [{ "geometry": { "x": - 4283666882700000, "y": - 5094167652999600} ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did a test example and you put these coordinates manually&lt;/P&gt;&lt;P&gt;for orders:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #7ed529;"&gt;{ "x": - 122.4889, "y": 37.7538}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;for depots:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #7ed529;"&gt;{ "x": - 122.4739, "y": 37.7432}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and get REQUEST status "esriJobSucceeded" !!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;&lt;SPAN style="color: #606060; text-decoration: underline;"&gt;as I can convert my coordinates to the correct coordinates?&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 02:01:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/which-coordinates-send/m-p/315957#M29070</guid>
      <dc:creator>CloudingSoft</dc:creator>
      <dc:date>2016-05-11T02:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: which coordinates send?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/which-coordinates-send/m-p/315958#M29071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I realized I had to add the parameters SpatialReference, in my case my coordinates are type wkid 4326&lt;/P&gt;&lt;P&gt;SpatialReference ": {" wkid ": 4326}&lt;/P&gt;&lt;P&gt;but when I query I still returns FAILED state&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 May 2016 23:15:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/which-coordinates-send/m-p/315958#M29071</guid>
      <dc:creator>CloudingSoft</dc:creator>
      <dc:date>2016-05-15T23:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: which coordinates send?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/which-coordinates-send/m-p/315959#M29072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fabien,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Sounds like you need to convert your Webmercator coords to Geographic coords. For that use WebMercatorUtils:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/3/jsapi/esri.geometry.webmercatorutils-amd.html#webmercatortogeographic" title="https://developers.arcgis.com/javascript/3/jsapi/esri.geometry.webmercatorutils-amd.html#webmercatortogeographic"&gt;esri/geometry/webMercatorUtils | API Reference | ArcGIS API for JavaScript | webMercatorToGeographic&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2016 00:31:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/which-coordinates-send/m-p/315959#M29072</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-05-16T00:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: which coordinates send?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/which-coordinates-send/m-p/315960#M29073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, my coordinates use these coordinates.&lt;/P&gt;&lt;P&gt;but I found that if sending the type of coordinates of example SpatialReference default the script works.&lt;/P&gt;&lt;P&gt;According to documents if I send other cooredenadas must specify the SpatialReference, yet fails.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;SpatialReference ": {" wkid ": 4326}&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2016 03:15:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/which-coordinates-send/m-p/315960#M29073</guid>
      <dc:creator>CloudingSoft</dc:creator>
      <dc:date>2016-05-16T03:15:47Z</dc:date>
    </item>
  </channel>
</rss>

