graphhopper / directions-api-js-client

JavaScript client for the GraphHopper Directions API
https://graphhopper.com/api/1/examples
108 stars 85 forks source link

Make Client more flexible #41

Closed boldtrn closed 6 years ago

boldtrn commented 6 years ago

An issue with the client right now is that if we add new parameters to the API, we have to change the client as well.

It would be great if we could make the client a bit more flexible. We could dynamically convert the args object into a request string and only add special handling for a few parameters or maybe we add a second route method that accepts a URL so that users can write their own url conversion if needed.