The Danish great grandfather was born in Copenhagen in a building in the Amalienborg Palace area, 25 Amaliengade.  The building originally belonged to the famous architect, Lauritz de Thurah https://da.wikipedia.org/wiki/Laurids_de_Thurah  but in the late 1780s took over the function of the Queens Foundling Hospital where unwed women could give birth in safety and anonymity.  https://no.wikipedia.org/wiki/Den_kongelige_F%C3%B8dselsstiftelse

Amaliegade 25, the Royal Foundling Hospital

Amaliengade 25, the Royal Foundling Hospital