feat(graph): add to web

This commit is contained in:
vl.arkhangelskii
2026-09-21 11:38:53 +03:00
parent b763b6f050
commit b8d611beee
12 changed files with 486 additions and 15 deletions
@@ -1,5 +1,6 @@
using Microsoft.Extensions.Options;
using TileServer.Application.Configuration;
using TileServer.Application.Graph;
using TileServer.Application.Tiles;
using TileServer.Domain;
using TileServer.Domain.Exceptions;
@@ -12,6 +13,7 @@ public sealed class ExtractService(
IExtractCatalog catalog,
IExtractStateStore stateStore,
ITileStore tileStore,
IRoadGraphStore roadGraphStore,
IOptions<TileServerOptions> options) : IExtractService
{
public async Task<IReadOnlyList<ExtractResponse>> ListAsync(string baseUrl, CancellationToken ct)
@@ -88,6 +90,7 @@ public sealed class ExtractService(
state.BuiltAt,
state.PbfBytes,
state.LastError,
bounds);
bounds,
roadGraphStore.Exists(extract.Id));
}
}
@@ -17,7 +17,8 @@ public sealed record ExtractResponse(
DateTimeOffset? BuiltAt,
long? PbfBytes,
string? LastError,
TilesetBounds? Bounds);
TilesetBounds? Bounds,
bool GraphReady);
public sealed record TilesetBounds(double MinLon, double MinLat, double MaxLon, double MaxLat);