Determining position whereby the position solution is constrained to lie upon a particular curve or surface, e.g. for locomotives on railway tracks