def elevation_along_path(path, samples)
      if path.kind_of?(String)
        path = "enc:%s" % path
      else
        path = GoogleMapsService::Convert.waypoints(path)
      end

      params = {
        path: path,
        samples: samples
      }

      return get('/maps/api/elevation/json', params)[:results]
    end
def elevation_along_path(path, samples)
      if path.kind_of?(String)
        path = "enc:%s" % path
      else
        path = GoogleMapsService::Convert.waypoints(path)
      end

      params = {
        path: path,
        samples: samples
      }

      return get('/maps/api/elevation/json', params)[:results]
    end
Provides elevation data sampled along a path on the surface of the earth.

 @example Elevation along path
   locations = [[40.714728, -73.998672], [-34.397, 150.644]]
   results = client.elevation_along_path(locations, 5)

 @param [String, Array] path A encoded polyline string, or a list of
         latitude/longitude pairs from which you wish to calculate
         elevation data.
 @param [Integer] samples The number of sample points along a path for which to
         return elevation data.

 @return [Array] Array of elevation data responses