2026-04-14-2 full
This commit is contained in:
@@ -135,22 +135,24 @@ export class GeocodingController {
|
||||
@UseGuards(ApiKeyGuard)
|
||||
@ApiOperation({ summary: 'Sync neighborhood points from OSM for a bbox' })
|
||||
@ApiQuery({ name: 'bbox', required: false })
|
||||
async syncNeighborhoods(@Query('bbox') bbox?: string) {
|
||||
return this.adminLinkingService.syncOsmNeighborhoodPoints(bbox);
|
||||
@ApiQuery({ name: 'country', required: false, enum: ['jordan', 'syria', 'egypt'] })
|
||||
async syncNeighborhoods(@Query('bbox') bbox?: string, @Query('country') country?: string) {
|
||||
return this.adminLinkingService.syncOsmNeighborhoodPoints(bbox, country);
|
||||
}
|
||||
|
||||
@Post('admin/generate-voronoi')
|
||||
@UseGuards(ApiKeyGuard)
|
||||
@ApiOperation({ summary: 'Generate Voronoi polygons for neighborhoods' })
|
||||
async generateVoronoi() {
|
||||
return this.adminLinkingService.generateVoronoiNeighborhoods();
|
||||
@ApiQuery({ name: 'country', required: false, enum: ['jordan', 'syria', 'egypt'] })
|
||||
async generateVoronoi(@Query('country') country?: string) {
|
||||
return this.adminLinkingService.generateVoronoiNeighborhoods(country);
|
||||
}
|
||||
|
||||
@Post('admin/link-places')
|
||||
@UseGuards(ApiKeyGuard)
|
||||
@ApiOperation({ summary: 'Link places to administrative hierarchy' })
|
||||
@ApiQuery({ name: 'country', required: true, enum: ['jordan', 'syria'] })
|
||||
async linkPlaces(@Query('country') country: 'jordan' | 'syria') {
|
||||
@ApiQuery({ name: 'country', required: true, enum: ['jordan', 'syria', 'egypt'] })
|
||||
async linkPlaces(@Query('country') country: 'jordan' | 'syria' | 'egypt') {
|
||||
return this.adminLinkingService.linkPlaces(country);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user