on-internet
← Community

OpenRouteService Directions api usage

Stack Overflow ·

So I'm trying to use the open route service directions API https://openrouteservice.org/dev/#/api-docs/directions/get but so far I cannot find any tutorial on how to use it. Im sorry for the beginers questions.. This is the code that I'm trying to use: var request = new XMLHttpRequest(); request.open('GET', 'https://api.openrouteservice.org/directions?api_key=<API-KEY>&coordinates=24.942729,37.443186%7C24.943709,37.444405&profile=cycling-regular'); request.onreadystatechange = function () { if (this.readyState === 4) { console.log('Status:', this.status); console.log('Headers:', this.getAllRes

Comments

Sign in or sign up to comment and upvote.

No comments yet.