Using the google.maps.DirectionsService.route () and google.maps.DirectionsRenderer.setDirections () methods, is it possible to change the text in the information window for the destination without creating my own parser for the trip?
I could not see anything in the API, which allowed you to access route markers.
I don't want any code, just yes / no and hints for the right direction.
Current function:
var request = {
origin: origPoint,
destination: new google.maps.LatLng (dest.lat (), dest.lng ()),
travelMode: google.maps.DirectionsTravelMode.DRIVING,
region: "GB"
};
directionsService.route (request, function (result, status) {
if (status == google.maps.DirectionsStatus.OK) {
directionsDisplay.setDirections (result);
}
});
Thanks Psy
source
share