A Hokkaido court convicted a man Thursday of possessing stimulant drugs, but ruled some of the evidence gathered by police using GPS data without a warrant was inadmissible.

The Asahikawa District Court sentenced Masayuki Tanikawa, 46, a former gangster, to six years in prison and fined him ¥1.5 million ($13,600) for possessing 61 grams of stimulant drugs.

Tanikawa was arrested in the parking lot of a hospital in Asahikawa on May 2017 and police deemed the drugs were for commercial purposes and not personal use.