如何从点到点谷歌地图添加所有航点到数据库?

时间:2013-05-20 03:01:42

标签: javascript php html google-maps

我正在玩google waypoints https://developers.google.com/maps/documentation/javascript/examples/directions-waypoints

无法弄清楚如何将结果加载到数据库中。

我希望查询这些内容。

1 个答案:

答案 0 :(得分:0)

function calcRoute() {
  var start = document.getElementById('start').value;
  var end = document.getElementById('end').value;
  var waypts = [];
  var checkboxArray = document.getElementById('waypoints');

// These three variables are to be stored in DB, use Jquery GET/POST to a php and store it to a database
  }

Check here for POST