This commit is contained in:
Vitaliy 2020-05-06 14:24:39 +03:00
parent 561b8bce94
commit 9d5dc7e4d3

View file

@ -105,6 +105,8 @@ public class ExternalApiHelper {
public static final String PARAM_CATEGORY = "category";
public static final String PARAM_LAT = "lat";
public static final String PARAM_LON = "lon";
public static final String PARAM_MAP_LAT = "map_lat";
public static final String PARAM_MAP_LON = "map_lon";
public static final String PARAM_COLOR = "color";
public static final String PARAM_VISIBLE = "visible";
@ -445,6 +447,12 @@ public class ExternalApiHelper {
result.putExtra(PARAM_LON, location.getLongitude());
}
LatLon mapLocation = mapActivity.getMapLocation();
if (location != null) {
result.putExtra(PARAM_MAP_LAT, mapLocation.getLatitude());
result.putExtra(PARAM_MAP_LON, mapLocation.getLongitude());
}
final RoutingHelper routingHelper = app.getRoutingHelper();
if (routingHelper.isRouteCalculated()) {
int time = routingHelper.getLeftTime();