"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GeocoderNominatimProvider = void 0;
const extension_provider_1 = require("../../../integration/extension.provider");
const geocoder_provider_1 = require("../geocoder.provider");
const geocoder_nominatim_const_1 = require("./geocoder-nominatim.const");
const geocoder_nominatim_service_1 = require("./geocoder-nominatim.service");
class GeocoderNominatimProvider extends extension_provider_1.ExtensionProvider {
    constructor(app) {
        super(geocoder_nominatim_const_1.GEOCODER_NOMINATIM_PROVIDER, app);
        this.app = app;
        this.requiredProviders.push(geocoder_provider_1.GeocoderProvider);
        this.dataSources.push({
            dataSource: geocoder_nominatim_service_1.GeocoderNominatimDataSource,
            name: geocoder_nominatim_service_1.GeocoderNominatimDataSource.dataSourceName,
        });
        this.services.push({ cls: geocoder_nominatim_service_1.GeocoderNominatimRepositoryProvider }, { cls: geocoder_nominatim_service_1.GeocoderNominatimService });
    }
}
exports.GeocoderNominatimProvider = GeocoderNominatimProvider;
//# sourceMappingURL=geocoder-nominatim.provider.js.map