A senior police officer has warned it may become "physically impossible" for police to attend some emergencies with ambulance crews — as new figures show paramedics will not attend thousands of addresses in Scotland without such back-up.

Data released under Freedom of Information rules revealed there are 4,412 addresses that have been "red flagged" by the Scottish Ambulance Service — including 1,122 properties in the Lothians with an EH postcode.

There are also 885 addresses in the Greater Glasgow area and 532 in Ayrshire where paramedics will not attend unless accompanied by police officers.

However, one leading officer is now warning Police Scotland may not always be able to take part in such call-outs.

Brian Jones, vice chair of the Scottish Police Federation (SPF), spoke out as it emerged the number of "red flagged" properties had increased from a reported total of about 2,500 addresses in 2018.

Read more: 'Code red' patient waited longer than six hours for ambulance in Scotland

These can be areas where there have been violent incidents in the past, leaving paramedics unable to go in - even in a medical emergency - without police support present.

Mr Jones said: "We fully understand why ambulance crews won't go to places if they think they're going to be attacked.

"But the police are the service of last resort - we have no choice in the matter.

"In the near future there will come a point when a decision will have to be made about what we can't go to, because it will be physically impossible to go to everything.

"These incidents just show how society is changing - and it is just another thing which is placing a demand on resource policing when things are getting tighter."

Read more: Scotland to have electric ambulance by end of year in UK first 

The EH1 postcode, which covers the centre of Edinburgh, was the postcode area with the most problem addresses, with 173 homes or businesses lists, according to the data, released in response to a Freedom of Information request from justice and social affairs publication 1919 magazine.

In the KA1 area, which covers much of Kilmarnock, there are 134 red flagged properties, with another 125 in the EH4 zone in the north of Edinburgh. While PA1, which covers parts of Paisley, has 112, and there are a further 105 properties in the EH5 zone, which is also in the north of Edinburgh.

Edinburgh MP Ian Murray said it was "deeply troubling" that so many of the addresses were in the capital.

The Labour MP for Edinburgh South said: "Ambulance crews on the front line are trying to save lives and their own safety should never be put at risk.

"It's deeply troubling that so many addresses in Edinburgh have been red flagged, but it is of course vital that paramedics are protected."

Read more: Hoax calls waste 1,700 hours of ambulance time

Scottish Conservative MSP for the Lothians Miles Briggs said: "Paramedics have a hard enough job without being faced with the threat of violence.

"It's depressing to see so many homes right across the country where it simply isn't safe for an ambulance crew to go.

"It's also worrying for Edinburgh, which has such a high proportion of these properties.

"These dangerous individuals have absolutely no respect for our brave emergency workers.

"What's worse, their behaviour puts a strain not just on paramedics but on the police too who have to be on the scene whenever they or someone in their home requires help."

Read more: 'Lives at risk': Ambulance drivers back industrial action in Scotland

A Scottish Ambulance Service spokesperson said: "Our staff should not fear for their safety when working, and these measures have been put in place to help protect them while they do their job.

"Individual addresses where previous incidents have occurred are automatically flagged to our crews, allowing staff to undertake dynamic risk assessments or if required request additional support. It is not correct to say that individual addresses are too dangerous or 'no-go areas'.

"Our staff are trained in assessing risk and managing aggression so that they can make a sensible decision based on the circumstances. Getting to the sickest patients is always our priority."