我的应用程序形成路线使用google.map api,我想将此路线发送到汽车或手机\平板电脑,可以通过Google帐户(电子邮件),通过使用javascript的按钮;
service.route
像这样:
service.route({
origin: officeLocation,
destination: officeLocation,
waypoints: clientAdrArray,
travelMode: google.maps.TravelMode.DRIVING,
avoidTolls: true
}, function (response, status) {
if (status === google.maps.DirectionsStatus.OK) {
display.setDirections(response);
} else {
alert('ERROR: ' + status);
}
});
最佳答案
关于javascript - 如何将路由从浏览器发送到另一台设备?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38301162/