Add getLocation to the API