getLocation function

Get location from coordinate