UTC(Z)05:50
EST00:50
CST23:50
MST22:50
PST21:50
Home Blogs Forums Photos Roller

AirportInfo returns Incorrect Info

Last post 04-12-2009, 10:04 PM by agreen. 2 replies.
Sort Posts: Previous Next
  •  04-09-2009, 4:55 PM 1361

    AirportInfo returns Incorrect Info

    I'm getting back bad information from AirportInfo.

    'txtICAO.Text = "KHOU"

    objAirports = objPlaneXML.AirportInfo(txtICAO.Text.ToString)

    If objAirports.Length > 0 Then

       With objAirports(0)

          txtFAA.Text = .Ident 'Returns "KHOU" but documentation states this should be the FAA identifier which is HOU.

          txtLocation.Text = .Location 'Returns "Non US airport".

          txtLatitude.Text = .Lat 'Returns "29.645419" - correct.

          txtLongitude.Text = .Lon 'Returns "-95.278889" - correct.

          txtElevation.Text = .Elev 'Returns "46" - correct

          txtGMT.Text = .GMTOffset 'Returns "0" - Houston is currently -5 from GMT.

          txtAirportName.Text = .Name 'Returns "WILLIAM P HOBBY" - correct.

       End With

    End If

  •  04-09-2009, 5:54 PM 1363 in reply to 1361

    Re: AirportInfo returns Incorrect Info

    I think we may have a bug where it's not stripping off the leading "K" specified in the airport ID parameter.

    Try calling AirportInfo with "HOU" as the parameter and not "KHOU", let me know if that works. I'll double check the code.
  •  04-12-2009, 10:04 PM 1366 in reply to 1361

    Re: AirportInfo returns Incorrect Info

    We've squashed this bug and it will be in tonight's update (should go live some time around 10:30 PM Eastern time).
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems