Eikonal equations on ramified spaces