My database has a list of Pet Stores in UK as follows:
ID: 1, Name: Store A, Location: Manchester, Postcode: ABC123, Phone: 1234567890
ID: 2, Name: Store B, Location: London, Postcode: XYZ123, Phone: 1234567890
ID: 3, Name: Store C, Location: Westchester, Postcode: YEQ84, Phone: 1234567890
ID: 4, Name: Store D, Location: Westchester, Postcode: YMC84, Phone: 1234567890
User enters the Post-code [Example: CR02BX] and the system is supposed to return all the stores [Sorted by nearest Stores first]. How can this be achieved? In short, how are distance between post-codes calculated?