Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-30-2006, 04:55 PM   PM User | #1
mic2100
Regular Coder

 
mic2100's Avatar
 
Join Date: Feb 2006
Location: Scunthorpe
Posts: 562
Thanks: 15
Thanked 28 Times in 27 Posts
mic2100 is on a distinguished road
Question everything south of a point in the UK

What i have is a program that loads all of the insulation leads that are produces in a day onto a web based application for our surveyors to see. Now my manager as asked if it would be possible to produce a piece of code that will seperate any leads that are south of northamptonshire to do somthing else with them.

Wot i am looking for is ideas on how i can approach this porblem since i am completly stuck with it. I thought about an arry that stored all the counties that fall in this area, once it comes accress one of them it does the new process.

Help Please!!!
mic2100 is offline   Reply With Quote
Old 10-30-2006, 05:00 PM   PM User | #2
mlseim
Master Coder

 
mlseim's Avatar
 
Join Date: Jun 2003
Location: Cottage Grove, Minnesota
Posts: 9,045
Thanks: 8
Thanked 1,029 Times in 1,020 Posts
mlseim has a spectacular aura aboutmlseim has a spectacular aura aboutmlseim has a spectacular aura about
In the U.S. we have zipcodes.

Does the U.K. have any type of city codes? and possible
an existing database you can tap into?

Otherwise, a county database would be the option (as you mentioned).

I'm thinking also of some GPS type thing (latitude entries) to determine
what is south or north.
mlseim is offline   Reply With Quote
Old 10-30-2006, 06:09 PM   PM User | #3
GJay
Senior Coder

 
Join Date: Sep 2005
Posts: 1,791
Thanks: 5
Thanked 36 Times in 35 Posts
GJay is on a distinguished road
if you need absolute accuracy, then you'll need to store latitude and longitude, there are a number of services that will provide these for postcodes.
If county-level is specific enough, then that will be far easier- there are about 110 countires in England and wales, so it would probably only take a couple of hours to do the data-entry required for that, while you'd probably spend at least that on getting the code for lat/long comparisons working.
GJay is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:23 PM.


Advertisement
Log in to turn off these ads.