Home Manual Reference Source Test Repository
import GeoclusterFinder from 'opengate-js/src/geocluster/GeoclusterFinder.js'
public class | source

GeoclusterFinder

Extends:

GenericFinderProvisionGenericFinder → GeoclusterFinder

This class allow make get request to user resource into Opengate North API.

Constructor Summary

Public Constructor
public

Constructor

Method Summary

Public Methods
public

Find all available geocluster.

public

Find a specify geocluster by an identifier.

public

findFeatures(id: string, coordinates: Object): Promise

Find features inside the coordinates.

Public Constructors

public constructor(Reference: InternalOpenGateAPI) source

Constructor

Override:

ProvisionGenericFinder#constructor

Params:

NameTypeAttributeDescription
Reference InternalOpenGateAPI

to the API object.

Public Methods

public findAll(): Promise source

Find all available geocluster. This execute a GET http method

Return:

Promise

public findById(id: string): Promise source

Find a specify geocluster by an identifier. This execute a GET http method

Params:

NameTypeAttributeDescription
id string

Identifier of the geocluster.

Return:

Promise

public findFeatures(id: string, coordinates: Object): Promise source

Find features inside the coordinates. This execute a GET http method

Params:

NameTypeAttributeDescription
id string

Identifier of the geocluster.

coordinates Object

square defined by the coordinates and the zoom used to find the inside features .

Return:

Promise