Using user location in API call