Infer spec type from location