another point for validation on data is the point in polygon, which helps in finding points lying outside a polygon. e.g., for a particular lon-lat coordinates in a city, if the point is intersecting the polygon in an odd number, then it is inside the polygon and a valid point; otherwise it is outside the polygon and invalid.