Silent 6 gadi atpakaļ
vecāks
revīzija
36b7da9b40
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      app/Http/Controllers/TestController.php

+ 2 - 2
app/Http/Controllers/TestController.php

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);