How to divide the world into cells of almost equal size, such that each lat,lon can be mapped to a different cell?

I am pretty sure I've seen a library do this, labelling cells as S1, S2, etc..

Say we have 62.356279,-99.422395 , how to map it to a 2km\*2km cell named "FR,23" ?

Thank you!