private RouteParameters() { this.toLocation = ""; this.fromLocation = ""; this.distanceUnits = DistanceUnitType.KM; this.travelMode = TravelModeType.Driving; this.optimize = RouteOptimizationType.TimeWithTraffic; }
// sets the default values of the parameters internal void clear() { this.toCLocation = null; this.fromCLocation = null; this.toLocation = ""; this.fromLocation = ""; this.distanceUnits = DistanceUnitType.KM; this.travelMode = TravelModeType.Driving; this.optimize = RouteOptimizationType.TimeWithTraffic; }