This is only a snippet of code, from my project, but it is currently showing a map and an elevation bar. The elevation bar is currently showing metric, instead of imperial. Clearly, I have defined imperial. Any ideas?
ds.route({
origin: from,
destination: to,
travelMode: google.maps.DirectionsTravelMode.DRIVING,
unitSystem: google.maps.UnitSystem.IMPERIAL
}, function(result, status) {
if (status == google.maps.DirectionsStatus.OK) {
fitBounds = true;
dr.setDirections(result);
}
});
Update: Does this information get passed along to google's elevation service? It seems like if you define imperial here, it should carry through.