Convert latitude and longitude into northings and eastings

Posted by Rippo on Stack Overflow See other posts from Stack Overflow or by Rippo
Published on 2010-04-16T19:23:55Z Indexed on 2010/04/17 8:33 UTC
Read the original article Hit count: 420

Hi I have the following UK postcode dy8 3xt and know that the latitude and longitude is:-

54.452772
-2.156082

I also know that the Eastings, Northings for the postcode is:-

389490
283880

However I am struggling to find the equation that converts lat/long to northings and Eastings, I would prefer to have the equation in both in jScript and c# (I am being greedy)!

Can anyone help?

EDIT Thanks for your help so far guys, I am starting to learn something here esp. the terminology...

Some more info, if you click on this link you can see the results I am looking for. The postcode I entered projects to lat/lng using WG S84 and the grid ref projects to OSGB. So my question is how is this done?

WHAT I LEARNT

Thanks to all that answered, I finally got led to here which I can confirm works great

© Stack Overflow or respective owner

Related posts about algorithm

Related posts about latitude-longitude