Extract location info to variable