I understand that this may be offensive to idealistic minds, but people from far away are socially less accountable, and therefore more likely to cause trouble than people who live nearby. Hopefully people can see why that is the case and accept it rather than being upset by it. That cop was doing his job. Always be polite and understand that you are a guest in that town, that he is sworn to protect. It sounds like you are.