Displaying 1 result from an estimated 1 matches for "routeoptions".
2008 Mar 03
0
Routing through LatLng points and other stuff
...aypoints and route
* @param {Array} addresses The array of point/location objects to use for
the route
*/
MapstractionRouter.prototype.routePoints = function(points) {
var api = this.api;
switch (api) {
case ''mapquest'':
var waypoints = new MQLocationCollection();
var routeOptions = new MQRouteOptions();
for (var i=0;i<points.length;i++) {
var geoAddr = new MQGeoAddress();
geoAddr.setMQLatLng(new
MQLatLng(points[i].lat, points[i].lng));
waypoints.add(geoAddr);
}
var session = new MQSession();
var routeResults = new MQRouteResults();
var ro...