aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/api/resource
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-07-03 16:02:49 -0700
committerAnton Tananaev <anton@traccar.org>2022-07-03 16:02:49 -0700
commitd25e8a163786c78098c57bb78cf44746c1fe2364 (patch)
tree8b17e377fc7cabc2a368e1b99acebbe686b2df57 /src/main/java/org/traccar/api/resource
parentc49bda5396847731f4eea8f6e3f0e0dd6811ae6f (diff)
downloadtrackermap-server-d25e8a163786c78098c57bb78cf44746c1fe2364.tar.gz
trackermap-server-d25e8a163786c78098c57bb78cf44746c1fe2364.tar.bz2
trackermap-server-d25e8a163786c78098c57bb78cf44746c1fe2364.zip
Geocoder enabled server flag
Diffstat (limited to 'src/main/java/org/traccar/api/resource')
-rw-r--r--src/main/java/org/traccar/api/resource/ServerResource.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/api/resource/ServerResource.java b/src/main/java/org/traccar/api/resource/ServerResource.java
index 071b7ae8e..3e6792f5b 100644
--- a/src/main/java/org/traccar/api/resource/ServerResource.java
+++ b/src/main/java/org/traccar/api/resource/ServerResource.java
@@ -63,6 +63,7 @@ public class ServerResource extends BaseResource {
public Server get() throws StorageException {
Server server = storage.getObject(Server.class, new Request(new Columns.All()));
server.setEmailEnabled(mailManager.getEmailEnabled());
+ server.setGeocoderEnabled(geocoder != null);
User user = permissionsService.getUser(getUserId());
if (user != null && user.getAdministrator()) {
server.setStorageSpace(Log.getStorageSpace());