public virtual google_rest_client_directions.root getmessage()
		{
			#line hidden
			PBWebHttp.WebMessage msg = null;
			Sybase.PowerBuilder.PBArray results = new Sybase.PowerBuilder.PBUnboundedArray(typeof(System.Object));
			google_rest_client_directions.root result = null;
			#line 3
			m_service.ConnectionObject = restconnectionobject;
			#line hidden
			#line 7
			msg = m_service.GetMessage();
			#line hidden
			#line 11
			results.AssignFrom((Sybase.PowerBuilder.PBArray)ToPBData_2_webmessage_webmessa115595(msg, new Sybase.PowerBuilder.PBString("google_rest_client_directions.root")));
			#line hidden
			#line 13
			result = (google_rest_client_directions.root)(((System.Object)results[(Sybase.PowerBuilder.PBLong)(new Sybase.PowerBuilder.PBInt(1))]));
			#line hidden
			#line 14
			return result;
			#line hidden
		}
		public override Sybase.PowerBuilder.PBLong clicked()
		{
			#line hidden
			google_rest_client_directions.root l_root = null;
			Sybase.PowerBuilder.PBArray legs = new Sybase.PowerBuilder.PBUnboundedArray(typeof(google_rest_client_directions.rootItemItem));
			Sybase.PowerBuilder.PBArray steps = new Sybase.PowerBuilder.PBUnboundedArray(typeof(google_rest_client_directions.rootItemItemItem));
			Sybase.PowerBuilder.PBInt i = Sybase.PowerBuilder.PBInt.DefaultValue;
			Sybase.PowerBuilder.PBString rutas = Sybase.PowerBuilder.PBString.DefaultValue;
			directionstutoservice.c__directionstutoproxy l_proxy = null;
			System.Exception e = null;
			Sybase.PowerBuilder.PBLong ancestorreturnvalue = Sybase.PowerBuilder.PBLong.DefaultValue;
			#line 9
			l_proxy = (directionstutoservice.c__directionstutoproxy)this.CreateInstance(typeof(directionstutoservice.c__directionstutoproxy), 0);
			#line hidden
			try
			{
				try
				{
					#line 12
					l_root = l_proxy.getmessage();
					#line hidden
					#line 14
					legs.AssignFrom((Sybase.PowerBuilder.PBArray)(l_root.routes[(Sybase.PowerBuilder.PBLong)(new Sybase.PowerBuilder.PBInt(1))-1]).legs);
					#line hidden
					#line 15
					steps.AssignFrom((Sybase.PowerBuilder.PBArray)((google_rest_client_directions.rootItemItem)legs[(Sybase.PowerBuilder.PBLong)(new Sybase.PowerBuilder.PBInt(1))]).steps);
					#line hidden
					#line 18
					if ((Sybase.PowerBuilder.PBBoolean)(steps.Length> (Sybase.PowerBuilder.PBLong)(new Sybase.PowerBuilder.PBInt(0))))
					#line hidden
					{
						#line 19
						rutas = (new Sybase.PowerBuilder.PBString("Distancia: ")+ ((google_rest_client_directions.rootItemItem)legs[(Sybase.PowerBuilder.PBLong)(new Sybase.PowerBuilder.PBInt(1))]).distance.text)+ new Sybase.PowerBuilder.PBString("\n");
						#line hidden
						#line 20
						rutas += (new Sybase.PowerBuilder.PBString("Tiempo estimado: ")+ ((google_rest_client_directions.rootItemItem)legs[(Sybase.PowerBuilder.PBLong)(new Sybase.PowerBuilder.PBInt(1))]).duration.text)+ new Sybase.PowerBuilder.PBString("\n");
						#line hidden
						#line 22
						for (i = new Sybase.PowerBuilder.PBInt(1);i <= ((Sybase.PowerBuilder.PBInt)(steps.Length));i = i + 1)
						#line hidden
						{
								#line 23
								rutas += ((Sybase.PowerBuilder.WPF.PBSystemFunctions.String((Sybase.PowerBuilder.PBAny)(((Sybase.PowerBuilder.PBAny)(i))))+ new Sybase.PowerBuilder.PBString(".- "))+ ((google_rest_client_directions.rootItemItemItem)steps[(Sybase.PowerBuilder.PBLong)(i)]).html_instructions)+ new Sybase.PowerBuilder.PBString("\n");
								#line hidden
						}
					}
					else
					{
						#line 27
						rutas = new Sybase.PowerBuilder.PBString("No se ha obtenido ninguna ruta");
						#line hidden
					}
					#line 31
					((c__w_restclient)(Parent)).mle_rutas.Text = rutas;
					#line hidden
				}
				catch (System.DivideByZeroException)
				{
					Sybase.PowerBuilder.PBRuntimeError.Throw(Sybase.PowerBuilder.RuntimeErrorCode.RT_R0001);
					throw new System.Exception();
				}
				catch (System.NullReferenceException)
				{
					Sybase.PowerBuilder.PBRuntimeError.Throw(Sybase.PowerBuilder.RuntimeErrorCode.RT_R0002);
					throw new System.Exception();
				}
				catch (System.IndexOutOfRangeException)
				{
					Sybase.PowerBuilder.PBRuntimeError.Throw(Sybase.PowerBuilder.RuntimeErrorCode.RT_R0003);
					throw new System.Exception();
				}
			}
			#line 33
			catch (System.Exception __PB_TEMP_e__temp)
			#line hidden
			{
				e = __PB_TEMP_e__temp;
				#line 34
				Sybase.PowerBuilder.WPF.PBSystemFunctions.MessageBox(new Sybase.PowerBuilder.PBString("Error"), new Sybase.PowerBuilder.PBString("Error en la consulta de datos a Google"));
				#line hidden
			}
			return new Sybase.PowerBuilder.PBLong(0);
		}