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

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

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

@param \dosamigos\google\maps\LatLng[] $coords
@param bool $encode

@return mixed|null
Makes elevation request by locations