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