public function byPath($coords, $samples, $encode = true)
    {
        $this->params['path'] = $encode
            ? Encoder::encodeCoordinates($coords)
            : implode('|', $coords);

        $this->params['samples'] = $samples;

        return parent::request();
    }
public function byPath($coords, $samples, $encode = true)
    {
        $this->params['path'] = $encode
            ? Encoder::encodeCoordinates($coords)
            : implode('|', $coords);

        $this->params['samples'] = $samples;

        return parent::request();
    }
public function byPath ( $ coords , $ samples , $ encode = true ) { $ this -> params [ 'path' ] = $ encode ? Encoder :: encodeCoordinates ( $ coords ) : implode ( '|' , $ coords ) ; $ this -> params [ 'samples' ] = $ samples ; return parent :: request ( ) ; }
Makes elevation request by paths

@param \dosamigos\google\maps\LatLng[] $coords defines a path on the earth for which to return elevation data.
@param int $samples specifies the number of sample points along a path for which to return the elevation data.
@param bool $encode

@return mixed|null
Makes elevation request by paths