Hi,
I have a table of UK out codes that contains longitude and latitude information, does ayone know how i could use this information to list all the out codes within a certain distance from one out code i.e. all out codes within 100 miles of AB10?
There's a mathematical function you can use to calculate the distance between the two points. However, if you want to do this at the database level you'll be better off asking the question in a database forum.
The data i need to obtain is a list of postcodes with 100 miles of any location, i want to get this data so it can be displayed on a ASP.net page and if needs be edited by the user, the list will then be used to query a database of contacts who live in the postcode area's.
I was just wondering if someone can point me in the direction of some software they may have used for a simlar situation.
Do you have all the codes that you will need or want to compare? If so it's relatively easy to implement the function Mark described. See this thread (its' MSSQL, but you should be able to make it work in any database you are using)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.