주소를 이용해 위도,경도 값을 받아와 다양한 이미지 마커 표시를 했는데 받아온 값만 뜨지 않습니다

// 커피숍 마커가 표시될 좌표 배열입니다
			var coffeePositions = [ 
			   	/*new kakao.maps.LatLng(37.499590490909185, 127.0263723554437),
			    new kakao.maps.LatLng(37.499427948430814, 127.02794423197847),
			    new kakao.maps.LatLng(37.498553760499505, 127.02882598822454),
			    new kakao.maps.LatLng(37.497625593121384, 127.02935713582038),
			    new kakao.maps.LatLng(37.49646391248451, 127.02675574250912),
			    new kakao.maps.LatLng(37.49629291770947, 127.02587362608637),
			    new kakao.maps.LatLng(37.49754540521486, 127.02546694890695)*/
			];
			// 편의점 마커가 표시될 좌표 배열입니다
			var storePositions = [
			    new kakao.maps.LatLng(37.497535461505684, 127.02948149502778),
			    new kakao.maps.LatLng(37.49671536281186, 127.03020491448352),
			    new kakao.maps.LatLng(37.496201943633714, 127.02959405469642),
			    new kakao.maps.LatLng(37.49640072567703, 127.02726459882308),
			    new kakao.maps.LatLng(37.49640098874988, 127.02609983175294),
			    new kakao.maps.LatLng(37.49932849491523, 127.02935780247945),
			    new kakao.maps.LatLng(37.49996818951873, 127.02943721562295)
			];

			// 주차장 마커가 표시될 좌표 배열입니다
			var carparkPositions = [
			    new kakao.maps.LatLng(37.49966168796031, 127.03007039430118),
			    new kakao.maps.LatLng(37.499463762912974, 127.0288828824399),
			    new kakao.maps.LatLng(37.49896834100913, 127.02833986892401),
			    new kakao.maps.LatLng(37.49893267508434, 127.02673400572665),
			    new kakao.maps.LatLng(37.49872543597439, 127.02676785815386),
			    new kakao.maps.LatLng(37.49813096097184, 127.02591949495914),
			    new kakao.maps.LatLng(37.497680616783086, 127.02518427952202)                       
			];    
			
			// 주소-좌표 변환 객체를 생성합니다
			var geocoder = new kakao.maps.services.Geocoder();
			
			// 커피숍 임시 주소대신 코로나 진료소 주소 받아옴
			<c:forEach var="corona" items="${coronaList}">
				//console.log("${corona.coronaAddress}");
				geocoder.addressSearch('${corona.coronaAddress}', function(result, status){
					if(status === kakao.maps.services.Status.OK){
						coffeePositions.push(new kakao.maps.LatLng(result[0].y, result[0].x));
					}
				});
			</c:forEach>

자바스크립트 api로 받아왔는데 coffeePositions에 임시 값을 넣으면 잘 나타나지만 주소를 통해 위도/경도를 받아와서 마커를 표시하려면 표시되지가 않습니다. console.log()로 찍어봐도 기존의 storePostions와 똑같이 뜹니다. 이유를 알 수 있을까요?

addressSearch는 비동기 방식으로
데이터 응답이 오기 전에 마커 생성 로직을 실행하면
빈 배열로 실행되어 마커가 생성되지 않습니다.

아래 답변 참고해서 비동기를 promise로 감싸주세요.
받아온 좌표 데이터로 마커를 생성하면 됩니다.
resolve 값은 참고만 해주세요.
현재 코드에 맞게 수정해주시면 됩니다.