Thomas Hardy lived at Max Gate, his house a mile to the east of Dorchester, the town in which George Aldridge George was a G.P. living in High West Street. George Aldridge George's name was used for Dr. Aldritch in the Mayor of Casterbridge.
Further reading:
Wikipedia article on Hardy