graphhopper / directions-api-js-client

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

Add Promises #18

Closed boldtrn closed 7 years ago

boldtrn commented 7 years ago

This PR fixes #1. Instead of jQuery Deferred I used a Promis library. The lib is ES6 compatible. As long as we don't use any of the fancy features, we can easily switch to ES6 in the future. Bluebird is considered faster than ES6 promises though.

BTW: There is an interesting SO thread on Bluebird.

karussell commented 7 years ago

Very interesting read, thanks. Also the code looks really good.