8000 Update address_lat_long_get.php · nicecoding1/php_example@272580e · GitHub
[go: up one dir, main page]

Skip to content

Commit 272580e

Browse files
authored
Update address_lat_long_get.php
1 parent 45ee017 commit 272580e

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

address_lat_long_get.php

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?php
22

33
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();
66

77
curl_setopt_array($curl, array(
88
CURLOPT_URL => $apiUrl,
9-
CURLOPT_SSL_VERIFYPEER => 0,
10-
CURLOPT_SSL_VERIFYHOST => 0,
9+
CURLOPT_SSL_VERIFYPEER => 0,
10+
CURLOPT_SSL_VERIFYHOST => 0,
1111
CURLOPT_RETURNTRANSFER => 1,
1212
CURLOPT_POST => 1,
1313
CURLOPT_POSTFIELDS => 'refine_ty=8&protocol_='.urlencode($address),
@@ -19,18 +19,18 @@ function get_lat_long($address) {
1919

2020
$response = curl_exec($curl);
2121
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];
2525

2626
//서울특별시 중구 한강대로 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+
*/
3434

3535
return $arr;
3636
}

0 commit comments

Comments
 (0)
0