From fb63e876ea5fe32ea26574199007fc88a1a940fd Mon Sep 17 00:00:00 2001 From: Qohh Date: Sat, 13 Jun 2026 10:54:54 +0700 Subject: [PATCH] Initial commit --- Pertemuan01/index.html | 73 ++++ Pertemuan02/code.txt | 81 +++++ Pertemuan02/db.php | 12 + Pertemuan02/delete_line.php | 11 + Pertemuan02/delete_polygons.php | 11 + Pertemuan02/get_line.php | 13 + Pertemuan02/get_polygons.php | 13 + Pertemuan02/index.html | 445 +++++++++++++++++++++++ Pertemuan02/simpan_line.php | 20 ++ Pertemuan02/simpan_polygons.php | 13 + Pertemuan02/update_line.php | 14 + Pertemuan02/update_polygons.php | 14 + Pertemuan03/code.txt | 81 +++++ Pertemuan03/db.php | 12 + Pertemuan03/delete_line.php | 11 + Pertemuan03/delete_polygons.php | 11 + Pertemuan03/get_line.php | 13 + Pertemuan03/get_polygons.php | 13 + Pertemuan03/maps.html | 292 +++++++++++++++ Pertemuan03/simpan_line.php | 20 ++ Pertemuan03/simpan_polygons.php | 13 + Pertemuan03/update_line.php | 14 + Pertemuan03/update_polygons.php | 14 + Pertemuan04/code.txt | 81 +++++ Pertemuan04/db.php | 12 + Pertemuan04/delete.php | 9 + Pertemuan04/delete_line.php | 11 + Pertemuan04/delete_polygons.php | 11 + Pertemuan04/get.php | 13 + Pertemuan04/get_line.php | 13 + Pertemuan04/get_polygons.php | 13 + Pertemuan04/maps.html | 611 ++++++++++++++++++++++++++++++++ Pertemuan04/simpan_line.php | 20 ++ Pertemuan04/simpan_polygons.php | 13 + Pertemuan04/tambah.php | 12 + Pertemuan04/test.php | 22 ++ Pertemuan04/update.php | 16 + Pertemuan04/update_line.php | 14 + Pertemuan04/update_polygons.php | 14 + index.html | 233 ++++++++++++ spbu_db.sql | 141 ++++++++ 41 files changed, 2473 insertions(+) create mode 100644 Pertemuan01/index.html create mode 100644 Pertemuan02/code.txt create mode 100644 Pertemuan02/db.php create mode 100644 Pertemuan02/delete_line.php create mode 100644 Pertemuan02/delete_polygons.php create mode 100644 Pertemuan02/get_line.php create mode 100644 Pertemuan02/get_polygons.php create mode 100644 Pertemuan02/index.html create mode 100644 Pertemuan02/simpan_line.php create mode 100644 Pertemuan02/simpan_polygons.php create mode 100644 Pertemuan02/update_line.php create mode 100644 Pertemuan02/update_polygons.php create mode 100644 Pertemuan03/code.txt create mode 100644 Pertemuan03/db.php create mode 100644 Pertemuan03/delete_line.php create mode 100644 Pertemuan03/delete_polygons.php create mode 100644 Pertemuan03/get_line.php create mode 100644 Pertemuan03/get_polygons.php create mode 100644 Pertemuan03/maps.html create mode 100644 Pertemuan03/simpan_line.php create mode 100644 Pertemuan03/simpan_polygons.php create mode 100644 Pertemuan03/update_line.php create mode 100644 Pertemuan03/update_polygons.php create mode 100644 Pertemuan04/code.txt create mode 100644 Pertemuan04/db.php create mode 100644 Pertemuan04/delete.php create mode 100644 Pertemuan04/delete_line.php create mode 100644 Pertemuan04/delete_polygons.php create mode 100644 Pertemuan04/get.php create mode 100644 Pertemuan04/get_line.php create mode 100644 Pertemuan04/get_polygons.php create mode 100644 Pertemuan04/maps.html create mode 100644 Pertemuan04/simpan_line.php create mode 100644 Pertemuan04/simpan_polygons.php create mode 100644 Pertemuan04/tambah.php create mode 100644 Pertemuan04/test.php create mode 100644 Pertemuan04/update.php create mode 100644 Pertemuan04/update_line.php create mode 100644 Pertemuan04/update_polygons.php create mode 100644 index.html create mode 100644 spbu_db.sql diff --git a/Pertemuan01/index.html b/Pertemuan01/index.html new file mode 100644 index 0000000..00b0c22 --- /dev/null +++ b/Pertemuan01/index.html @@ -0,0 +1,73 @@ + + + + + + + + Map - Universitas Tanjungpura + + + + + + + + + + +
+ + + + +``` \ No newline at end of file diff --git a/Pertemuan02/code.txt b/Pertemuan02/code.txt new file mode 100644 index 0000000..725079f --- /dev/null +++ b/Pertemuan02/code.txt @@ -0,0 +1,81 @@ + + + + + + + + + Quick Start - Leaflet + + + + + + + + + + + + + + +
+ + + + + + diff --git a/Pertemuan02/db.php b/Pertemuan02/db.php new file mode 100644 index 0000000..bdb40e9 --- /dev/null +++ b/Pertemuan02/db.php @@ -0,0 +1,12 @@ +connect_error) { + die($conn->connect_error); +} +?> \ No newline at end of file diff --git a/Pertemuan02/delete_line.php b/Pertemuan02/delete_line.php new file mode 100644 index 0000000..1ede172 --- /dev/null +++ b/Pertemuan02/delete_line.php @@ -0,0 +1,11 @@ +id; + +$conn->query("DELETE FROM garis WHERE id=$id"); + +echo json_encode(["status"=>"deleted"]); +?> \ No newline at end of file diff --git a/Pertemuan02/delete_polygons.php b/Pertemuan02/delete_polygons.php new file mode 100644 index 0000000..5c23d65 --- /dev/null +++ b/Pertemuan02/delete_polygons.php @@ -0,0 +1,11 @@ +id; + +$conn->query("DELETE FROM polygons WHERE id=$id"); + +echo json_encode(["status"=>"deleted"]); +?> \ No newline at end of file diff --git a/Pertemuan02/get_line.php b/Pertemuan02/get_line.php new file mode 100644 index 0000000..0e97df1 --- /dev/null +++ b/Pertemuan02/get_line.php @@ -0,0 +1,13 @@ +query("SELECT * FROM garis"); + +$data = []; + +while($row = $result->fetch_assoc()){ + $data[] = $row; +} + +echo json_encode($data); +?> \ No newline at end of file diff --git a/Pertemuan02/get_polygons.php b/Pertemuan02/get_polygons.php new file mode 100644 index 0000000..35b1bb5 --- /dev/null +++ b/Pertemuan02/get_polygons.php @@ -0,0 +1,13 @@ +query("SELECT * FROM polygons"); + +$data = []; + +while($row = $result->fetch_assoc()){ + $data[] = $row; +} + +echo json_encode($data); +?> \ No newline at end of file diff --git a/Pertemuan02/index.html b/Pertemuan02/index.html new file mode 100644 index 0000000..9aab2dd --- /dev/null +++ b/Pertemuan02/index.html @@ -0,0 +1,445 @@ + + + + + + + + WebGIS - Jalan & Kavling + + + + + + + + +
+ + + + +
+
+ + + \ No newline at end of file diff --git a/Pertemuan02/simpan_line.php b/Pertemuan02/simpan_line.php new file mode 100644 index 0000000..dc4cbe7 --- /dev/null +++ b/Pertemuan02/simpan_line.php @@ -0,0 +1,20 @@ +coordinates); +$status = $data->status; +$panjang = $data->panjang; + +$sql = "INSERT INTO garis (coordinates, status, panjang) +VALUES ('$coords', '$status', '$panjang')"; + +$conn->query($sql); + +echo json_encode([ + "status"=>"ok", + "id"=>$conn->insert_id +]); +?> + diff --git a/Pertemuan02/simpan_polygons.php b/Pertemuan02/simpan_polygons.php new file mode 100644 index 0000000..c983292 --- /dev/null +++ b/Pertemuan02/simpan_polygons.php @@ -0,0 +1,13 @@ +coordinates); + +$sql = "INSERT INTO polygons (coordinates) VALUES ('$coords')"; + +$conn->query($sql); + +echo json_encode(["status"=>"ok"]); +?> \ No newline at end of file diff --git a/Pertemuan02/update_line.php b/Pertemuan02/update_line.php new file mode 100644 index 0000000..ae2cb07 --- /dev/null +++ b/Pertemuan02/update_line.php @@ -0,0 +1,14 @@ +id; +$status = $data->status; +$panjang = $data->panjang; + +$conn->query("UPDATE garis +SET status='$status', panjang='$panjang' +WHERE id=$id"); + +echo json_encode(["status" => "success"]); \ No newline at end of file diff --git a/Pertemuan02/update_polygons.php b/Pertemuan02/update_polygons.php new file mode 100644 index 0000000..4f0a5e8 --- /dev/null +++ b/Pertemuan02/update_polygons.php @@ -0,0 +1,14 @@ +id; +$status = $data->status; +$luas = $data->luas; + +$conn->query("UPDATE polygons +SET status='$status', luas='$luas' +WHERE id=$id"); + +echo json_encode(["status" => "success"]); \ No newline at end of file diff --git a/Pertemuan03/code.txt b/Pertemuan03/code.txt new file mode 100644 index 0000000..725079f --- /dev/null +++ b/Pertemuan03/code.txt @@ -0,0 +1,81 @@ + + + + + + + + + Quick Start - Leaflet + + + + + + + + + + + + + + +
+ + + + + + diff --git a/Pertemuan03/db.php b/Pertemuan03/db.php new file mode 100644 index 0000000..bdb40e9 --- /dev/null +++ b/Pertemuan03/db.php @@ -0,0 +1,12 @@ +connect_error) { + die($conn->connect_error); +} +?> \ No newline at end of file diff --git a/Pertemuan03/delete_line.php b/Pertemuan03/delete_line.php new file mode 100644 index 0000000..1ede172 --- /dev/null +++ b/Pertemuan03/delete_line.php @@ -0,0 +1,11 @@ +id; + +$conn->query("DELETE FROM garis WHERE id=$id"); + +echo json_encode(["status"=>"deleted"]); +?> \ No newline at end of file diff --git a/Pertemuan03/delete_polygons.php b/Pertemuan03/delete_polygons.php new file mode 100644 index 0000000..5c23d65 --- /dev/null +++ b/Pertemuan03/delete_polygons.php @@ -0,0 +1,11 @@ +id; + +$conn->query("DELETE FROM polygons WHERE id=$id"); + +echo json_encode(["status"=>"deleted"]); +?> \ No newline at end of file diff --git a/Pertemuan03/get_line.php b/Pertemuan03/get_line.php new file mode 100644 index 0000000..0e97df1 --- /dev/null +++ b/Pertemuan03/get_line.php @@ -0,0 +1,13 @@ +query("SELECT * FROM garis"); + +$data = []; + +while($row = $result->fetch_assoc()){ + $data[] = $row; +} + +echo json_encode($data); +?> \ No newline at end of file diff --git a/Pertemuan03/get_polygons.php b/Pertemuan03/get_polygons.php new file mode 100644 index 0000000..35b1bb5 --- /dev/null +++ b/Pertemuan03/get_polygons.php @@ -0,0 +1,13 @@ +query("SELECT * FROM polygons"); + +$data = []; + +while($row = $result->fetch_assoc()){ + $data[] = $row; +} + +echo json_encode($data); +?> \ No newline at end of file diff --git a/Pertemuan03/maps.html b/Pertemuan03/maps.html new file mode 100644 index 0000000..16f5834 --- /dev/null +++ b/Pertemuan03/maps.html @@ -0,0 +1,292 @@ + + + + + + + WebGIS - Jalan & Kavling + + + + + + + + +
+ + + + +
+ +
+ + + + \ No newline at end of file diff --git a/Pertemuan03/simpan_line.php b/Pertemuan03/simpan_line.php new file mode 100644 index 0000000..dc4cbe7 --- /dev/null +++ b/Pertemuan03/simpan_line.php @@ -0,0 +1,20 @@ +coordinates); +$status = $data->status; +$panjang = $data->panjang; + +$sql = "INSERT INTO garis (coordinates, status, panjang) +VALUES ('$coords', '$status', '$panjang')"; + +$conn->query($sql); + +echo json_encode([ + "status"=>"ok", + "id"=>$conn->insert_id +]); +?> + diff --git a/Pertemuan03/simpan_polygons.php b/Pertemuan03/simpan_polygons.php new file mode 100644 index 0000000..c983292 --- /dev/null +++ b/Pertemuan03/simpan_polygons.php @@ -0,0 +1,13 @@ +coordinates); + +$sql = "INSERT INTO polygons (coordinates) VALUES ('$coords')"; + +$conn->query($sql); + +echo json_encode(["status"=>"ok"]); +?> \ No newline at end of file diff --git a/Pertemuan03/update_line.php b/Pertemuan03/update_line.php new file mode 100644 index 0000000..ae2cb07 --- /dev/null +++ b/Pertemuan03/update_line.php @@ -0,0 +1,14 @@ +id; +$status = $data->status; +$panjang = $data->panjang; + +$conn->query("UPDATE garis +SET status='$status', panjang='$panjang' +WHERE id=$id"); + +echo json_encode(["status" => "success"]); \ No newline at end of file diff --git a/Pertemuan03/update_polygons.php b/Pertemuan03/update_polygons.php new file mode 100644 index 0000000..4f0a5e8 --- /dev/null +++ b/Pertemuan03/update_polygons.php @@ -0,0 +1,14 @@ +id; +$status = $data->status; +$luas = $data->luas; + +$conn->query("UPDATE polygons +SET status='$status', luas='$luas' +WHERE id=$id"); + +echo json_encode(["status" => "success"]); \ No newline at end of file diff --git a/Pertemuan04/code.txt b/Pertemuan04/code.txt new file mode 100644 index 0000000..725079f --- /dev/null +++ b/Pertemuan04/code.txt @@ -0,0 +1,81 @@ + + + + + + + + + Quick Start - Leaflet + + + + + + + + + + + + + + +
+ + + + + + diff --git a/Pertemuan04/db.php b/Pertemuan04/db.php new file mode 100644 index 0000000..bdb40e9 --- /dev/null +++ b/Pertemuan04/db.php @@ -0,0 +1,12 @@ +connect_error) { + die($conn->connect_error); +} +?> \ No newline at end of file diff --git a/Pertemuan04/delete.php b/Pertemuan04/delete.php new file mode 100644 index 0000000..11a76a1 --- /dev/null +++ b/Pertemuan04/delete.php @@ -0,0 +1,9 @@ +query("DELETE FROM spbu WHERE id=$id"); + +echo json_encode(["status"=>"deleted"]); +?> \ No newline at end of file diff --git a/Pertemuan04/delete_line.php b/Pertemuan04/delete_line.php new file mode 100644 index 0000000..1ede172 --- /dev/null +++ b/Pertemuan04/delete_line.php @@ -0,0 +1,11 @@ +id; + +$conn->query("DELETE FROM garis WHERE id=$id"); + +echo json_encode(["status"=>"deleted"]); +?> \ No newline at end of file diff --git a/Pertemuan04/delete_polygons.php b/Pertemuan04/delete_polygons.php new file mode 100644 index 0000000..5c23d65 --- /dev/null +++ b/Pertemuan04/delete_polygons.php @@ -0,0 +1,11 @@ +id; + +$conn->query("DELETE FROM polygons WHERE id=$id"); + +echo json_encode(["status"=>"deleted"]); +?> \ No newline at end of file diff --git a/Pertemuan04/get.php b/Pertemuan04/get.php new file mode 100644 index 0000000..36a9f6d --- /dev/null +++ b/Pertemuan04/get.php @@ -0,0 +1,13 @@ +query("SELECT * FROM spbu"); + +$data = []; + +while($row = $result->fetch_assoc()){ + $data[] = $row; +} + +echo json_encode($data); +?> \ No newline at end of file diff --git a/Pertemuan04/get_line.php b/Pertemuan04/get_line.php new file mode 100644 index 0000000..0e97df1 --- /dev/null +++ b/Pertemuan04/get_line.php @@ -0,0 +1,13 @@ +query("SELECT * FROM garis"); + +$data = []; + +while($row = $result->fetch_assoc()){ + $data[] = $row; +} + +echo json_encode($data); +?> \ No newline at end of file diff --git a/Pertemuan04/get_polygons.php b/Pertemuan04/get_polygons.php new file mode 100644 index 0000000..35b1bb5 --- /dev/null +++ b/Pertemuan04/get_polygons.php @@ -0,0 +1,13 @@ +query("SELECT * FROM polygons"); + +$data = []; + +while($row = $result->fetch_assoc()){ + $data[] = $row; +} + +echo json_encode($data); +?> \ No newline at end of file diff --git a/Pertemuan04/maps.html b/Pertemuan04/maps.html new file mode 100644 index 0000000..a65f275 --- /dev/null +++ b/Pertemuan04/maps.html @@ -0,0 +1,611 @@ + + + + + + + + + Map SPBU + + + + + + + + + + + +
+ + + + +
+
+ + + diff --git a/Pertemuan04/simpan_line.php b/Pertemuan04/simpan_line.php new file mode 100644 index 0000000..dc4cbe7 --- /dev/null +++ b/Pertemuan04/simpan_line.php @@ -0,0 +1,20 @@ +coordinates); +$status = $data->status; +$panjang = $data->panjang; + +$sql = "INSERT INTO garis (coordinates, status, panjang) +VALUES ('$coords', '$status', '$panjang')"; + +$conn->query($sql); + +echo json_encode([ + "status"=>"ok", + "id"=>$conn->insert_id +]); +?> + diff --git a/Pertemuan04/simpan_polygons.php b/Pertemuan04/simpan_polygons.php new file mode 100644 index 0000000..c983292 --- /dev/null +++ b/Pertemuan04/simpan_polygons.php @@ -0,0 +1,13 @@ +coordinates); + +$sql = "INSERT INTO polygons (coordinates) VALUES ('$coords')"; + +$conn->query($sql); + +echo json_encode(["status"=>"ok"]); +?> \ No newline at end of file diff --git a/Pertemuan04/tambah.php b/Pertemuan04/tambah.php new file mode 100644 index 0000000..48ccd20 --- /dev/null +++ b/Pertemuan04/tambah.php @@ -0,0 +1,12 @@ +nama', '$data->no_hp', '$data->lat', '$data->lng', '$data->buka_24jam', '$data->ramai')"; + +$conn->query($sql); + +echo json_encode(["status"=>"ok"]); +?> \ No newline at end of file diff --git a/Pertemuan04/test.php b/Pertemuan04/test.php new file mode 100644 index 0000000..a9d8138 --- /dev/null +++ b/Pertemuan04/test.php @@ -0,0 +1,22 @@ +"; + +var_dump(mysqli_get_client_info()); + +$conn = mysqli_connect( + "127.0.0.1", + "root", + "", + "spbu_db", + 3307 +); + +if (!$conn) { + die(mysqli_connect_error()); +} + +echo "BERHASIL"; \ No newline at end of file diff --git a/Pertemuan04/update.php b/Pertemuan04/update.php new file mode 100644 index 0000000..e1e3365 --- /dev/null +++ b/Pertemuan04/update.php @@ -0,0 +1,16 @@ +nama', +no_hp='$data->no_hp', +buka_24jam='$data->buka_24jam', +ramai='$data->ramai' +WHERE id=$data->id"; + +$conn->query($sql); + +echo json_encode(["status"=>"updated"]); +?> \ No newline at end of file diff --git a/Pertemuan04/update_line.php b/Pertemuan04/update_line.php new file mode 100644 index 0000000..ae2cb07 --- /dev/null +++ b/Pertemuan04/update_line.php @@ -0,0 +1,14 @@ +id; +$status = $data->status; +$panjang = $data->panjang; + +$conn->query("UPDATE garis +SET status='$status', panjang='$panjang' +WHERE id=$id"); + +echo json_encode(["status" => "success"]); \ No newline at end of file diff --git a/Pertemuan04/update_polygons.php b/Pertemuan04/update_polygons.php new file mode 100644 index 0000000..4f0a5e8 --- /dev/null +++ b/Pertemuan04/update_polygons.php @@ -0,0 +1,14 @@ +id; +$status = $data->status; +$luas = $data->luas; + +$conn->query("UPDATE polygons +SET status='$status', luas='$luas' +WHERE id=$id"); + +echo json_encode(["status" => "success"]); \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..46f7515 --- /dev/null +++ b/index.html @@ -0,0 +1,233 @@ + + + + + + Tugas Pemrograman Web + + + + + + +
+

Mata Kuliah

+

Pemrograman Web

+

Kumpulan tugas praktikum — WebGIS berbasis Leaflet.js

+ + + + +
+ + \ No newline at end of file diff --git a/spbu_db.sql b/spbu_db.sql new file mode 100644 index 0000000..18895d6 --- /dev/null +++ b/spbu_db.sql @@ -0,0 +1,141 @@ +-- phpMyAdmin SQL Dump +-- version 5.2.1 +-- https://www.phpmyadmin.net/ +-- +-- Host: 127.0.0.1:3307 +-- Waktu pembuatan: 11 Jun 2026 pada 15.19 +-- Versi server: 10.4.32-MariaDB +-- Versi PHP: 8.2.12 + +SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; +START TRANSACTION; +SET time_zone = "+00:00"; + + +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; +/*!40101 SET NAMES utf8mb4 */; + +-- +-- Database: `spbu_db` +-- + +-- -------------------------------------------------------- + +-- +-- Struktur dari tabel `garis` +-- + +CREATE TABLE `garis` ( + `id` int(11) NOT NULL, + `coordinates` text DEFAULT NULL, + `status` varchar(50) DEFAULT NULL, + `panjang` double DEFAULT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; + +-- +-- Dumping data untuk tabel `garis` +-- + +INSERT INTO `garis` (`id`, `coordinates`, `status`, `panjang`) VALUES +(4, '[[-0.042614932899552066,109.33897376060487],[-0.042057033576748226,109.33959603309631],[-0.042057033576748226,109.33959603309631]]', 'Kabupaten', 92.93), +(5, '[[-0.015707015794464818,109.36280250549318],[-0.024976729555612715,109.36254501342775],[-0.02901077146547321,109.36160087585449],[-0.0321006758108682,109.36005592346193],[-0.03424644266299124,109.35670852661133],[-0.03716468550421756,109.3517303466797],[-0.04128455758476972,109.34580802917482],[-0.042057033576748226,109.34494972229005],[-0.04626273606199181,109.34237480163576],[-0.04626273606199181,109.34237480163576]]', 'Provinsi', 4438.68), +(6, '[[-0.03716468550421756,109.33499336242677],[-0.034332273336096036,109.3383836746216]]', '', 0); + +-- -------------------------------------------------------- + +-- +-- Struktur dari tabel `polygons` +-- + +CREATE TABLE `polygons` ( + `id` int(11) NOT NULL, + `coordinates` text DEFAULT NULL, + `status` varchar(50) DEFAULT NULL, + `luas` double DEFAULT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; + +-- +-- Dumping data untuk tabel `polygons` +-- + +INSERT INTO `polygons` (`id`, `coordinates`, `status`, `luas`) VALUES +(1, '[[-0.04107954850956947,109.33617889881135],[-0.04164247166797875,109.3359696865082],[-0.04186764093026616,109.33652758598329],[-0.04134224598402135,109.33674216270448],[-0.04131007894636634,109.33674216270448]]', 'HGB', 4522.78), +(2, '{\"type\":\"Polygon\",\"coordinates\":[[[109.33680653572083,-0.04155339471819016],[109.33666706085206,-0.04182145336393277],[109.33696746826173,-0.04200373324252326],[109.33707475662233,-0.0417463969431915]]]}', NULL, NULL), +(3, '[[-0.04349469720803964,109.34812545776369],[-0.04461049582840643,109.34726715087892],[-0.04619836306659037,109.34941291809082],[-0.04510402213589856,109.3502712249756]]', NULL, NULL); + +-- -------------------------------------------------------- + +-- +-- Struktur dari tabel `spbu` +-- + +CREATE TABLE `spbu` ( + `id` int(11) NOT NULL, + `nama` varchar(100) DEFAULT NULL, + `no_hp` varchar(20) DEFAULT NULL, + `buka_24jam` varchar(10) DEFAULT NULL, + `ramai` varchar(10) DEFAULT NULL, + `lat` double DEFAULT NULL, + `lng` double DEFAULT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; + +-- +-- Dumping data untuk tabel `spbu` +-- + +INSERT INTO `spbu` (`id`, `nama`, `no_hp`, `buka_24jam`, `ramai`, `lat`, `lng`) VALUES +(1, 'SPBU 1', '001', 'Tidak', 'Ya', -0.044906177737876, 109.3367421627), +(2, 'SPBU Imam Bonjol', '002', 'Ya', 'Ya', -0.046984846560675, 109.35455739498), +(3, 'SPBU Paris 1', '003', 'Ya', 'Ya', -0.055442708104727, 109.36264157295), +(4, 'SPBU Ahmad Yani', '004', 'Tidak', 'Ya', -0.064348204151511, 109.35621500015); + +-- +-- Indexes for dumped tables +-- + +-- +-- Indeks untuk tabel `garis` +-- +ALTER TABLE `garis` + ADD PRIMARY KEY (`id`); + +-- +-- Indeks untuk tabel `polygons` +-- +ALTER TABLE `polygons` + ADD PRIMARY KEY (`id`); + +-- +-- Indeks untuk tabel `spbu` +-- +ALTER TABLE `spbu` + ADD PRIMARY KEY (`id`); + +-- +-- AUTO_INCREMENT untuk tabel yang dibuang +-- + +-- +-- AUTO_INCREMENT untuk tabel `garis` +-- +ALTER TABLE `garis` + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; + +-- +-- AUTO_INCREMENT untuk tabel `polygons` +-- +ALTER TABLE `polygons` + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; + +-- +-- AUTO_INCREMENT untuk tabel `spbu` +-- +ALTER TABLE `spbu` + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; +COMMIT; + +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;