aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2017-06-17 15:00:14 +0200
committerChristian Schneppe <christian@pix-art.de>2017-06-17 15:05:57 +0200
commitf59f2ad52688504813a739a2b667c04c2703a47a (patch)
tree0c7f758c9e9c86007005d9bc2020588dab956031 /src/main/java/de/pixart
parent3eeeee523b5f3959b23349acd2f39028f6a498fa (diff)
use osm MapPreview
Diffstat (limited to 'src/main/java/de/pixart')
-rw-r--r--src/main/java/de/pixart/messenger/utils/GeoHelper.java3
1 files changed, 2 insertions, 1 deletions
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<Intent> createGeoIntentsFromMessage(Message message) {