Is it discrimination to deny employment based on commute/location?

Question Details:

Is it legal to refuse someone a job based on location? Even if its only 20 - 30 minutes away? How about if its the second interview? When they could of refused the application based on location before the first interview. Important Notice