I think 'locality' is used mostly in 'loose/vague/not exact' sense, while 'location' is used in 'more exact/specific/accurate' sense.
Locality may be used instead of 'area' (as in 'x birds are found in 70 different areas').
'The location of the school is ...' may be reworded as 'the school is at ...' (a point).