Avatar of Lee_Christie
Lee_Christie
Flag for United Kingdom of Great Britain and Northern Ireland asked on

How do I convert Latitude and Longitude to a UK Postcode?

For a given lat/long pair as input, say {57.1475, -2.0954}, how do I find which UK postcode that point is in? Is there some way to do this for free, without having to use a commercial library or web service?

Would a very large amount of boundary data be required to do this acurately, and if this is infeasably large, what is the best way to get data for a reasonable time/space efficient approximation without being too complex?
JavaGIS/GPS ProgrammingMath / Science

Avatar of undefined
Last Comment
Infinity08

8/22/2022 - Mon
Infinity08

A quick search turned up this page :

        http://www.freethepostcode.org/

You can download the list they created from that site :

        http://www.freethepostcode.org/currentlist
Lee_Christie

ASKER
Is this list the only alternative to purchacing the real database? How would I use the list? Querying it to find the lat/long of a specified postcode would be easy, but how would I do that in reverse? Ittterate the enitre list to find the closest value? Are these GPS co-ordinates in the approximate center of the postcodes or just random points inside them? I guess it could still be of some used.
dragonjim

To get the location, you can use Google:

http://maps.google.com/support/bin/search.py?query=latitude&ctx=en%3Asearchbox&Action.Search=Search

You could then use your central mail courier's site (usps.com here in the States) to check that town's ZIP codes, use local maps, etc.
Your help has saved me hundreds of hours of internet surfing.
fblack61
ASKER CERTIFIED SOLUTION
Infinity08

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.