aboutsummaryrefslogtreecommitdiff
path: root/src/Enmarcha.Backend/Program.cs
diff options
context:
space:
mode:
authorAriel Costas Guerrero <ariel@costas.dev>2026-01-02 01:08:41 +0100
committerAriel Costas Guerrero <ariel@costas.dev>2026-01-02 01:08:41 +0100
commita3eb2d0441ae18f75604a4bee64db18391469837 (patch)
tree8994c1987afdd9436ba0699236439d3eb6c3f04d /src/Enmarcha.Backend/Program.cs
parentdd544d713a2af4713c61ae0d2050f2861cc0892a (diff)
feat: Integrate Geoapify geocoding service and update configuration
Diffstat (limited to 'src/Enmarcha.Backend/Program.cs')
-rw-r--r--src/Enmarcha.Backend/Program.cs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/Enmarcha.Backend/Program.cs b/src/Enmarcha.Backend/Program.cs
index 4450da6..a13abec 100644
--- a/src/Enmarcha.Backend/Program.cs
+++ b/src/Enmarcha.Backend/Program.cs
@@ -1,9 +1,9 @@
using System.Text.Json.Serialization;
using Enmarcha.Backend.Configuration;
using Enmarcha.Backend.Services;
+using Enmarcha.Backend.Services.Geocoding;
using Enmarcha.Backend.Services.Processors;
using Enmarcha.Backend.Services.Providers;
-using Enmarcha.Sources.TranviasCoruna;
var builder = WebApplication.CreateBuilder(args);
@@ -37,10 +37,9 @@ builder.Services.AddScoped<IArrivalsProcessor, ShapeProcessor>();
builder.Services.AddScoped<IArrivalsProcessor, FeedConfigProcessor>();
builder.Services.AddScoped<ArrivalsPipeline>();
-builder.Services.AddHttpClient<IGeocodingService, NominatimGeocodingService>();
+// builder.Services.AddKeyedScoped<IGeocodingService, NominatimGeocodingService>("Nominatim");
+builder.Services.AddHttpClient<IGeocodingService, GeoapifyGeocodingService>();
builder.Services.AddHttpClient<OtpService>();
-builder.Services.AddScoped<VitrasaTransitProvider>();
-builder.Services.AddScoped<RenfeTransitProvider>();
var app = builder.Build();