Update: 2026-07-05 18:36:32
This commit is contained in:
@@ -51,8 +51,8 @@ $targetHourNext = ($currentHour + 1) % 24; // الساعة القادمة (ال
|
||||
|
||||
$sqlHistory = "
|
||||
SELECT
|
||||
ROUND(SUBSTRING_INDEX(start_location, ',', 1) / :grid) * :grid AS cell_lat,
|
||||
ROUND(SUBSTRING_INDEX(start_location, ',', -1) / :grid) * :grid AS cell_lng,
|
||||
ROUND(SUBSTRING_INDEX(start_location, ',', 1) / {$GRID_SIZE}) * {$GRID_SIZE} AS cell_lat,
|
||||
ROUND(SUBSTRING_INDEX(start_location, ',', -1) / {$GRID_SIZE}) * {$GRID_SIZE} AS cell_lng,
|
||||
'JO' AS country_code,
|
||||
COUNT(*) AS demand_score
|
||||
FROM ride
|
||||
@@ -71,7 +71,6 @@ $sqlHistory = "
|
||||
|
||||
try {
|
||||
$stmt = $conRide->prepare($sqlHistory);
|
||||
$stmt->bindValue(':grid', $GRID_SIZE, PDO::PARAM_STR);
|
||||
$stmt->bindValue(':next_hour', $targetHourNext, PDO::PARAM_INT);
|
||||
$stmt->bindValue(':dow', $currentDow, PDO::PARAM_INT);
|
||||
$stmt->bindValue(':weeks', $WEEKS_HISTORY, PDO::PARAM_INT);
|
||||
|
||||
Reference in New Issue
Block a user