Google Maps API directionsService.route different from Google Maps Directions
I'm using Google Maps JS API to search for nearby places, i.e. restaurants based on my LatLng : var request = { location: myLocation, rankBy: google.maps.places.RankBy.DISTANCE, types: ['bar', 'cafe', 'food', 'liquor_store', 'lodging', 'meal_delivery', 'meal_takeaway', 'night_club', 'restaurant'], keyword: ['bar', 'pub'] }; searchService.nearbySearch(request, callback); I get the Results Array and want to show directions to the first place from the array : var request = { origin: myLocation, destination: bars[0].geometry.location, travelMode: google.maps.TravelMode.WALKING }; directionsService