According to one embodiment, an electronic apparatus mounted on a moving object, includes at least one variable directivity antenna; controlling circuitry configured to acquire a traveling position of the moving object and determine an antenna pattern for the variable directivity antenna based on a location of a ground apparatus to be a communication target and the acquired traveling position; and a communication circuit configured to transmit positional information including the traveling position or receive control information from the ground apparatus via the variable directivity antenna for which the determined antenna pattern is set.