Typhoon Nanmadol bore down on Japan's southernmost main island of Kyushu today with the Japan Meteorological Agency (JMA) warning of gales and high waves.

The 14th typhoon of the season, which has weakened as it approaches Kyushu, is bringing record rainfall, the JMA said, warning of the risk of overflowing rivers.

Southern Kyushu could receive 400mm of rain over the next 24 hours and wind gusts of up to 235km per hour today, while the central Tokai region could get 300mm of rain, the agency forecast.

The typhoon has caused damage in southern Kyushu including downing a bus stop in Miyazaki prefecture and breaking the window of a pachinko parlour in Kagoshima prefecture, according to public broadcaster NHK.

Railway operators and airlines have cancelled services and convenience store chain Seven-Eleven Japan temporarily shut around 950 stores. Toyota Motor Corp said it will idle production at three factories tomorrow.

The storm is forecast to turn east and pass over Japan's main island of Honshu before moving out to sea by Wednesday.

Heavy rain lashed the capital Tokyo, with the Tozai subway line suspended because of flooding.

Strong earthquake hits southern Taiwan, building collapses

Meanwhile, a 6.8 magnitude earthquake hit the sparsely populated southeastern part of Taiwan today, the island's weather bureau said, derailing train carriages and causing a convenience store to collapse.

The weather bureau said the epicentre was in Taitung county, and followed a 6.4 magnitude tremor yesterday evening in the same area, which caused no casualties.

The US Geological Survey measured the quake at a magnitude 7.2 and at a depth of 10km.

The county government in Hualien, which sits next to Taitung, said two people were trapped in a building housing a convenience store that collapsed in Yuli, while rescue efforts were underway for three people who fell off a damaged bridge.

The Taiwan Railways Administration said three carriages came off the rails at Dongli station in eastern Taiwan after part of the platform canopy collapsed, and the roughly 20 passengers aboard had been evacuated and were uninjured.

The US Pacific Tsunami Warning Center issued a warning for Taiwan after the tremor but later rescinded the alert. Japan's weather agency also lifted an earlier tsunami warning for part of Okinawa prefecture.

The quake could be felt across Taiwan, the weather bureau said. Buildings shook briefly in the capital Taipei.

Science parks in the southern cities of Tainan and Kaohsiung, home to major semiconductor factories, said there was no impact on operations.

Taiwan lies near the junction of two tectonic plates and is prone to earthquakes.

More than 100 people were killed in a quake in southern Taiwan in 2016, while a 7.3 magnitude quake killed more than2,000 people in 1999.