lib/vatsim/pilot.rb
def set_airport_locations
      depairport = Vatsim::Airport.get(planned_depairport)
      destairport = Vatsim::Airport.get(planned_destairport)
      @planned_depairport_lat = depairport.nil? ? 0 : depairport.latitude
      @planned_depairport_lon = depairport.nil? ? 0 : depairport.longitude
      @planned_destairport_lat = destairport.nil? ? 0 : destairport.latitude
      @planned_destairport_lon = destairport.nil? ? 0 : destairport.longitude
    end
def set_airport_locations
      depairport = Vatsim::Airport.get(planned_depairport)
      destairport = Vatsim::Airport.get(planned_destairport)
      @planned_depairport_lat = depairport.nil? ? 0 : depairport.latitude
      @planned_depairport_lon = depairport.nil? ? 0 : depairport.longitude
      @planned_destairport_lat = destairport.nil? ? 0 : destairport.latitude
      @planned_destairport_lon = destairport.nil? ? 0 : destairport.longitude
    end
Set planned_depairport/planned_destairport latitude and longitude