This a simple addon that auto-complete location field while registration and at other pages via jquery. See templates modified for more info :p
Templates modified :
account_personal_details
member_edit
register_facebook
register_form
register_google
register_twitter
Tested on Default XenForo...