For me, it does not appear to be exclusively distance based. The car has locked on me when I am a few feet away from it after a period of time. Otherwise, it locks as it senses my phone moving away from it at around 15 to 20 feet pretty much every time when I park in the garage.