How to get Navigation course data for building Elevation chart?

Hi,

Is it possible to obtain navigation course data in a way to enable building track elevation chart? I'd like to get the list of lat,lin,elevation tuples, iterate through it and build the elevation chart of the whole course.

Warm regards, m.