move markers from starting point to road segments
This commit is contained in:
parent
a21d25d5e6
commit
3193c249ac
2 changed files with 5 additions and 9 deletions
|
@ -192,7 +192,11 @@ public class GeocodingUtilities {
|
|||
}
|
||||
Collections.sort(lst, GeocodingUtilities.DISTANCE_COMPARATOR);
|
||||
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) {
|
||||
int progress = (int) (i * 100.0/batchSize);
|
||||
if (progress > prevProgress) {
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
package net.osmand.plus.avoidroads;
|
||||
|
||||
import net.osmand.plus.base.BaseOsmAndDialogFragment;
|
||||
|
||||
public class AvoidRoadsDialog extends BaseOsmAndDialogFragment {
|
||||
|
||||
|
||||
}
|
Loading…
Reference in a new issue