\r\n

51Degrees Geo-Location Java  4.4

Geo-location services for 51Degrees Pipeline

fiftyone.geolocation.GeoLocationPipelineBuilder Class Reference

Public Member Functions

 GeoLocationPipelineBuilder (ILoggerFactory loggerFactory)
Constructor. More...
 GeoLocationPipelineBuilder (ILoggerFactory loggerFactory, HttpClient httpClient)
Constructor. More...
GeoLocationCloudPipelineBuilder  useCloud (String resourceKey, Enums.GeoLocationProvider provider)
Use the 51Degrees cloud service to perform Geo Location. More...
GeoLocationCloudPipelineBuilder  useCloud (String resourceKey, String endpoint, Enums.GeoLocationProvider provider)
Use the 51Degrees cloud service to perform Geo Location. More...

Constructor & Destructor Documentation

◆ GeoLocationPipelineBuilder() [1/2]

fiftyone.geolocation.GeoLocationPipelineBuilder.GeoLocationPipelineBuilder ( ILoggerFactory   loggerFactory )

Constructor.

Parameters
loggerFactory - the factory to use for creating loggers within the pipeline

◆ GeoLocationPipelineBuilder() [2/2]

fiftyone.geolocation.GeoLocationPipelineBuilder.GeoLocationPipelineBuilder ( ILoggerFactory   loggerFactory,
HttpClient   httpClient  
)

Constructor.

Parameters
loggerFactory - the factory to use for creating loggers within the pipeline
httpClient - the HTTP client to use within the pipeline

Member Function Documentation

◆ useCloud() [1/2]

GeoLocationCloudPipelineBuilder fiftyone.geolocation.GeoLocationPipelineBuilder.useCloud ( String   resourceKey,
Enums.GeoLocationProvider   provider  
)

Use the 51Degrees cloud service to perform Geo Location.

Parameters
resourceKey - the resource key to use when querying the service. Obtain one from https://configure.51degrees.com
provider - the Geo Location provider to use
Returns
builder that can be used to configure and build a pipeline that will use the cloud Geo Location engine

◆ useCloud() [2/2]

GeoLocationCloudPipelineBuilder fiftyone.geolocation.GeoLocationPipelineBuilder.useCloud ( String   resourceKey,
String   endpoint,
Enums.GeoLocationProvider   provider  
)

Use the 51Degrees cloud service to perform Geo Location.

Parameters
resourceKey - the resource to use when querying the cloud service. Obtain one from https://configure.51degrees.com
endpoint - the 51Degrees cloud URL
provider - the Geo Location provider to use
Returns
a builder that can be used to configure and build a pipeline that will use the cloud Geo Location engine