Browse Source

google: walking directions

Bernadette Elena Hammerle 3 years ago
parent
commit
baae75aa40
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/maps/Google.js

+ 1 - 1
src/maps/Google.js

@@ -56,7 +56,7 @@ export default class Google extends React.Component{
       console.log("requesting the directions..")
       var start = this.state.path[this.state.path.length-1];
       var proxyurl = "https://cors-anywhere.herokuapp.com/";
-      var baseUrl = "https://maps.googleapis.com/maps/api/directions/json?origin="
+      var baseUrl = "https://maps.googleapis.com/maps/api/directions/json?mode=walking&origin="
       var url = baseUrl + start[0] + "," + start[1] + "&destination=" + end[0] + "," + end[1] + "&key=" + apiKey;
       var reqOptions = {
         method:'GET',