You asked:

what is the ldc id of edinburgh haymarket station edinburgh

Sorry, I don't yet have an answer to that question.