Limiting Map Searches

Hi! Im trying to limit a search area when someone enters a location to search for using google maps. Like making it so a user can not enter a location outside a current city. Is there a way to do this?