asp + Msxml2.ServerXMLHTTP.6.0 사용 함.
의외로 간단~
<% Session.CodePage = 65001 Response.ContentType = "application/json" Response.Charset = "utf-8" Dim callUrl Dim HttpReq Dim params origins = Request.QueryString("origins") destinations = Request.QueryString("destinations") callUrl = "https://maps.googleapis.com/maps/api/distancematrix/json?origins="&origins&"&destinations="&destinations&"&mode=transit&language=ko-KO&key=구글API키" Set HttpReq = Server.CreateObject("Msxml2.ServerXMLHTTP.6.0") HttpReq.open "GET", callUrl, False HttpReq.send Response.Write HttpReq.responseText %>
댓글 없음:
댓글 쓰기