I get an undefined offset after passing the requests into the function

I’m trying to get the time taken to reach a distance using google distantmatrix.I get this error after passing the the required arguments into the function. Public function GetDrivingDistance($lat1, $lat2, $long1, $long2) { $data1 = setting::where(‘id’,1)->first(); $key = $data1->key; $url = “https://maps.googleapis.com/maps/api/distancematrix/json?origins=”.$lat1.”,”.$long1.”&destinations=”.$lat2.”,”.$long2.”&mode=driving&language=pl-PL”.”&key=”.$key; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_PROXYPORT, 3128); curl_setopt($ch,…

Details

How to assign configuration variables as combination of other parameters defined in the omnet.ini in OMNeT++

I want to set the warmup-period as the sum of some parameters that I need in my simulations. I wrote this but I always get a Syntax Error or parsing Error **.airspace.interArrivalTime = ${iat = 15..30 step 3} **.airspace.landingTime = ${lt = 15..30 step 3} **.parkingarea.takeoffTime = ${tot = 15..30 step 3} **.parkingarea.parkingTime = ${pt…

Details