with GNATCOM.IInterface;

with GNATCOM.Errors;

package body MSHTML.IWebGeocoordinates_Interface is

   procedure Initialize (This : in out IWebGeocoordinates_Type) is
   begin
      Set_IID (This, IID_IWebGeocoordinates);
   end Initialize;

   function Pointer (This : IWebGeocoordinates_Type)
     return Pointer_To_IWebGeocoordinates
   is
   begin
      return To_Pointer_To_IWebGeocoordinates (Address (This));
   end Pointer;

   procedure Attach (This    : in out IWebGeocoordinates_Type;
                     Pointer : in     Pointer_To_IWebGeocoordinates)
   is
   begin
      Attach (This, GNATCOM.IInterface.To_Pointer_To_IUnknown
              (Pointer.all'Address));
   end Attach;

   function Get_latitude
     (This : IWebGeocoordinates_Type)
     return Interfaces.C.double
   is
       RetVal : aliased Interfaces.C.double;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_latitude
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_latitude;

   function Get_longitude
     (This : IWebGeocoordinates_Type)
     return Interfaces.C.double
   is
       RetVal : aliased Interfaces.C.double;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_longitude
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_longitude;

   function Get_altitude
     (This : IWebGeocoordinates_Type)
     return GNATCOM.Types.VARIANT
   is
       RetVal : aliased GNATCOM.Types.VARIANT;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_altitude
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_altitude;

   function Get_accuracy
     (This : IWebGeocoordinates_Type)
     return Interfaces.C.double
   is
       RetVal : aliased Interfaces.C.double;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_accuracy
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_accuracy;

   function Get_altitudeAccuracy
     (This : IWebGeocoordinates_Type)
     return GNATCOM.Types.VARIANT
   is
       RetVal : aliased GNATCOM.Types.VARIANT;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_altitudeAccuracy
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_altitudeAccuracy;

   function Get_heading
     (This : IWebGeocoordinates_Type)
     return GNATCOM.Types.VARIANT
   is
       RetVal : aliased GNATCOM.Types.VARIANT;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_heading
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_heading;

   function Get_speed
     (This : IWebGeocoordinates_Type)
     return GNATCOM.Types.VARIANT
   is
       RetVal : aliased GNATCOM.Types.VARIANT;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_speed
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_speed;

end MSHTML.IWebGeocoordinates_Interface;

