var locationsArray = [StudentLocation]()
I've got an array of StudentLocations and I'm trying to prevent any objects that are probably from the same person to be from the array.
People can make posts to a database with information about their name / location / profile URLs etc
The way the database is set up, people can repost in the same location under the same name as many times as they want, so one user might be adding 10 of the same posts to the username.
Each of these posts is going to have a different UID, but I think I can be fairly confident two posts are from the same user if the home location (lat / lon) and name are exactly the same.
What's the best way to prevent appending a location to the array if the home location / name is the same as another location already in the array?