Run alembic migrations on startup, fix User model, add POI travel sorting and streaming options
This commit is contained in:
parent
743e018668
commit
54bdcac14a
5 changed files with 34 additions and 10 deletions
|
|
@ -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}`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue