Skip to Content
⚠️Active Development Notice: TimeTiles is under active development. Information may be placeholder content or not up-to-date.

web


web / lib/services/geocoding/provider-manager

lib/services/geocoding/provider-manager

Manages the geocoding providers for the application.

This class is responsible for loading geocoding provider configurations from the database (or falling back to default environment variable-based configurations). It initializes instances of the node-geocoder library for each active provider and makes them available to the rest of the geocoding service.

It handles the logic for selecting and prioritizing providers based on the system’s settings, ensuring that the geocoding operations can be performed in a configured, resilient, and orderly manner.

Classes

ProviderManager

Constructors

Constructor

new ProviderManager(payload, settings): ProviderManager

Parameters
payload

BasePayload

settings

null | GeocodingSettings

Returns

ProviderManager

Methods

loadProviders()

loadProviders(): Promise<ProviderConfig[]>

Returns

Promise<ProviderConfig[]>

getEnabledProviders()

getEnabledProviders(): ProviderConfig[]

Returns

ProviderConfig[]

getProviders()

getProviders(): ProviderConfig[]

Returns

ProviderConfig[]

Last updated on