Maxxie
ip address issues on railway with railway generated domain name
* shows ... want i intend to achieve is the make my ip address a different one from d default provided by railway, which changes frequently and isnt supported by my paymeny gateway, they also do not support ranges too..
20 replies
ip address issues on railway with railway generated domain name
it comes up now but, my ip is address still sows the previous one which is the one belonging to railway which changes frequently, and isnt suppoted by my patement gateway, is there a workaround to this, can i get a way to get my own ip address while my files are on railway ??
20 replies
Mathematical Formulars not functioning properly on mysql provisioning
thing is i have a localhost setip using xampp, so after testing locally i push to github so it can be tested properly over the web as it's an api...on the localhost it returns an object when the query is executed, but returns null on the railway wen
21 replies
Mathematical Formulars not functioning properly on mysql provisioning
i connected via my mysql client and same thing still happens, but when i use my localhost conneted to phpmyadmin it works fine, and it was working earlier according to the other guy on the team who tested it too
21 replies
Mathematical Formulars not functioning properly on mysql provisioning
as for the error, none is returned to me, just an empty dataset, whereas locally a collection of results is being returned, it;s the exact same data both locally and on railway...
21 replies
Mathematical Formulars not functioning properly on mysql provisioning
$referenceLatitude = $delivery->pickup_lat;
$referenceLongitude = $delivery->pickup_long;
$referenceMedium = $delivery->medium;
$maxDistance = 10; // Maximum distance in kilometers
$earthRadius = 6371; // Earth's radius in kilometers
$driver_locations = DB::table('drivers')
->select('live_lat', 'live_long')
->selectRaw("
($earthRadius * ACOS(
COS(RADIANS($referenceLatitude)) *
COS(RADIANS(live_lat)) *
COS(RADIANS(live_long) - RADIANS($referenceLongitude)) +
SIN(RADIANS($referenceLatitude)) *
SIN(RADIANS(live_lat))
)) AS distance, id AS driver_id, name,email,phoneNumber,state,address,gender,img,medium
")
->where('availability', '=', 1)
->where('status', '=', 'active')
->where('medium', '=', $referenceMedium)
->having('distance', '<=', $maxDistance)
->orderBy('distance')
->get();
21 replies