-2

ESRI is providing sample of REST API for Origin Destination Cost Matrix service on their ArcGIS Online at here

ArcGIS Online Directions and Routing Services

Can you please let me know if there is any ArcGIS Server (GP Server) for testing the Origin Destination Cost Matrix service from REST?

1

The Origin Destination Cost Matrix is referenced in the Esri dev labs and you can find specific labs for Network Analyst here. However, there isn't a specific dev lab for OD-CM. Regardless, these are good links for learning.

The OD-CM Rest API is documented. From this link, it references the REST API URL for it: https://logistics.arcgis.com/arcgis/rest/services/World/OriginDestinationCostMatrix/GPServer/GenerateOriginDestinationCostMatrix/submitJob?parameters

Using the API doc, the URL to GenerateOriginDestinationCostMatrix and some of the tips in the DevLabs, you should have enough information to start testing.

  • Thanks Khibma but the link you commented is ArcGIS Online and I need a an ArcGIS Server – Mona Coder Nov 14 '18 at 18:35
  • 1
    The link I reference is a GP Service running on the cloud (Arcgis.com) -- what does one running on some other box offer that this one doesn't? – KHibma Nov 14 '18 at 18:46
  • They are NA services for routing there but I couldn't find anything thing for Origin Destination Cost Matrix – Mona Coder Nov 14 '18 at 19:39
  • 1
    The link I reference is ODCM. logistics.arcgis.com has the REST Service Directory browsing turned off, so you cant poke around it. I'm still not clear what you're looking for if the link I referenced isn't "it" – KHibma Nov 14 '18 at 19:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.