feat: upgrade to Intaleq Style v3 and enable Egypt routing demo (code only)
This commit is contained in:
@@ -44,15 +44,15 @@ export class GeocodingController {
|
||||
return this.geocodingService.upsertPlace(placeData);
|
||||
}
|
||||
|
||||
@Post('upsert-batch')
|
||||
@ApiOperation({ summary: 'Add or Update multiple locations in bulk' })
|
||||
async upsertBatch(@Body() body: { places: any[] }) {
|
||||
return this.geocodingService.upsertBatch(body.places);
|
||||
}
|
||||
|
||||
@Get('places')
|
||||
@ApiOperation({ summary: 'Get recent user submitted places' })
|
||||
async getPlaces(@Query('limit') limit?: number) {
|
||||
return this.geocodingService.getRecentPlaces(limit);
|
||||
}
|
||||
|
||||
@Post('migrate')
|
||||
@ApiOperation({ summary: 'Migrate legacy MySQL data to PostGIS' })
|
||||
async migrate() {
|
||||
return this.geocodingService.migrateFromMySQL('LEGACY_DB');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user