code: 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._request("/maps/api/elevation/json", params).get("results", [])
docs: Provides elevation data sampled along a path on the surface of the earth.
  
      :param path: An encoded polyline string, or a list of latitude/longitude
          values from which you wish to calculate elevation data.
      :type path: string, dict, list, or tuple
  
      :param samples: The number of sample points along a path for which to
          return elevation data.
      :type samples: int
  
      :rtype: list of elevation data responses