Accept location in restrictions API and check for a state name. (#498)