An air-conditioning apparatus for a railway vehicle, comprising: - a plurality of refrigerant circuits each including a compressor , a first heat exchanger , an expansion device , and a second heat exchanger that are connected to each other by pipes; - an inverter connected to an auxiliary power supply device (S1) of a railway vehicle (S100) and configured to control a frequency of the compressor ; - a switching unit configured to switch between wiring connection for supplying power to the compressor (la, 1b) via the inverter and wiring connection for directly supplying power from the auxiliary power supply device (S1) to the compressor (la, 1b); - a controller (el) configured to control a switching operation of the switching unit in such a manner that, when an air conditioning load of a boarding space (S4) of the railway vehicle (S100) is higher than a load threshold value, wiring for directly supplying power from the auxiliary power supply device (S1) to at least one of the compressors (la, 1b) of the plurality of refrigerant circuits is established; - a plurality of indoor units (c3) each including the second heat exchanger and configured to blow out air subjected to heat exchange by the second heat exchanger and passing through a corresponding one of air outlet ducts (S10) to a corresponding one of different positions in the boarding space (S4); and - a plurality of temperature sensors each provided at a corresponding one of different positions in the boarding space (S4) and each configured to measure a temperature of the corresponding one of the different positions in the boarding space (S4), wherein the controller (e1) is configured to calculate a load distribution in the boarding space (S4) on a basis of the temperatures measured by the plurality of temperature sensors, and control the switching operation of the switching unit , on a basis of the load distribution, to either directly supply power from the auxiliary power supply device (S1) individually to a plurality of the compressors or supply power from the auxiliary power supply device (S1) via the inverter to the plurality of the compressors . - a plurality of refrigerant circuits each including a compressor , a first heat exchanger , an expansion device , and a second heat exchanger that are connected to each other by pipes; - an inverter connected to an auxiliary power supply device (S1) of a railway vehicle (S100) and configured to control a frequency of the compressor ; - a switching unit configured to switch between wiring connection for supplying power to the compressor (la, 1b) via the inverter and wiring connection for directly supplying power from the auxiliary power supply device (S1) to the compressor (la, 1b); - a controller (el) configured to control a switching operation of the switching unit in such a manner that, when an air conditioning load of a boarding space (S4) of the railway vehicle (S100) is higher than a load threshold value, wiring for directly supplying power from the auxiliary power supply device (S1) to at least one of the compressors (la, 1b) of the plurality of refrigerant circuits is established; - a plurality of indoor units (c3) each including the second heat exchanger and configured to blow out air subjected to heat exchange by the second heat exchanger and passing through a corresponding one of air outlet ducts (S10) to a corresponding one of different positions in the boarding space (S4); and - a plurality of temperature sensors each provided at a corresponding one of different positions in the boarding space (S4) and each configured to measure a temperature of the corresponding one of the different positions in the boarding space (S4), <EOS>