Can foreign nationals get an Aadhaar in India?

Context: Aadhaar is a 12-digit unique identity number that can be obtained voluntarily by the citizens of India and resident foreign nationals who have spent over 182 days in twelve months immediately preceding the date of application for enrolment, based on their biometric and demographic data. The data is collected by the Unique Identification Authority of India, a statutory authority established in January 2009 by the Government of India, under the jurisdiction of the Ministry of Electronics and Information Technology, following the provisions of the Aadhaar Act, 2016.
Aadhaar is the world's largest biometric ID system. World Bank Chief Economist Paul Romer described Aadhaar as "the most sophisticated ID programme in the world". Considered a proof of residence and not a proof of citizenship, Aadhaar does not itself grant any rights to domicile in India. In June 2017, the Home Ministry clarified that Aadhaar is not a valid identification document for Indians travelling to Nepal and Bhutan.
Prior to the enactment of the Act, the UIDAI had functioned, since 28 January 2009, as an attached office of the Planning Commission. On 3 March 2016, a money bill was introduced in the Parliament to give legislative backing to Aadhaar. On 11 March 2016, the Aadhaar Act, 2016, was passed in the Lok Sabha.

Answer: Resident foreign nationals who have spent over 182 days in twelve months immediately preceding the date of application for enrolment, based on their biometric and demographic data get an Aadhaar.