var GeoWS=function() {
GeoWS.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
GeoWS.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return GeoWS._staticInstance.get_path();},
GetNearestCity:function(lat,lng,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetNearestCity',false,{lat:lat,lng:lng},succeededCallback,failedCallback,userContext); },
GetNearestCityEx:function(lat,lng,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetNearestCityEx',false,{lat:lat,lng:lng},succeededCallback,failedCallback,userContext); },
GetHomeAirport:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetHomeAirport',false,{},succeededCallback,failedCallback,userContext); },
GetHomeCountry:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetHomeCountry',false,{},succeededCallback,failedCallback,userContext); },
GetAirportInfo:function(text,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetAirportInfo',false,{text:text},succeededCallback,failedCallback,userContext); },
GetCityInfo:function(text,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetCityInfo',false,{text:text},succeededCallback,failedCallback,userContext); },
GetStateInfo:function(countryCode,stateCode,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetStateInfo',false,{countryCode:countryCode,stateCode:stateCode},succeededCallback,failedCallback,userContext); },
GetCountryInfo:function(code,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetCountryInfo',false,{code:code},succeededCallback,failedCallback,userContext); },
CompleteAirports:function(prefixText,count,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CompleteAirports',false,{prefixText:prefixText,count:count},succeededCallback,failedCallback,userContext); },
CompleteAirport:function(prefixText,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CompleteAirport',false,{prefixText:prefixText},succeededCallback,failedCallback,userContext); },
CompleteCities:function(prefixText,count,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CompleteCities',false,{prefixText:prefixText,count:count},succeededCallback,failedCallback,userContext); },
CompleteCity:function(prefixText,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CompleteCity',false,{prefixText:prefixText},succeededCallback,failedCallback,userContext); },
CompleteCitiesFreeText:function(prefixText,count,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CompleteCitiesFreeText',false,{prefixText:prefixText,count:count},succeededCallback,failedCallback,userContext); },
GetNearestAirports:function(lat,lng,distance,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetNearestAirports',false,{lat:lat,lng:lng,distance:distance},succeededCallback,failedCallback,userContext); },
GetNearestCities:function(lat,lng,distance,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetNearestCities',false,{lat:lat,lng:lng,distance:distance},succeededCallback,failedCallback,userContext); },
GetAirportsWithin:function(lat1,lng1,lat2,lng2,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetAirportsWithin',false,{lat1:lat1,lng1:lng1,lat2:lat2,lng2:lng2},succeededCallback,failedCallback,userContext); },
GetCitiesWithin:function(lat1,lng1,lat2,lng2,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetCitiesWithin',false,{lat1:lat1,lng1:lng1,lat2:lat2,lng2:lng2},succeededCallback,failedCallback,userContext); },
GetHotelCitiesWithin:function(lat1,lng1,lat2,lng2,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetHotelCitiesWithin',false,{lat1:lat1,lng1:lng1,lat2:lat2,lng2:lng2},succeededCallback,failedCallback,userContext); },
GetHotelCitiesFilteredByCountry:function(countryCode,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetHotelCitiesFilteredByCountry',false,{countryCode:countryCode},succeededCallback,failedCallback,userContext); },
GetLocationsWithin:function(lat1,lng1,lat2,lng2,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetLocationsWithin',false,{lat1:lat1,lng1:lng1,lat2:lat2,lng2:lng2},succeededCallback,failedCallback,userContext); },
UpdateLocation:function(iata,lat,lng,mainCity,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateLocation',false,{iata:iata,lat:lat,lng:lng,mainCity:mainCity},succeededCallback,failedCallback,userContext); }}
GeoWS.registerClass('GeoWS',Sys.Net.WebServiceProxy);
GeoWS._staticInstance = new GeoWS();
GeoWS.set_path = function(value) { GeoWS._staticInstance.set_path(value); }
GeoWS.get_path = function() { return GeoWS._staticInstance.get_path(); }
GeoWS.set_timeout = function(value) { GeoWS._staticInstance.set_timeout(value); }
GeoWS.get_timeout = function() { return GeoWS._staticInstance.get_timeout(); }
GeoWS.set_defaultUserContext = function(value) { GeoWS._staticInstance.set_defaultUserContext(value); }
GeoWS.get_defaultUserContext = function() { return GeoWS._staticInstance.get_defaultUserContext(); }
GeoWS.set_defaultSucceededCallback = function(value) { GeoWS._staticInstance.set_defaultSucceededCallback(value); }
GeoWS.get_defaultSucceededCallback = function() { return GeoWS._staticInstance.get_defaultSucceededCallback(); }
GeoWS.set_defaultFailedCallback = function(value) { GeoWS._staticInstance.set_defaultFailedCallback(value); }
GeoWS.get_defaultFailedCallback = function() { return GeoWS._staticInstance.get_defaultFailedCallback(); }
GeoWS.set_enableJsonp = function(value) { GeoWS._staticInstance.set_enableJsonp(value); }
GeoWS.get_enableJsonp = function() { return GeoWS._staticInstance.get_enableJsonp(); }
GeoWS.set_jsonpCallbackParameter = function(value) { GeoWS._staticInstance.set_jsonpCallbackParameter(value); }
GeoWS.get_jsonpCallbackParameter = function() { return GeoWS._staticInstance.get_jsonpCallbackParameter(); }
GeoWS.set_path("/GeoWS.asmx");
GeoWS.GetNearestCity= function(lat,lng,onSuccess,onFailed,userContext) {GeoWS._staticInstance.GetNearestCity(lat,lng,onSuccess,onFailed,userContext); }
GeoWS.GetNearestCityEx= function(lat,lng,onSuccess,onFailed,userContext) {GeoWS._staticInstance.GetNearestCityEx(lat,lng,onSuccess,onFailed,userContext); }
GeoWS.GetHomeAirport= function(onSuccess,onFailed,userContext) {GeoWS._staticInstance.GetHomeAirport(onSuccess,onFailed,userContext); }
GeoWS.GetHomeCountry= function(onSuccess,onFailed,userContext) {GeoWS._staticInstance.GetHomeCountry(onSuccess,onFailed,userContext); }
GeoWS.GetAirportInfo= function(text,onSuccess,onFailed,userContext) {GeoWS._staticInstance.GetAirportInfo(text,onSuccess,onFailed,userContext); }
GeoWS.GetCityInfo= function(text,onSuccess,onFailed,userContext) {GeoWS._staticInstance.GetCityInfo(text,onSuccess,onFailed,userContext); }
GeoWS.GetStateInfo= function(countryCode,stateCode,onSuccess,onFailed,userContext) {GeoWS._staticInstance.GetStateInfo(countryCode,stateCode,onSuccess,onFailed,userContext); }
GeoWS.GetCountryInfo= function(code,onSuccess,onFailed,userContext) {GeoWS._staticInstance.GetCountryInfo(code,onSuccess,onFailed,userContext); }
GeoWS.CompleteAirports= function(prefixText,count,onSuccess,onFailed,userContext) {GeoWS._staticInstance.CompleteAirports(prefixText,count,onSuccess,onFailed,userContext); }
GeoWS.CompleteAirport= function(prefixText,onSuccess,onFailed,userContext) {GeoWS._staticInstance.CompleteAirport(prefixText,onSuccess,onFailed,userContext); }
GeoWS.CompleteCities= function(prefixText,count,onSuccess,onFailed,userContext) {GeoWS._staticInstance.CompleteCities(prefixText,count,onSuccess,onFailed,userContext); }
GeoWS.CompleteCity= function(prefixText,onSuccess,onFailed,userContext) {GeoWS._staticInstance.CompleteCity(prefixText,onSuccess,onFailed,userContext); }
GeoWS.CompleteCitiesFreeText= function(prefixText,count,onSuccess,onFailed,userContext) {GeoWS._staticInstance.CompleteCitiesFreeText(prefixText,count,onSuccess,onFailed,userContext); }
GeoWS.GetNearestAirports= function(lat,lng,distance,onSuccess,onFailed,userContext) {GeoWS._staticInstance.GetNearestAirports(lat,lng,distance,onSuccess,onFailed,userContext); }
GeoWS.GetNearestCities= function(lat,lng,distance,onSuccess,onFailed,userContext) {GeoWS._staticInstance.GetNearestCities(lat,lng,distance,onSuccess,onFailed,userContext); }
GeoWS.GetAirportsWithin= function(lat1,lng1,lat2,lng2,onSuccess,onFailed,userContext) {GeoWS._staticInstance.GetAirportsWithin(lat1,lng1,lat2,lng2,onSuccess,onFailed,userContext); }
GeoWS.GetCitiesWithin= function(lat1,lng1,lat2,lng2,onSuccess,onFailed,userContext) {GeoWS._staticInstance.GetCitiesWithin(lat1,lng1,lat2,lng2,onSuccess,onFailed,userContext); }
GeoWS.GetHotelCitiesWithin= function(lat1,lng1,lat2,lng2,onSuccess,onFailed,userContext) {GeoWS._staticInstance.GetHotelCitiesWithin(lat1,lng1,lat2,lng2,onSuccess,onFailed,userContext); }
GeoWS.GetHotelCitiesFilteredByCountry= function(countryCode,onSuccess,onFailed,userContext) {GeoWS._staticInstance.GetHotelCitiesFilteredByCountry(countryCode,onSuccess,onFailed,userContext); }
GeoWS.GetLocationsWithin= function(lat1,lng1,lat2,lng2,onSuccess,onFailed,userContext) {GeoWS._staticInstance.GetLocationsWithin(lat1,lng1,lat2,lng2,onSuccess,onFailed,userContext); }
GeoWS.UpdateLocation= function(iata,lat,lng,mainCity,onSuccess,onFailed,userContext) {GeoWS._staticInstance.UpdateLocation(iata,lat,lng,mainCity,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(AirportInfoJS) === 'undefined') {
var AirportInfoJS=gtc("AirportInfoJS");
AirportInfoJS.registerClass('AirportInfoJS');
}
if (typeof(CityInfoJS) === 'undefined') {
var CityInfoJS=gtc("CityInfoJS");
CityInfoJS.registerClass('CityInfoJS');
}
if (typeof(CountryInfoJS) === 'undefined') {
var CountryInfoJS=gtc("CountryInfoJS");
CountryInfoJS.registerClass('CountryInfoJS');
}
if (typeof(StateInfoJS) === 'undefined') {
var StateInfoJS=gtc("StateInfoJS");
StateInfoJS.registerClass('StateInfoJS');
}
Type.registerNamespace('SkyGate.SpeedFares.Momondo');
if (typeof(SkyGate.SpeedFares.Momondo.HotelCityJS) === 'undefined') {
SkyGate.SpeedFares.Momondo.HotelCityJS=gtc("SkyGate.SpeedFares.Momondo.HotelCityJS");
SkyGate.SpeedFares.Momondo.HotelCityJS.registerClass('SkyGate.SpeedFares.Momondo.HotelCityJS');
}
Type.registerNamespace('SkyGate.Momondo.Data.Hotels');
if (typeof(SkyGate.Momondo.Data.Hotels.HotelCityMapping) === 'undefined') {
SkyGate.Momondo.Data.Hotels.HotelCityMapping=gtc("SkyGate.Momondo.Data.Hotels.HotelCityMapping");
SkyGate.Momondo.Data.Hotels.HotelCityMapping.registerClass('SkyGate.Momondo.Data.Hotels.HotelCityMapping');
}

