format_coordinates function

Format coordinates as a readable string