Skip to content

Commit

Permalink
✨ feat: 키워드 장소검색 함수 작성 #5
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMirror21 committed Oct 19, 2024
1 parent 826054b commit 7b2c454
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/utils/map.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export const searchPlaces = (keyword: string) => {
const ps = new kakao.maps.services.Places();

ps.keywordSearch(keyword, (data, status) => {
if (status === kakao.maps.services.Status.OK) {
return data;
}
});
};

0 comments on commit 7b2c454

Please sign in to comment.