Map cities of UK onto postcodes
<p>I was wondering if anyone is aware of any PHP scripts which maps a UK City onto a Post Code.</p>

<p>I have found something like this:</p>

<pre><code>  case'North West England, England': {
    $postcode = 'M1 2NQ';
    break;
  }
  case'North East England, England': {
    $postcode = 'NE1 6AD';
    break;
  }
  case'South West England, England': {
    $postcode = 'EX1 3AX';
    break;
  }
</code></pre>

<p>But it only covers areas as you can see, rather than cities such as 'Manchester, Edinburgh' etc.</p>

<p>Any input would be greatly appreciated.</p>

<p>Thanks,
AP</p>
