convertFromCenter function

Converts the fromCenter information to a standardized code