The present invention is to provide an application and a method for controlling a moving vehicle that are capable to efficiently spray a chemical. The application for controlling a moving vehicle executed on an information terminal 100 mounted on the moving vehicle 10 acquires an image taken by the information terminal 100 in flight, analyzes the acquired image, detects a pest attached to a crop based on the result of the image analysis, acquires location information of the crop to which the detected pest is attached, and controls the moving vehicle 10 to spray a disinfestant based on the acquired location information.