From f59f2ad52688504813a739a2b667c04c2703a47a Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Sat, 17 Jun 2017 15:00:14 +0200 Subject: use osm MapPreview --- src/main/java/de/pixart/messenger/utils/GeoHelper.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main/java/de/pixart') diff --git a/src/main/java/de/pixart/messenger/utils/GeoHelper.java b/src/main/java/de/pixart/messenger/utils/GeoHelper.java index 8f263c593..f4fd8e22a 100644 --- a/src/main/java/de/pixart/messenger/utils/GeoHelper.java +++ b/src/main/java/de/pixart/messenger/utils/GeoHelper.java @@ -9,6 +9,7 @@ import java.util.ArrayList; import java.util.regex.Matcher; import java.util.regex.Pattern; +import de.pixart.messenger.Config; import de.pixart.messenger.entities.Contact; import de.pixart.messenger.entities.Conversation; import de.pixart.messenger.entities.Message; @@ -39,7 +40,7 @@ public class GeoHelper { } catch (NumberFormatException nfe) { return null; } - return "https://maps.google.com/maps/api/staticmap?center=" + latitude + "," + longitude + "&size=500x500&scale=2&format=jpg&markers=" + latitude + "," + longitude + "&sensor=false"; + return "https://xmpp.pix-art.de/staticmap/staticmap.php?center=" + latitude + "," + longitude + "&size=500x500&markers=" + latitude + "," + longitude + "&zoom= " + Config.DEFAULT_ZOOM; } public static ArrayList createGeoIntentsFromMessage(Message message) { -- cgit v1.2.3