11# phpGPS
2+
23A php based webservice for GPS tracking with Google Maps integration
4+
35========
46
57www.mikelduke.com
68
7-
89*******************************************************************************
910A php based webservice for GPS tracking with Google Maps integration
1011
@@ -17,8 +18,8 @@ https://developers.google.com/maps/documentation/embed/get-api-key
1718
1819*******************************************************************************
1920
20-
2121## Features
22+
2223* Stores gps coordinates in a MySQL database, generates xml, and draws markers on to a Google Maps map.
2324* Draw Paths on the map using the gps entries
2425* Paths can be colored
@@ -32,34 +33,58 @@ https://developers.google.com/maps/documentation/embed/get-api-key
3233* To embed on a webpage:
3334``` <iframe src="view.php" height="520" width="520" seamless></iframe> ```
3435
35- Example Update URL:
36- http://yoursite.com/phpGPS/addGpsEntry.php?key=1234&newEntry=Y&gps_devicename=DeviceID&gps_type_id=1&gps_path_id=1&gps_date_dt=11-13-2014&gps_date_time=22.31&gps_status=&gps_latitude=32&gps_longitude=-96&gps_altitude=160.0&gps_accuracy=57&gps_name=test%20spot&gps_comment=test%20comment&gps_address1=address%201&gps_address2=address%202&gps_address3=address%203&gps_city=city&gps_zipcode=567567&gps_state=state&gps_country=country
36+ Example Update URL:
37+ ` http://yoursite.com/phpGPS/addGpsEntry.php?key=1234&newEntry=Y&gps_devicename=DeviceID&gps_type_id=1&gps_path_id=1&gps_date_dt=11-13-2014&gps_date_time=22.31&gps_status=&gps_latitude=32&gps_longitude=-96&gps_altitude=160.0&gps_accuracy=57&gps_name=test%20spot&gps_comment=test%20comment&gps_address1=address%201&gps_address2=address%202&gps_address3=address%203&gps_city=city&gps_zipcode=567567&gps_state=state&gps_country=country `
38+
39+ *******************************************************************************
3740
3841## Important Pages
42+
3943* phpGPS_Settings.php - Settings File
4044* generateXML.php - Generates xml for use by google maps
4145* view.php - Displays the map with markers, embeddedable in an iframe
4246
43-
4447## Requirements
48+
4549* php 5+
4650* MySQL
4751* Webserver
4852
53+ *******************************************************************************
4954
5055## Install Instructions
56+
51571 . Extract php files to webhost
52581 . Create Database for use by phpGPS
53- 1 . Enter database settings and other config in phpGPS_Settings.php
59+ 1 . Enter database settings and other config in phpGPS_Settings.php or set using environment variables
54601 . Open phpGPS/install/install.php in browser to create the necessary tables
55611 . Delete the install folder on webhost
56621 . Login as user admin/admin and change the default admin pass
57631 . Set up owners, devices, paths, etc as desired and start creating markers
5864
59- # Demo VM
65+ ### Demo VM
66+
6067Requires Vagrant + VM Provider like VirtualBox + Google Maps API Key
68+
6169* Clone this repo and make sure .sh files use unix line endings LF
6270* Set API Key in phpGPS_Settings.php
6371* Run ``` vagrant up ```
64- * Connect at http://localhost
72+ * Connect at ` http://localhost `
73+ * Login with user/password: admin/admin
74+
75+ *******************************************************************************
76+
77+ ## Development
78+
79+ Dockerfile and Docker-compose configs are included for easy setup on Linux/Mac. Windows + Docker is not as seamless.
80+
81+ Use ` docker-compose up ` to automatically load a basic mysql server and an apache+php server.
82+ The application is mounted as a volume to allow for modifying php scripts without restarts.
83+
84+ * Install docker and docker-compose if not already present ` sudo apt install docker docker-compose `
85+ * Clone this repo, ensure Unix line endings are used
86+ * Set api key in shell ` export DEV_KEY=1234567890 `
87+ * Launch with ` docker-compose up `
88+ * Connect at ` http://localhost:8080 `
6589* Login with user/password: admin/admin
90+ * Control+C or ` docker-compose down ` to stop
0 commit comments