<?php /* @info Κλάση υπεύθυνη για την δημιουργία παραγγελίας. Θέτουμε την κατάσταση της παραγγελίας σε 1. */ header('Content-type=application/json; charset=utf-8'); require_once __DIR__ . '/db_connect.php'; $database = new DB_CONNECT(); $neworder = new Orders(); $neworder->makeOrder(fixLatLon($_REQUEST["customerlat"]), fixLatLon($_REQUEST["customerlon"]), fixLatLon($_REQUEST["driverlat"]), fixLatLon($_REQUEST["driverlon"]), $_REQUEST["customerDevice"], $_REQUEST["driverDevice"], $_REQUEST["distance"]); //san orismata vazoume ta requests //================================================================================ class Orders { private $jsonResponse; private $CustomerLatitude; private $CustomerLongitude; private $DriverLatitude; private $DriverLongitude; private $customerid; private $driverid; private $orderid; private $distance; function __construct() { $this->jsonResponse = array(); $this->CustomerLatitude = null; $this->CustomerLongitude = null; $this->DriverLatitude = null;