summaryrefslogtreecommitdiff
path: root/altosuilib/AltosUIVersion.java.in
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-05-28 00:42:24 -0700
committerKeith Packard <keithp@keithp.com>2014-05-28 00:42:24 -0700
commit3773e89c47d356c4df58edc5725c33bca89b9605 (patch)
treecd5dfe6f87cad5b5b58d6949e5776859d7aff7ab /altosuilib/AltosUIVersion.java.in
parente6cfa25702b3dc1d492c5f1a4d0b4ba4831d30bd (diff)
altosuilib: Add google maps API key, configured with -with-google-key
This places the actual key outside of the repository, allowing the user to configure the name of the file containing the key. By default, this pulls the key from $HOME/altusmetrumllc/google-maps-api-key. With the key present, there are no longer any rate limits to loading map data. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosuilib/AltosUIVersion.java.in')
-rw-r--r--altosuilib/AltosUIVersion.java.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/altosuilib/AltosUIVersion.java.in b/altosuilib/AltosUIVersion.java.in
index 3f629560..0edb5c04 100644
--- a/altosuilib/AltosUIVersion.java.in
+++ b/altosuilib/AltosUIVersion.java.in
@@ -19,4 +19,10 @@ package org.altusmetrum.altosuilib_2;
public class AltosUIVersion {
public final static String version = "@VERSION@";
+
+ public final static String google_maps_api_key = @GOOGLEKEY@;
+
+ static boolean has_google_maps_api_key() {
+ return google_maps_api_key != null && google_maps_api_key.length() > 1;
+ }
}