diff options
author | Keith Packard <keithp@keithp.com> | 2014-05-28 00:42:24 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2014-05-28 00:42:24 -0700 |
commit | 3773e89c47d356c4df58edc5725c33bca89b9605 (patch) | |
tree | cd5dfe6f87cad5b5b58d6949e5776859d7aff7ab /altosuilib/AltosUIVersion.java.in | |
parent | e6cfa25702b3dc1d492c5f1a4d0b4ba4831d30bd (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.in | 6 |
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; + } } |