ffwdme/ffwdme.js

Support for ESRI routing services

Closed this issue · 4 comments

I would love to integrate ffwdme into my ESRI application, have you considered offering support for ESRI routing services?

Hi,
I never used the ESRI services myself, but I should be possible.
The easiest way would be to subclass the Routing base class: https://github.com/ffwdme/ffwdme.js/blob/master/src/core/routing/base.js

To meet the interface, one would need to implement the fetch method that asynchronously either calls the error or success method. (like here https://github.com/ffwdme/ffwdme.js/blob/master/src/core/routing/graph_hopper.js#L145)

The successcallback needs an instance of the ffwdme.Route class, so the second step would be to parse the response of the ESRI server into a route object.

I don't have access to an ESRI server, but if you want to give it a shot, I would be glad to help you get it going.

Cheers,
Christian

This link gives me a 502/Page not found error.

I will close this issue until I can get more information on the topic.