Run alembic migrations on startup, fix User model, add POI travel sorting and streaming options

This commit is contained in:
Viktor Barzin 2026-02-08 18:50:13 +00:00
parent 743e018668
commit 54bdcac14a
No known key found for this signature in database
GPG key ID: 0EB088298288D958
5 changed files with 34 additions and 10 deletions

View file

@ -67,9 +67,13 @@ export interface StreamingProgress {
export async function* streamListingGeoJSON(
user: AuthUser,
parameters: ParameterValues,
onProgress?: (progress: StreamingProgress) => void
onProgress?: (progress: StreamingProgress) => void,
options?: { includePoiDistances?: boolean },
): AsyncGenerator<PropertyFeature[], void, unknown> {
const params = buildListingParams(parameters);
if (options?.includePoiDistances) {
params.include_poi_distances = 'true';
}
const queryString = buildQueryString(params);
const url = queryString
? `${API_ENDPOINTS.LISTING_GEOJSON_STREAM}?${queryString}`