Implement reverse geocoding for Rumah Miskin

This commit is contained in:
GuavaPopper
2026-04-28 10:08:31 +07:00
commit 7759b83638
15 changed files with 1363 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
<?php
header('Content-Type: application/json');
require_once 'config.php';
try {
$stmt = $pdo->query("SELECT * FROM rumah_miskin ORDER BY created_at DESC");
$data = $stmt->fetchAll();
echo json_encode($data);
} catch (PDOException $e) {
http_response_code(500);
echo json_encode(['success' => false, 'message' => $e->getMessage()]);
}