move markers from starting point to road segments

This commit is contained in:
MadWasp79 2019-12-15 12:49:36 +02:00
parent a21d25d5e6
commit 3193c249ac
2 changed files with 5 additions and 9 deletions

View file

@ -192,7 +192,11 @@ public class GeocodingUtilities {
} }
Collections.sort(lst, GeocodingUtilities.DISTANCE_COMPARATOR); Collections.sort(lst, GeocodingUtilities.DISTANCE_COMPARATOR);
if (lst.size() > 0) { if (lst.size() > 0) {
result.put(lst.get(0).point.getRoad(), point); Location ll = new Location("");
ll.setLatitude(lst.get(0).connectionPoint.getLatitude());
ll.setLongitude(lst.get(0).connectionPoint.getLongitude());
result.put(lst.get(0).point.getRoad(), ll);
// result.put(lst.get(0).point.getRoad(), point);
if (progressCallbackWeakRef.get() != null) { if (progressCallbackWeakRef.get() != null) {
int progress = (int) (i * 100.0/batchSize); int progress = (int) (i * 100.0/batchSize);
if (progress > prevProgress) { if (progress > prevProgress) {

View file

@ -1,8 +0,0 @@
package net.osmand.plus.avoidroads;
import net.osmand.plus.base.BaseOsmAndDialogFragment;
public class AvoidRoadsDialog extends BaseOsmAndDialogFragment {
}