Nonconforming use” means a use of a building or land which lawfully existed on the effective date of the ordinance codified in this code and which is not a use permitted in the district in which it is located.