Added API function to get information about the current location