UrlBuilder
in package
URL builder for BMLT API requests
Table of Contents
Methods
- buildBmltUrl() : string
- normalizeRootServerUrl() : string
- validateCoordinates() : void
- validateEndpointFormat() : void
- validateRadius() : void
- validateRootServerUrl() : void
Methods
buildBmltUrl()
public
static buildBmltUrl(string $rootServerUrl, BmltEndpoint $endpoint, BmltDataFormat $format[, array<string|int, mixed> $parameters = [] ]) : string
Parameters
- $rootServerUrl : string
- $endpoint : BmltEndpoint
- $format : BmltDataFormat
- $parameters : array<string|int, mixed> = []
Return values
stringnormalizeRootServerUrl()
public
static normalizeRootServerUrl(string $url) : string
Parameters
- $url : string
Return values
stringvalidateCoordinates()
public
static validateCoordinates(Coordinates $coordinates) : void
Parameters
- $coordinates : Coordinates
validateEndpointFormat()
public
static validateEndpointFormat(BmltEndpoint $endpoint, BmltDataFormat $format) : void
Parameters
- $endpoint : BmltEndpoint
- $format : BmltDataFormat
validateRadius()
public
static validateRadius(float $radius) : void
Parameters
- $radius : float
validateRootServerUrl()
public
static validateRootServerUrl(string $url) : void
Parameters
- $url : string