Using a Feature Service from ArcGIS Online as a Facility or Incident Closest Facility JavascriptFinding the...

Rationale to prefer local variables over instance variables?

Practical reasons to have both a large police force and bounty hunting network?

What type of investment is best suited for a 1-year investment on a down payment?

What are the issues with an additional (limited) concentration slot instead of Bladesong?

How to substitute values from a list into a function?

How to mitigate "bandwagon attacking" from players?

Book about a time-travel war fought by computers

Didactic impediments of using simplified versions

Inverse of the covariance matrix of a multivariate normal distribution

Traversing Africa: A Cryptic Journey

What does @RC mean in SSDT SQL Server Unit Testing?

Why is it "take a leak?"

If nine coins are tossed, what is the probability that the number of heads is even?

Pure Functions: Does "No Side Effects" Imply "Always Same Output, Given Same Input"?

If a set is open, does that imply that it has no boundary points?

Is there a frame of reference in which I was born before I was conceived?

Toast materialize

Where is the line between being obedient and getting bullied by a boss?

Make me a metasequence

Borrowing Characters

How to lift/raise/repair a segment of concrete slab?

Where is the fallacy here?

How to evaluate the limit where something is raised to a power of x?

How do you say "powers of ten"?



Using a Feature Service from ArcGIS Online as a Facility or Incident Closest Facility Javascript


Finding the closest facility in a feature layer from a webmapRunning network analyst for closest facility anaysis in ArcMap?Closest facility analysis using polygonsClosest facility analysis not offering shortest route in ArcGIS Network Analyst?Network Analyst's Closest Facility - starting from route-possible road segmentsFinding a route that ignores all “island” roads using ArcGIS Network AnalystHow to see only those incidents that cannot reach facilities in ArcGIS Closest Facility analysisCan I have my facilities load just once using Closest Facility when using ModelBuilder ArcGIS?How to do a Closest Facility Analysis using OSM?Closest facility ArcGIS Online JavaScript not returning data













0















I am attempting to use the Closest Facility function in the ArcGIS Javascript API. I need to use a feature Service that is hosted in ArcGIS Online as the Facilities layer and then i have search response that I'd like to use as an incident. How can I do this?



I have looked into the Data file option which seems to have worked however the response i get back from the CLosest Facility Task function that runs gives me the following response




0 location(s) in "Facilities" are valid. Need at least 1 valid location(s). Insufficient number of valid locations in "Facilities" or "Incidents"."]




Using the same dataset as my facilities layer hitting the Route url with postman will return a successful response.









share







New contributor




mmagu6 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    0















    I am attempting to use the Closest Facility function in the ArcGIS Javascript API. I need to use a feature Service that is hosted in ArcGIS Online as the Facilities layer and then i have search response that I'd like to use as an incident. How can I do this?



    I have looked into the Data file option which seems to have worked however the response i get back from the CLosest Facility Task function that runs gives me the following response




    0 location(s) in "Facilities" are valid. Need at least 1 valid location(s). Insufficient number of valid locations in "Facilities" or "Incidents"."]




    Using the same dataset as my facilities layer hitting the Route url with postman will return a successful response.









    share







    New contributor




    mmagu6 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      I am attempting to use the Closest Facility function in the ArcGIS Javascript API. I need to use a feature Service that is hosted in ArcGIS Online as the Facilities layer and then i have search response that I'd like to use as an incident. How can I do this?



      I have looked into the Data file option which seems to have worked however the response i get back from the CLosest Facility Task function that runs gives me the following response




      0 location(s) in "Facilities" are valid. Need at least 1 valid location(s). Insufficient number of valid locations in "Facilities" or "Incidents"."]




      Using the same dataset as my facilities layer hitting the Route url with postman will return a successful response.









      share







      New contributor




      mmagu6 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I am attempting to use the Closest Facility function in the ArcGIS Javascript API. I need to use a feature Service that is hosted in ArcGIS Online as the Facilities layer and then i have search response that I'd like to use as an incident. How can I do this?



      I have looked into the Data file option which seems to have worked however the response i get back from the CLosest Facility Task function that runs gives me the following response




      0 location(s) in "Facilities" are valid. Need at least 1 valid location(s). Insufficient number of valid locations in "Facilities" or "Incidents"."]




      Using the same dataset as my facilities layer hitting the Route url with postman will return a successful response.







      arcgis-javascript-api closest-facility





      share







      New contributor




      mmagu6 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share







      New contributor




      mmagu6 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share



      share






      New contributor




      mmagu6 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 6 mins ago









      mmagu6mmagu6

      11




      11




      New contributor




      mmagu6 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      mmagu6 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      mmagu6 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "79"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          mmagu6 is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f314501%2fusing-a-feature-service-from-arcgis-online-as-a-facility-or-incident-closest-fac%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          mmagu6 is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          mmagu6 is a new contributor. Be nice, and check out our Code of Conduct.













          mmagu6 is a new contributor. Be nice, and check out our Code of Conduct.












          mmagu6 is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Geographic Information Systems Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f314501%2fusing-a-feature-service-from-arcgis-online-as-a-facility-or-incident-closest-fac%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Щит и меч (фильм) Содержание Названия серий | Сюжет |...

          Венесуэла на летних Олимпийских играх 2000 Содержание Состав...

          Meter-Bus Содержание Параметры шины | Стандартизация |...