[PATCH] worldmap-save: don't use an API key
Lubomir I. Ivanov
neolit123 at gmail.com
Sun Jul 30 16:17:34 PDT 2017
From: "Lubomir I. Ivanov" <neolit123 at gmail.com>
The Google Maps API V3 *does* require a key if one needs to generate
a lot of payed trafic and monitor said trafic, otherwise it doesn't:
https://stackoverflow.com/a/8785844
Signed-off-by: Lubomir I. Ivanov <neolit123 at gmail.com>
---
please, ignore this patch if we want to monitor the usage of
the "export -> world map" feature with an associated google account.
we cannot do that without an API key.
if so, the current API key seems obsolete and a new one
needs to be generated. this tends to happen for no apparent reason.
---
core/worldmap-save.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/core/worldmap-save.c b/core/worldmap-save.c
index a48e376..3d14812 100644
--- a/core/worldmap-save.c
+++ b/core/worldmap-save.c
@@ -19,7 +19,7 @@
char *getGoogleApi()
{
/* google maps api auth*/
- return "https://maps.googleapis.com/maps/api/js?key=AIzaSyDzo9PWsqYDDSddVswg_13rpD9oH_dLuoQ";
+ return "https://maps.googleapis.com/maps/api/js?";
}
void writeMarkers(struct membuffer *b, const bool selected_only)
--
1.7.11.msysgit.0
More information about the subsurface
mailing list