The GEOSS Discovery And Access Broker APIs
Authors: Fabrizio Papeschi, Mattia Santoro, Stefano Nativi
API version: 1.4.3-beta

GIAPI

Module: Core

This object provides some utility methods and a single global variable for all the objects of this API

Item Index

Methods

Methods

clone

(
  • object
)
static

Creates a clone of the given object

Parameters:

  • object Object

    the object to clone

Returns:

the cloned object

emptyResultSet

(
  • [error]
)
static

Creates an empty ResultSet

Parameters:

  • [error] Object optional

    an optional error message

Returns:

an empty ResultSet

formatWords

(
  • string
)
static

Formats all the words in the given string by capitalizing the first character of each word and setting the lower case to the remaining characters

Parameters:

  • string String

    the words to format

Returns:

the formatted string

isoDateTime

() static

Returns the current time in the ISO8601 format YYYY-MM-DDThh:mm:ss.mls

Returns:

the current time in the ISO8601 format YYYY-MM-DDThh:mm:ss.mls

mergeConstraints

(
  • constraints1
  • constraints2
)
static

Merges the given basic constraints and returns the merged ones

Parameters:

Returns:

the merged constraints

random

() static

Returns a string of 16 random alphanumeric characters

Returns:

a string of 16 random alphanumeric characters

spaces

() static

Returns a string of count characters  

Returns:

the formatted string

thousandsSeparator

(
  • integer
)
static

Formats the given integer number inserting a '.' to separate the thousands

Parameters:

Returns:

the formatted number as a string

Properties

[GIAPI.nameSpace.nameSpaceType='ISO19115']

String static

Set the nameSpace option for retrieving full metadata (getRecordById) records. Default value: ISO19115. Other possible value is: BLUECLOUD If set before the creation of a ResultsMapWidget, it is used as value for the getRecordById (Full Metadata) option

[GIAPI.ui.mapType='google']

String static

Set the mapType option of the widgets located in the <aside> element.
If set before the creation of a ResultsMapWidget, it is used as value for the mapType option