| xqd
@@ -14,9 +14,9 @@ class TestController extends Controller
|
|
|
public function index(Request $request)
|
|
|
{
|
|
|
$client = new Client();
|
|
|
- $from = '39.916527,116.397128';
|
|
|
+ $from = '39.071510,117.190091';
|
|
|
$to = $from;
|
|
|
- $url = 'https://apis.map.qq.com/ws/distance/v1/?from=' . $from . '&to=' . $to . '&key=' . env('TECENT_POSITION_KEY');
|
|
|
+ $url = 'https://apis.map.qq.com/ws/distance/v1?from=' . $from . '&to=' . $to . '&key=' . env('TECENT_POSITION_KEY');
|
|
|
$res = $client->get($url);
|
|
|
$res = (string)$res->getBody();
|
|
|
dd($res);
|