import { Controller , Get , Query , UseGuards } from '@nestjs/common' ; import { UserGuard } from '../../../common/guards/user.guard' ; import { BACKEDN_MAP_KEY } from '../constance' ; import { MapService } from '../service/map.service' ; @ Controller ( 'map/user' ) @ UseGuards ( UserGuard ) export class UserController { constructor ( private readonly service ) { } @ Get ( '/format-address' ) formatAddress ( @ Query ( 'lng' ) lng , @ Query ( 'lat' ) lat ) { return this . service . formatAddress ( lng , lat , BACKEDN_MAP_KEY ) ; } }