\r\n

51Degrees Geo-Location Node.js  4.4

51Degrees Geo-Location for Node.js

GeoLocationPipelineBuilder Class Reference

Inheritance diagram for GeoLocationPipelineBuilder:

[legend]

Collaboration diagram for GeoLocationPipelineBuilder:

[legend]

Public Member Functions

 constructor ({ shareUsage=true, resourceKey=null, locationProvider='fiftyonedegrees', baseURL=null, cloudRequestOrigin=null })
Extension of pipelineBuilder class that allows for the quick generation of a geo-location pipeline. More...

Member Function Documentation

◆ constructor()

GeoLocationPipelineBuilder::constructor (   { shareUsage=true, resourceKey=null, locationProvider='fiftyonedegrees', baseURL=null, cloudRequestOrigin=null } )
inline

Extension of pipelineBuilder class that allows for the quick generation of a geo-location pipeline.

Adds share usage, caching with simple paramater changes

Parameters
{Object} - options
{Boolean} - options.shareUsage // include share usage element?
{String} - options.resourceKey // resourceKey for cloud
{String} - options.locationProvider // the provider to request data from. Either "fiftyonedegrees" or "digitalelement".
{string} - options.cloudRequestOrigin The value to set the Origin header to when making requests to the cloud service
{string} - options.baseURL base URL for cloud request