Hi,
Can anyone help me with the this problem?
I am trying to get the distance between 2 places.
This is my code:
var directions = new GDirections(map);
var options = { travelMode: G_TRAVEL_MODE_TRANSIT };
directions.load("from:Singapore Polytechnic to:Ngee
Ann Polytechnic", options);
var noofroute = directions.getNumRoutes();
alert(noofroute);
All the above code works fine, until the following, it starts giving
me error about distance.
var distance = directions.getDistance().meters;
alert(distance);
I am using
asp.net btw.
Icy,
Thanks in Advance.