File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
3
function get_lat_long ($ address ) {
4
- $ apiUrl = "https://address.dawul.co.kr/input_pro.php " ;
5
- $ curl = curl_init ();
4
+ $ apiUrl = "https://address.dawul.co.kr/input_pro.php " ;
5
+ $ curl = curl_init ();
6
6
7
7
curl_setopt_array ($ curl , array (
8
8
CURLOPT_URL => $ apiUrl ,
9
- CURLOPT_SSL_VERIFYPEER => 0 ,
10
- CURLOPT_SSL_VERIFYHOST => 0 ,
9
+ CURLOPT_SSL_VERIFYPEER => 0 ,
10
+ CURLOPT_SSL_VERIFYHOST => 0 ,
11
11
CURLOPT_RETURNTRANSFER => 1 ,
12
12
CURLOPT_POST => 1 ,
13
13
CURLOPT_POSTFIELDS => 'refine_ty=8&protocol_= ' .urlencode ($ address ),
@@ -19,18 +19,18 @@ function get_lat_long($address) {
19
19
20
20
$ response = curl_exec ($ curl );
21
21
curl_close ($ curl );
22
- $ temp = explode ("| " , $ response );
23
- $ arr [0 ] = $ temp [4 ];
24
- $ arr [1 ] = $ temp [3 ];
22
+ $ temp = explode ("| " , $ response );
23
+ $ arr [0 ] = $ temp [4 ];
24
+ $ arr [1 ] = $ temp [3 ];
25
25
26
26
//서울특별시 중구 한강대로 405 (봉래동2가, 경부고속철도서울민자역사)|서울특별시 중구 봉래동2가 122-11 |04509|126.969422|37.5562730
27
- /*
28
- 서울특별시 중구 한강대로 405 (봉래동2가, 경부고속철도서울민자역사)
29
- 서울특별시 중구 봉래동2가 122-11
30
- 04509
31
- 126.969422
32
- 37.5562730
33
- */
27
+ /*
28
+ 서울특별시 중구 한강대로 405 (봉래동2가, 경부고속철도서울민자역사)
29
+ 서울특별시 중구 봉래동2가 122-11
30
+ 04509
31
+ 126.969422
32
+ 37.5562730
33
+ */
34
34
35
35
return $ arr ;
36
36
}
You can’t perform that action at this time.
0 commit comments