var Services=function() {
Services.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Services.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Services._staticInstance.get_path();},
GetLineCompletionList:function(prefixText,count,succeededCallback, failedCallback, userContext) {
/// <param name="prefixText" type="String">System.String</param>
/// <param name="count" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetLineCompletionList',false,{prefixText:prefixText,count:count},succeededCallback,failedCallback,userContext); },
GetStopCompletionList:function(prefixText,count,succeededCallback, failedCallback, userContext) {
/// <param name="prefixText" type="String">System.String</param>
/// <param name="count" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetStopCompletionList',false,{prefixText:prefixText,count:count},succeededCallback,failedCallback,userContext); },
GetStopById:function(id,succeededCallback, failedCallback, userContext) {
/// <param name="id" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetStopById',false,{id:id},succeededCallback,failedCallback,userContext); },
GetStopsByName:function(name,succeededCallback, failedCallback, userContext) {
/// <param name="name" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetStopsByName',false,{name:name},succeededCallback,failedCallback,userContext); },
GetStopsInArea:function(lat1,lng1,lat2,lng2,succeededCallback, failedCallback, userContext) {
/// <param name="lat1" type="Number">System.Double</param>
/// <param name="lng1" type="Number">System.Double</param>
/// <param name="lat2" type="Number">System.Double</param>
/// <param name="lng2" type="Number">System.Double</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetStopsInArea',false,{lat1:lat1,lng1:lng1,lat2:lat2,lng2:lng2},succeededCallback,failedCallback,userContext); }}
Services.registerClass('Services',Sys.Net.WebServiceProxy);
Services._staticInstance = new Services();
Services.set_path = function(value) {
Services._staticInstance.set_path(value); }
Services.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return Services._staticInstance.get_path();}
Services.set_timeout = function(value) {
Services._staticInstance.set_timeout(value); }
Services.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return Services._staticInstance.get_timeout(); }
Services.set_defaultUserContext = function(value) { 
Services._staticInstance.set_defaultUserContext(value); }
Services.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return Services._staticInstance.get_defaultUserContext(); }
Services.set_defaultSucceededCallback = function(value) { 
 Services._staticInstance.set_defaultSucceededCallback(value); }
Services.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return Services._staticInstance.get_defaultSucceededCallback(); }
Services.set_defaultFailedCallback = function(value) { 
Services._staticInstance.set_defaultFailedCallback(value); }
Services.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return Services._staticInstance.get_defaultFailedCallback(); }
Services.set_path("/hklkartta/Services.asmx");
Services.GetLineCompletionList= function(prefixText,count,onSuccess,onFailed,userContext) {
/// <param name="prefixText" type="String">System.String</param>
/// <param name="count" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
Services._staticInstance.GetLineCompletionList(prefixText,count,onSuccess,onFailed,userContext); }
Services.GetStopCompletionList= function(prefixText,count,onSuccess,onFailed,userContext) {
/// <param name="prefixText" type="String">System.String</param>
/// <param name="count" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
Services._staticInstance.GetStopCompletionList(prefixText,count,onSuccess,onFailed,userContext); }
Services.GetStopById= function(id,onSuccess,onFailed,userContext) {
/// <param name="id" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
Services._staticInstance.GetStopById(id,onSuccess,onFailed,userContext); }
Services.GetStopsByName= function(name,onSuccess,onFailed,userContext) {
/// <param name="name" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
Services._staticInstance.GetStopsByName(name,onSuccess,onFailed,userContext); }
Services.GetStopsInArea= function(lat1,lng1,lat2,lng2,onSuccess,onFailed,userContext) {
/// <param name="lat1" type="Number">System.Double</param>
/// <param name="lng1" type="Number">System.Double</param>
/// <param name="lat2" type="Number">System.Double</param>
/// <param name="lng2" type="Number">System.Double</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
Services._staticInstance.GetStopsInArea(lat1,lng1,lat2,lng2,onSuccess,onFailed,userContext); }

