The Doppler effect can be observed at an arbitrarily close distance
Let’s consider the case, when beam of light moves at normal to paths of source/emitter. This will be the Transverse Doppler Effect, that reflects rate of relatively moving clock.
Amount of redshift/blueshift will depend on angles of emission/reception.
Light emitted at points of closest approach. If photon approaches the observer at right angle, the source must emit the photon at oblique angle. Photon will be redshifted. Observer measures dilation of relatively moving clock.
Light received at points of closest approach. If photon was emitted at right angle, it will approach observer at oblique angle. The observer will see blueshift of frequency. Observer may explain, that apparent position of source is different from actual due to aberration of light. He will also explain blueshift as dilation of his own clock, since he moves himself in emitters frame. Since his own clock dilates, everything around him appears running faster, so opposite clock appears as ticking faster.
Light is neither emitted nor received at points of closest approach, or has been emitted and received at equal angles. In this case there will be no Doppler Shift, i.e. no dilation at all.
Wikipedia: The transverse Doppler effect can be analysed from a reference frame where the source and receiver have equal and opposite velocities. In such a frame the ratio of the Lorentz factors is always 1, and all Doppler shifts appear to be classical in origin. In general, the observed frequency shift is an invariant, but the relative contributions of time dilation and the Doppler effect are frame dependent.
Transverse Doppler effect in Wikipedia: https://en.wikipedia.org/wiki/Relativistic_Doppler_effect
Thus, resolving tasks of this sort it is necessary to consider angles of emission/reception. Angles of emission/reception are tied with relativistic aberration formula.
$$ \cos {\theta_0} = \frac {\cos {\theta_s} - \frac v c} {1- \frac v c \cos \theta_s} $$
Imagine two observers – Tom and Ben that move relatively to each other. Tom has a laser pointer and Ben has a telescope.
If Tom keeps laser pointer at right angle, Ben must turn his telescope at obligue angle $\alpha = \arcsin v/c$. Otherwise rays of light would not be able to pass through the telescope due to aberration of light. Ben will see blueshift (Tom’s clock is ticking faster)
If Ben keeps his telescope at right angle, Tom must turn his laser pointer backward at the same angle $\alpha$. In this case Ben will see redshift of frequency, i.e. Tom’s clock dilates.
Ben and Tom must always respect each other and not to play with reference frames as if they are their own property. They must agree, who moves and who is at rest and always keep in mind, at which angle turn telescope and laser pointer, if they want to see each other.
Please look for Transverse Doppler Effect: http://mathpages.com/home/kmath587/kmath587.htm
https://www.youtube.com/watch?v=hnphFr2Iai4 https://www.youtube.com/watch?v=FQKp3FU8vR8
EDIT: The task says "Calculate the wavelength of the light measured by an observer standing on the station platform at the exact moment at which the train passes".
Apparently they say that source emitted dispersed light and the light was received at points of closest approach, i.e observer at platform sees that radiation blueshifts, i.e. clock at train is ticking faster. Thus, your answer is correct.
But, observer had to look (or turn telescope/spectrometer) at oblique angle in accordance with relativistic aberration angle.