TL;DR: location API exists. Wifi-based location exists. American universities apparently use this to take "secure" attendance.