def elevation_along_path(client, path, samples):
 if (type(path) is str):
  path = ('enc:%s' % path)
 else:
  path = convert.shortest_path(path)
 params = {'path': path, 'samples': samples}
 return client._get('/maps/api/elevation/json', params)['results']

def elevation_along_path ( client , path , samples ) : if ( type ( path ) is str ) : path = ( 'enc:%s' % path ) else : path = convert . shortest_path ( path ) params = { 'path' : path , 'samples' : samples } return client . _get ( '/maps/api/elevation/json' , params ) [ 'results' ]
provides elevation data sampled along a path on the surface of the earth .