EARTHSCOPE_HOST

dist/fdsncommon.mjs
EARTHSCOPE_HOST

Type: string

IRIS_HOST

const for fdsn web service host, www.fdsn.org

FDSN_HOST

Type: string

FDSNWS_PATH_BASE

dist/fdsncommon.mjs
FDSNWS_PATH_BASE

Type: string

IRISWS_PATH_BASE

dist/fdsncommon.mjs
IRISWS_PATH_BASE

Type: string

LOCALWS_PATH_BASE

dist/fdsncommon.mjs
LOCALWS_PATH_BASE

Type: string

new FDSNCommon(service: any, host: any)
Parameters
service (any)
host (any)
Instance Members
defaultPortStringForProtocol(protocol)

protocolForKnownHost

dist/fdsncommon.mjs

Gets https or http for known FDSN WS hosts. Some, like Earthscope only use https, so using this avoids the redirect.

protocolForKnownHost(host: any, defaultProtocol: any): any
Parameters
host (any) hostname, like service.earthscope.org
defaultProtocol (any)
Returns
any: either https for know or default for others

defaultPortStringForProtocol

dist/fdsncommon.mjs
defaultPortStringForProtocol(protocol: any, port: any)
Parameters
protocol (any)
port (any)

Appends a path segment to a base URL, checking that there is one, and only one, slash between the two.

appendToPath(baseUrl: any, addPath: any): any
Parameters
baseUrl (any) base url, possibly ending in a slash
addPath (any) path to add, possibly starting with a slash
Returns
any: merged path, with exactly one slash between
new LatLonRegion()
new LatLonBox(west: any, east: any, south: any, north: any)

Extends LatLonRegion

Parameters
west (any)
east (any)
south (any)
north (any)
Instance Members
asLeafletBounds()
new LatLonRadius(latitude: any, longitude: any, minRadius: any, maxRadius: any)

Extends LatLonRegion

Parameters
latitude (any)
longitude (any)
minRadius (any)
maxRadius (any)