protected function getUrl(array $options): string
    {
        $urlOptions = [];
        $this->setOriginAndDestinationOption($urlOptions, $options);
        $this->setViaOption($urlOptions, $options);
        $this->setDateOption($urlOptions, $options);

        $urlOptions = array_merge($urlOptions, $options);

        return sprintf('trip?%s&format=json', http_build_query($urlOptions));
    }
protected function getUrl(array $options): string
    {
        $urlOptions = [];
        $this->setOriginAndDestinationOption($urlOptions, $options);
        $this->setViaOption($urlOptions, $options);
        $this->setDateOption($urlOptions, $options);

        $urlOptions = array_merge($urlOptions, $options);

        return sprintf('trip?%s&format=json', http_build_query($urlOptions));
    }
protected function getUrl ( array $ options ) : string { $ urlOptions = [ ] ; $ this -> setOriginAndDestinationOption ( $ urlOptions , $ options ) ; $ this -> setViaOption ( $ urlOptions , $ options ) ; $ this -> setDateOption ( $ urlOptions , $ options ) ; $ urlOptions = array_merge ( $ urlOptions , $ options ) ; return sprintf ( 'trip?%s&format=json' , http_build_query ( $ urlOptions ) ) ; }
Create the URL.

@param array $options

@return string
Create the URL .