Adding new helper function for coordinate deduction.

Already also used in coordinate availability check.