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

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

        return parent::request();
    }