Usually maintenance depends on who was there first. If the rail line was there first and then a community was built and spread on both sides of the track and they have to make a crossing, the maintenance would probably have to be paid by the municipality because they came afterward.
On December 11th, 2007. See this statement in context.