DirectionsApi( this.api, { this.version = 'v5', this.endpoint = 'https://api.mapbox.com/directions', });