Sometimes, in some areas of a city, it's always a good idea to take someone with you if you're going to take people shots. It's a good idea, too, to use a long lens, either zoom or prime, to get the shot you want without being hassled. Don't be obvious taking the shot.....make it quick if you can.

And being polite with people goes a long way when shooting in public.