make this public static as well

Would like the code for this to be publicly accessible as getWayName() already is.