Function to retrieve both school codes from a given point