directionsDisplay = new google.maps.DirectionsRenderer();
directionsDisplay.setMap(map);
directionsService = new google.maps.DirectionsService();
var request = {
origin : new google.maps.LatLng(origin.lat, origin.lng),
destination : new google.maps.LatLng(destination.lat, destination.lng),
travelMode : google.maps.DirectionsTravelMode.DRIVING,
unitSystem : google.maps.DirectionsUnitSystem.METRIC,
region: 'de'
};
directionsService.route(request, function(result, status) {
if (status == google.maps.DirectionsStatus.OK) {
directionsDisplay.setDirections(result);
}
});
As a result, I get something like this
Head southwest on 吳江路/吴江路 toward 泰兴路/泰興路
Turn left at 茂名北路
Continue onto 茂名南路
Turn right at 淮海中路
Slight left to stay on 淮海中路
Turn left at 华山路/華山路
My browser has instructions in English, and in French French colleagues French Firefox, street names are Chinese, I thought I requested information in German region: 'de'
Now it’s good, perhaps the Chinese streets are not available in German, but setting the region to gb, en, even zh seems to do nothing. I really would like the text to be only one language, preferably English.
edit I'm sure street names are available in English, because when I use geocoding results, in English, for example,Shimen Road (No.1)
edit2 http://maps.google.com/maps/api/js?sensor=false& language = cs , . api, , // ( , / ), . / Google, .