On Mon, Nov 16, 2009 at 9:57 PM, Anthony <[email protected]> wrote:
> On Mon, Nov 16, 2009 at 9:45 PM, Richard Weait <[email protected]> wrote:
>> What if the numbers are not sequential along the length of the way?
>
> So a road goes 1-99, then 199 to 101?  I guess the best solution would
> be to split the way.

Actually, running a few examples, I just don't see the problem.  1
(right), 2 (left), 99 (right), 100 (left), 200 (right) 199 (left), 101
(left), 100 (right), 201 (right), 202 (left), 299 (right), 300
(right)...  It's unambiguous.  If your number isn't directly on a
node, you find the two closest numbers that the answer is between.
Then you interpolate from the smaller to the larger of those two
numbers, and forward is the direction in which the numbers go up.

Anthony

_______________________________________________
Imports mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/imports

Reply via email to