Click here to get back home

UK Postcode Radius Searching

 HomeNewsGroups | Search | About
 comp.infosystems.gis    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
UK Postcode Radius Searching Richard Hyett 05-19-2004
Get Chitika Premium
Posted by Richard Hyett on May 19, 2004, 3:31 am
Please log in for more thread options
Required a means of calulating the distance between a user input UK
postcode and a series of postcoded records held in a MYSQL database.
Such that the user can retrieve all resources within a prescribed
radius of his or her postcode, the SQL statement will pull out all
resources within 10,20 or 30 miles of where they are depending on
user selection.
Any ideas? I'm new to this.


Posted by Andy B on May 19, 2004, 1:31 pm
Please log in for more thread options
rachyett@yahoo.co.uk (Richard Hyett) wrote in message
> Required a means of calulating the distance between a user input UK
> postcode and a series of postcoded records held in a MYSQL database.
> Such that the user can retrieve all resources within a prescribed
> radius of his or her postcode, the SQL statement will pull out all
> resources within 10,20 or 30 miles of where they are depending on
> user selection.
> Any ideas? I'm new to this.

Firstly, congrats on obtaining the postcode data. What you ask is
relatively easy presuming you have a postcode table with matching
coordinates.
1. look up coords of user postcode then 2 or 3.
2. [dumb but quick] select postcodes with an eastings/northings range
of 10, 20, 30 miles and send back the details to the user. this will
form a square and not a radial. use this if this doesn't matter to
much.
3. [trickier] i think you can build a sql query that will do the
pythag on the fly and thus you can limit it to a proper radius. you'll
have to feed it parameters - the user's postcode position, and you
should be away.


Similar ThreadsPosted
Deep Searching April 23, 2006, 1:27 am
Searching for places in a area May 24, 2005, 2:46 pm
searching for doc about APIC ASC Format August 27, 2005, 11:52 am
UK Postcode Data for Applications September 3, 2005, 2:37 am
UK Postcode Sector Density per sq. KM February 14, 2006, 5:05 pm
Postcode Area Selection map - seeking November 18, 2005, 5:00 am
Creating Boundary map from bespoke postcode data June 1, 2005, 3:16 am
Get Arc radius October 4, 2005, 8:49 am
A point and a radius calculation -- please help!!! August 3, 2007, 5:59 am
Formula for Earth radius at any given latitude. January 31, 2008, 1:54 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap