I trace a route through GMaps V3 and the DirectionsService.
This is the code :
var polyline = new google.maps.Polyline({
strokeColor: '#94c970',
strokeWeight: 7
});
directionsService = new google.maps.DirectionsService();
directionsDisplay = new google.maps.DirectionsRenderer({ polylineOptions: polyline, suppressMarkers: true });
var request = {
origin: puntoPartenza,
destination: puntoArrivo,
travelMode: google.maps.DirectionsTravelMode.DRIVING
};
directionsService.route(request, function (response, status) {
if (status == google.maps.DirectionsStatus.OK) {
directionsDisplay.setDirections(response);
}
});
it is a freeway, having 2 lanes, and I’d like to distinguish it on the map. Is it possible?
Need I third part plugins?
Edit : dunno if you understand what I mean with lanes 🙂 I mean : the one with 2-3 traffic lane.
No, that information is not available from the Google Maps API v3 or from any third party services that I have heard of.