aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2012-11-10 16:14:17 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2012-11-10 16:14:17 +1300
commitf0d4f9de581b1f579608cbc3f5165c0b14317993 (patch)
tree047c929db923ab2c38862c4a826fd2a5e8d7fd4a
parent965126923a36abfff07d4770c68eafca6b253a74 (diff)
downloadtrackermap-server-f0d4f9de581b1f579608cbc3f5165c0b14317993.tar.gz
trackermap-server-f0d4f9de581b1f579608cbc3f5165c0b14317993.tar.bz2
trackermap-server-f0d4f9de581b1f579608cbc3f5165c0b14317993.zip
Added reverse geocoding
-rw-r--r--opengts.cfg7
1 files changed, 5 insertions, 2 deletions
diff --git a/opengts.cfg b/opengts.cfg
index b5f00aafd..dcfae9c19 100644
--- a/opengts.cfg
+++ b/opengts.cfg
@@ -37,8 +37,8 @@
START TRANSACTION;
UPDATE Device SET lastValidLatitude = :latitude, lastValidLongitude = :longitude, lastGPSTimestamp = UNIX_TIMESTAMP(:time), lastUpdateTime = UNIX_TIMESTAMP(NOW()) WHERE imeiNumber = :device_id;
SELECT @accountID := accountID, @deviceID := deviceID FROM Device WHERE imeiNumber = :device_id;
- INSERT INTO EventData (accountID, deviceID, timestamp, statusCode, latitude, longitude, speedKPH, heading, altitude, rawData, creationTime)
- VALUES (@accountID, @deviceID, UNIX_TIMESTAMP(:time), 0, :latitude, :longitude, :speed, :course, :altitude, '', UNIX_TIMESTAMP(NOW()));
+ INSERT INTO EventData (accountID, deviceID, timestamp, statusCode, latitude, longitude, speedKPH, heading, altitude, rawData, creationTime, address)
+ VALUES (@accountID, @deviceID, UNIX_TIMESTAMP(:time), 0, :latitude, :longitude, :speed, :course, :altitude, '', UNIX_TIMESTAMP(NOW()), :address);
COMMIT;
</entry>
@@ -46,6 +46,9 @@
<entry key="http.enable">true</entry>
<entry key="http.port">8082</entry>
+ <!-- Geocoder options -->
+ <entry key="geocoder.enable">true</entry>
+
<!-- Logging options -->
<entry key="logger.enable">true</entry>
<entry key="logger.file">[LOG]</entry>