feat(graph): add to web
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user