1
0
mirror of https://github.com/mitb-archive/filebot synced 2025-03-09 13:59:49 -04:00

Use -Dcloud.google.geocode=apikey for custom Google Cloud API key

This commit is contained in:
Reinhard Pointner 2019-02-26 12:18:53 +07:00
parent 7e67b93aaf
commit 1cf72f24e7

View File

@ -141,7 +141,7 @@ public class ImageMetadata {
}
protected String getGeocodeKey() {
return Optional.ofNullable(System.getenv("GEOCODE_APIKEY")).orElse(getApiKey("google.geocode"));
return System.getProperty("cloud.google.geocode", getApiKey("google.geocode"));
}
public enum AddressComponent {