Add new function for get heading data

add function, get_heading