From 8a4b2f56957b27e42995f3f63cb4b601a4b87dbf Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Sat, 27 Jul 2013 17:24:45 +0300 Subject: [PATCH] Add OSM links to location updates --- src/ro/ieval/fonbot/Heavy.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ro/ieval/fonbot/Heavy.java b/src/ro/ieval/fonbot/Heavy.java index 4e064a7..c06234d 100644 --- a/src/ro/ieval/fonbot/Heavy.java +++ b/src/ro/ieval/fonbot/Heavy.java @@ -168,6 +168,12 @@ final class Heavy { sb.append(toNonNull(context.getString(at))); sb.append(" "); sb.append(locationDate.toString()); + sb.append(". "); + + sb.append("http://openstreetmap.org/?zoom=15&mlat="); + sb.append(loc.getLatitude()); + sb.append("&mlon="); + sb.append(loc.getLongitude()); Utils.sendMessage(toNonNull(context), toNonNull(replyTo), toNonNull(sb.toString())); } -- 2.39.2