Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Distance calculating
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Distance calculating

 Post Reply Post Reply Page  12>
Author
Mattblack View Drop Down
Groupie
Groupie
Avatar

Joined: 21 January 2003
Location: United Kingdom
Status: Offline
Points: 139
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mattblack Quote  Post ReplyReply Direct Link To This Post Topic: Distance calculating
    Posted: 01 November 2004 at 4:15pm

hi all,

I desperately need to find out how I can obtain a database or other file containing all UK post codes and some other info (Maybe grid ref) so i can calculate distance between 2 postcodes.

Any ideas where i can find something like that?  Or does anyone know any other way of doing it???

Thanks again

Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 01 November 2004 at 5:35pm
Must not have searched to good eh? Here is a link where you can download something http://www.brainstorm.co.uk/uk_post_code_search.htm I did that some time ago for the US with a free DB from the US Census Office and once you got the formula down, it is easy. If the databases have LAT and LON coordinates for the zip's its easy, otherwise you need to find a lookup for that. Formula can get complex depending how accurate you want it because if you have LAT/LON you still need to calculate the curviture between those points.
Back to Top
Mattblack View Drop Down
Groupie
Groupie
Avatar

Joined: 21 January 2003
Location: United Kingdom
Status: Offline
Points: 139
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mattblack Quote  Post ReplyReply Direct Link To This Post Posted: 02 November 2004 at 2:57am

Hi Mate, thanks for that.

Erm, about that cash, lol.  They will be cutting my net off soon so i will have to dis....

Back to Top
Mattblack View Drop Down
Groupie
Groupie
Avatar

Joined: 21 January 2003
Location: United Kingdom
Status: Offline
Points: 139
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mattblack Quote  Post ReplyReply Direct Link To This Post Posted: 02 November 2004 at 2:58am

PS: Check out: http://www.jibble.org/ukpostcodes/postcodes.zip

oh im cut of....

Back to Top
Mattblack View Drop Down
Groupie
Groupie
Avatar

Joined: 21 January 2003
Location: United Kingdom
Status: Offline
Points: 139
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mattblack Quote  Post ReplyReply Direct Link To This Post Posted: 02 November 2004 at 3:47am
wots the difference then between the grid ref and the lat/lon ref?  Which should be used?
Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 02 November 2004 at 9:31am
not shure about grid ref, never worked with it. Lat Lon worked fine for me.
Back to Top
Mattblack View Drop Down
Groupie
Groupie
Avatar

Joined: 21 January 2003
Location: United Kingdom
Status: Offline
Points: 139
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mattblack Quote  Post ReplyReply Direct Link To This Post Posted: 02 November 2004 at 12:34pm

confused now, cant work it out.

Take this post code example....

postcode x y latitude longitude
AB10 392900 804900 57.135 -2.117

How many miles is each grid ref?  Or each 1 point on the lat/long scale???

Can anyone explain the grid ref and what each of the numbers mean? Do u have to break it down into 2 3-number sections?  If now, how far would, for example, 010000 be in miles?

Thankies

Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 02 November 2004 at 1:14pm
Well, like I said I don't know what Grid Ref is but it is simple to calculate somewhat accurate with lat Lon using formulas
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.