Type.registerNamespace('GIS2.Server.GeocodeService');
GIS2.Server.GeocodeService.GeoCode=function() {
GIS2.Server.GeocodeService.GeoCode.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
GIS2.Server.GeocodeService.GeoCode.prototype={
TransformToGeografic:function(coordPairs,coordSystem,succeededCallback, failedCallback, userContext) {
return this._invoke(GIS2.Server.GeocodeService.GeoCode.get_path(), 'TransformToGeografic',false,{coordPairs:coordPairs,coordSystem:coordSystem},succeededCallback,failedCallback,userContext); },
TransformFromGeografic:function(coordPairs,coordSystem,succeededCallback, failedCallback, userContext) {
return this._invoke(GIS2.Server.GeocodeService.GeoCode.get_path(), 'TransformFromGeografic',false,{coordPairs:coordPairs,coordSystem:coordSystem},succeededCallback,failedCallback,userContext); },
GetCoordsForGoogle:function(coordPairs,coordSystem,scale,succeededCallback, failedCallback, userContext) {
return this._invoke(GIS2.Server.GeocodeService.GeoCode.get_path(), 'GetCoordsForGoogle',false,{coordPairs:coordPairs,coordSystem:coordSystem,scale:scale},succeededCallback,failedCallback,userContext); },
GetCoordsForVE:function(coordPairs,coordSystem,scale,succeededCallback, failedCallback, userContext) {
return this._invoke(GIS2.Server.GeocodeService.GeoCode.get_path(), 'GetCoordsForVE',false,{coordPairs:coordPairs,coordSystem:coordSystem,scale:scale},succeededCallback,failedCallback,userContext); },
GetZoomFactorByScale:function(scale,latitude,succeededCallback, failedCallback, userContext) {
return this._invoke(GIS2.Server.GeocodeService.GeoCode.get_path(), 'GetZoomFactorByScale',false,{scale:scale,latitude:latitude},succeededCallback,failedCallback,userContext); },
GetScaleByZoomFactor:function(zoomFactor,latitude,succeededCallback, failedCallback, userContext) {
return this._invoke(GIS2.Server.GeocodeService.GeoCode.get_path(), 'GetScaleByZoomFactor',false,{zoomFactor:zoomFactor,latitude:latitude},succeededCallback,failedCallback,userContext); }}
GIS2.Server.GeocodeService.GeoCode.registerClass('GIS2.Server.GeocodeService.GeoCode',Sys.Net.WebServiceProxy);
GIS2.Server.GeocodeService.GeoCode._staticInstance = new GIS2.Server.GeocodeService.GeoCode();
GIS2.Server.GeocodeService.GeoCode.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; GIS2.Server.GeocodeService.GeoCode._staticInstance._path = value; }
GIS2.Server.GeocodeService.GeoCode.get_path = function() { return GIS2.Server.GeocodeService.GeoCode._staticInstance._path; }
GIS2.Server.GeocodeService.GeoCode.set_timeout = function(value) { var e = Function._validateParams(arguments, [{name: 'timeout', type: Number}]); if (e) throw e; if (value < 0) { throw Error.argumentOutOfRange('value', value, Sys.Res.invalidTimeout); }
GIS2.Server.GeocodeService.GeoCode._staticInstance._timeout = value; }
GIS2.Server.GeocodeService.GeoCode.get_timeout = function() { 
return GIS2.Server.GeocodeService.GeoCode._staticInstance._timeout; }
GIS2.Server.GeocodeService.GeoCode.set_defaultUserContext = function(value) { 
GIS2.Server.GeocodeService.GeoCode._staticInstance._userContext = value; }
GIS2.Server.GeocodeService.GeoCode.get_defaultUserContext = function() { 
return GIS2.Server.GeocodeService.GeoCode._staticInstance._userContext; }
GIS2.Server.GeocodeService.GeoCode.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; GIS2.Server.GeocodeService.GeoCode._staticInstance._succeeded = value; }
GIS2.Server.GeocodeService.GeoCode.get_defaultSucceededCallback = function() { 
return GIS2.Server.GeocodeService.GeoCode._staticInstance._succeeded; }
GIS2.Server.GeocodeService.GeoCode.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; GIS2.Server.GeocodeService.GeoCode._staticInstance._failed = value; }
GIS2.Server.GeocodeService.GeoCode.get_defaultFailedCallback = function() { 
return GIS2.Server.GeocodeService.GeoCode._staticInstance._failed; }
GIS2.Server.GeocodeService.GeoCode.set_path("/GeoCode.asmx");
GIS2.Server.GeocodeService.GeoCode.TransformToGeografic= function(coordPairs,coordSystem,onSuccess,onFailed,userContext) {GIS2.Server.GeocodeService.GeoCode._staticInstance.TransformToGeografic(coordPairs,coordSystem,onSuccess,onFailed,userContext); }
GIS2.Server.GeocodeService.GeoCode.TransformFromGeografic= function(coordPairs,coordSystem,onSuccess,onFailed,userContext) {GIS2.Server.GeocodeService.GeoCode._staticInstance.TransformFromGeografic(coordPairs,coordSystem,onSuccess,onFailed,userContext); }
GIS2.Server.GeocodeService.GeoCode.GetCoordsForGoogle= function(coordPairs,coordSystem,scale,onSuccess,onFailed,userContext) {GIS2.Server.GeocodeService.GeoCode._staticInstance.GetCoordsForGoogle(coordPairs,coordSystem,scale,onSuccess,onFailed,userContext); }
GIS2.Server.GeocodeService.GeoCode.GetCoordsForVE= function(coordPairs,coordSystem,scale,onSuccess,onFailed,userContext) {GIS2.Server.GeocodeService.GeoCode._staticInstance.GetCoordsForVE(coordPairs,coordSystem,scale,onSuccess,onFailed,userContext); }
GIS2.Server.GeocodeService.GeoCode.GetZoomFactorByScale= function(scale,latitude,onSuccess,onFailed,userContext) {GIS2.Server.GeocodeService.GeoCode._staticInstance.GetZoomFactorByScale(scale,latitude,onSuccess,onFailed,userContext); }
GIS2.Server.GeocodeService.GeoCode.GetScaleByZoomFactor= function(zoomFactor,latitude,onSuccess,onFailed,userContext) {GIS2.Server.GeocodeService.GeoCode._staticInstance.GetScaleByZoomFactor(zoomFactor,latitude,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(GIS2.Server.GeocodeService.GeoCode_ConvertedCoords) === 'undefined') {
GIS2.Server.GeocodeService.GeoCode_ConvertedCoords=gtc("GIS2.Server.GeocodeService.GeoCode+ConvertedCoords");
GIS2.Server.GeocodeService.GeoCode_ConvertedCoords.registerClass('GIS2.Server.GeocodeService.GeoCode_ConvertedCoords');
}
if (typeof(GIS2.Server.GeocodeService.GeoCode_GoogleMapSettings) === 'undefined') {
GIS2.Server.GeocodeService.GeoCode_GoogleMapSettings=gtc("GIS2.Server.GeocodeService.GeoCode+GoogleMapSettings");
GIS2.Server.GeocodeService.GeoCode_GoogleMapSettings.registerClass('GIS2.Server.GeocodeService.GeoCode_GoogleMapSettings');
}
if (typeof(GIS2.Server.GeocodeService.GeoCode_VESettings) === 'undefined') {
GIS2.Server.GeocodeService.GeoCode_VESettings=gtc("GIS2.Server.GeocodeService.GeoCode+VESettings");
GIS2.Server.GeocodeService.GeoCode_VESettings.registerClass('GIS2.Server.GeocodeService.GeoCode_VESettings');
}

