The sampling distance controls how often other points than the ones you've clicked will be sampled.
Clicking on a displayed marker will show its height and distance along the course of input points.
Learn more about our Mapzen Elevation Service and the API reference.