Skip to content

Sample project realtime GPS tracking menggunakan PHP + MySQL Database dan jQuery (update data secara realtime)

Notifications You must be signed in to change notification settings

deawx/Gps-Realtime-Tracking-Database

Repository files navigation

Realtime GPS Tracking

Sample project Realtime GPS Tracking menggunakan PHP + MySQL Database dan jQuery (update data secara realtime). Project ini menggunakan lib map yang telah dimodifikasi oleh PubNub.

How to install

Prerequisites

Store master-app in localhost

Download this repo and store, if you're using windows and XAMPP installed, path are available in

C:\xampp\htdocs\

Put master-app folder in there, like

C:\xampp\htdocs\realtime-gps-tracking\

Setup database

Create database named realtime-gps-tracking. Sample db are available in this directory, just import it.

/sample db/realtime-gps-tracking.sql

Database connection string

Create database connection string, file already koneksi.php.

<?php
    $host="localhost";
    $username="root";
    $passwd="";
    $db_name="realtime-gps-tracking";
    $connection = mysqli_connect($host,$username,$passwd,$db_name) or die("Error " . mysqli_error($connection));
?>

PubNub key

Put and change that demo key to your PubNub key.

var pubnub = new PubNub({
        publishKey: 'demo', //put your PubNub publish key
        subscribeKey: 'demo' //put your PubNub subscribe key
});

Here we go

Map are showing

Blue marker getting data from db. Map

Input Coordinat

Try to input coordinat. Input coordinat

Track

Blue marker will moved without refreshing the page, gotcha! track! :D Tracking

License

CC0

GNU General Public License v3.0

About

Sample project realtime GPS tracking menggunakan PHP + MySQL Database dan jQuery (update data secara realtime)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages