A set of tools used with the Torque app for Android to store OBD2 data in MySQL, view GPS data from Torque on a map in real time using the Google Maps JavaScript API, plot OBD2 data in time series charts, and export the data to CSV or JSON.
MIT License
285
stars
120
forks
source link
Maps not displaying without Google Maps API Key #41
I can confirm this. For the sake of source code improvements the KEY should not be stored in session.php, but in the creds.php instead, because that file is ignored.
I opened a PR #43
Need to add a variable to include your google maps API key for the map to work now. (At least for me). I added to line 109 of session.php
..... src="https://maps.googleapis.com/maps/api/js?key=GOOGLEMAPSAPIKEY">
I removed the sensor parameter as it looks like it's deprecated.
I got my key from here
https://developers.google.com/maps/documentation/javascript/
You will need a google id to get the key, then copy where GOOGLEMAPSAPIKEY is above.