This just isn't OK.
Irrespective of what happened in these incidents (given that we know nothing but what's in the news) there are plenty of places in Edinburgh where we can regularly see vehicles driven toward crossing pedestrians without significant slowing... in the assumption that the pedestrian knows they are (supposedly) in the wrong and will consequently get out the way. Commonly we see more aggressive variations of this too - vehicles driven at pedestrians with a blaring horn as if to say "you shouldn't be there and I'll hit you if you don't move".
I saw one at Haymarket recently where the beeping was over a prolonged period - say 5 seconds (in these terms a long time) - with the vehicle getting closer at some speed - and the pedestrian only noticing at the very last minute. A life-saving leap out of the way followed. The driver showed no sign of slowing at any point at all - and fundamentally the pedestrian would have died (or been seriously injured) if they hadn't jumped.
What kind of a place is this!?!?!? Is this the kind of place we want to live!?!?!?
Many cities in the world outside the UK this doesn't happen. Nothing like this happens. In many cities you can walk up a road and people will just wait for you. I did it in Rome - busy and chaotic but people drive around pedestrians or just wait patiently. It was utterly amazing. In Amsterdam you might not even notice that someone is waiting for you. Even in difficult places people certainly won't drive as if to punish you or to educate you in the error of your ways by almost killing you...
So forget other 'indicators' of success or failure on transport. There's one simple indicator which I think indicates a civilised city... pedestrians don't EVER get driven at in this way by people in vehicles which can kill them. EVEN IF they are doing something stupid, illegal, or inconsiderate. Perhaps people will get shouted at, or beeped at, but NOT driven at. Any city where this happens is fundamentally failing to make a civilised environment for living in.