Online UK Postcode Finder

Search and compare UK postcodes using online and public domain services.

Enter two UK postcodes to lookup their co-ordinates and calculate the distances between them:

Use the .NET library and source code to enhance your location aware .NET sites and applications.

namespace Flipbit.Postcodes
{
    /// <summary>
    /// Postcode Library Demo Program
    /// </summary>
    public class PostcodeDemo
    {
        /// <summary>
        /// Gets or sets the ernest marples service.
        /// </summary>
        public IPostcodeService ErnestMarplesService { get; set; }

        /// <summary>
        /// Gets or sets the free the postcode service.
        /// </summary>
        public IPostcodeService FreeThePostcodeService { get; set; }

        static void Main()
        {
            var buckinghamPalace = FreeThePostcodeService.Lookup("SW1A 1AA");
            var downingStreet = ErnestMarplesService.Lookup("SW1 2AA");

            var distance = new Distance(buckinghamPalace.Coordinates, 
                                        downingStreet.Coordinates);

            Console.WriteLine("Buckingham Palace to 10 Downing St:");
            Console.WriteLine("{0} miles", distance.Miles);            
        }
    }
}