Looking to decode a URL using Javascript?
let url = "http://maps.googleapis.com/maps/api/distancematrix/json?origins=London&destinations=drove&mode=driving&language=en&sensor=false";
fetch(url)
.then(response => response.json())
.then(data => console.log(data.rows[0].elements[0].distance.text)); //km
I am interested in achieving the same functionality with Javascript.