From 6b78bf7562c387ab597233ef560be045afaa4a7b Mon Sep 17 00:00:00 2001 From: Denis Date: Sat, 24 Aug 2013 22:07:45 +0400 Subject: [PATCH] osmodroid routeto command --- OsmAnd/src/com/OsMoDroid/IRemoteOsMoDroidListener.aidl | 1 + OsmAnd/src/net/osmand/plus/osmodroid/OsMoDroidPlugin.java | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/OsmAnd/src/com/OsMoDroid/IRemoteOsMoDroidListener.aidl b/OsmAnd/src/com/OsMoDroid/IRemoteOsMoDroidListener.aidl index ccfee0459d..36ae7dd686 100644 --- a/OsmAnd/src/com/OsMoDroid/IRemoteOsMoDroidListener.aidl +++ b/OsmAnd/src/com/OsMoDroid/IRemoteOsMoDroidListener.aidl @@ -4,6 +4,7 @@ interface IRemoteOsMoDroidListener { void channelUpdated(); void channelsListUpdated(); + void routeTo(float Lat, float Lon); } \ No newline at end of file diff --git a/OsmAnd/src/net/osmand/plus/osmodroid/OsMoDroidPlugin.java b/OsmAnd/src/net/osmand/plus/osmodroid/OsMoDroidPlugin.java index fe66b522a9..09cb59f35b 100644 --- a/OsmAnd/src/net/osmand/plus/osmodroid/OsMoDroidPlugin.java +++ b/OsmAnd/src/net/osmand/plus/osmodroid/OsMoDroidPlugin.java @@ -72,6 +72,12 @@ public class OsMoDroidPlugin extends OsmandPlugin implements MonitoringInfoContr } } + @Override + public void routeTo(float Lat, float Lon) throws RemoteException { + reRouteTo(new LatLon(Lat, Lon)); + + } + }; @Override