﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
22799	[WIP patch] Smarter DistributeAction action for single node	gaben	team	"==== Problem

Imagine the following scenario:

1. There is a way with a few nodes (`o` is a node):
{{{
o---------o---o---o
1         2   3   4
}}}
2. Let's say the second node should be aligned relative to the first and third nodes:
{{{
o------o------o---o
1      2      3   4
}}}

Currently the only way for doing by selecting nodes 1, 2 and 3, then using the Distribute Nodes Action.



==== Proposal
With the new method (source code calls it algorithm), only the second node needs to be selected JOSM will figure out if possible, then act accordingly.

The patch is in testing, looks good for now. Probably I'll need help to make it unit testable.

==== Please provide any additional information below. Attach a screenshot if possible.
I may already created a ticket for it a few years back, couldn't find it now.

{{{
URL:https://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2023-03-05 17:42:37 +0100 (Sun, 05 Mar 2023)
Build-Date:2023-03-06 02:30:59
Revision:18682
Relative:URL: ^/trunk
}}}"	enhancement	new	normal		Core			distribute nodes	
