-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: 카카오맵 연결 * chore: asset 추가 * feat: 행정구역 별 위도, 경도 상수 추가 * feat: 카카오맵 초기세팅(사용자 위치에 따른 중심 설정, geolocation 설정) * feat: default 위도, 경도 지정 함수 * chore: 카카오맵 핀 asset 추가 * feat: 공공api(위치기반 관광정보 조회) 연결 * feat: 카카오맵 연결(화면에 맵 띄우기) * feat: 주변 여행지 찾아보기 기능 구현 * feat: 지도에 pin 생성하기 * feat: 타입 추가 * chore: 기본 이미지 추가 * chore: 바텀시트 배경 관련 props 추가 * feat: 검색 결과 바텀시트 연결 * chore: 주석 수정 * chore: 이미지 Url 반영 코드 수정 * chore: 어셋 수정
- Loading branch information
Showing
26 changed files
with
1,111 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/** 위치기반 관광정보 조회 API */ | ||
import { getLocationBasedList1Res } from '@/types/locationBasedList1'; | ||
import { Response } from '@/types/public'; | ||
|
||
import { publicDataClient } from '..'; | ||
|
||
interface locationBasedList1Params { | ||
pageNo: number; | ||
numOfRows: number; | ||
MobileOS: 'IOS' | 'AND' | 'WIN' | 'ETC'; | ||
mapX: string | undefined; | ||
mapY: string | undefined; | ||
radius: string; | ||
contentTypeId: number; | ||
} | ||
|
||
export const getLocationBasedList1 = async ( | ||
paramsInfo: locationBasedList1Params, | ||
) => { | ||
let params = `MobileApp=UNITRIP&_type=json&arrange=O&serviceKey=${import.meta.env.VITE_PUBLIC_DATA_SERVICE_KEY}`; | ||
|
||
for (const [key, value] of Object.entries(paramsInfo)) { | ||
params += `&${key}=${value}`; | ||
} | ||
|
||
const { | ||
data: { | ||
response: { | ||
body: { items }, | ||
}, | ||
}, | ||
} = await publicDataClient.get<Response<getLocationBasedList1Res>>( | ||
`/locationBasedList1?${params}`, | ||
); | ||
return items; | ||
}; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.