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

        return parent::request();
    }