The rule of determining the continent of a geographical location generally holds for the domain of cities. However, the function might not return a valid output for certain geographical locations or if the input is not a city. In cases outside of the cities domain, the output is "undefined."