Browse files

Temp running fix to remove MapIt dependency Issue #7

  • Loading branch information...
1 parent 741a565 commit 50b2dbabb75c8167ba068797d82430125ae3bf90 @ivebeenlinuxed ivebeenlinuxed committed Dec 14, 2012
Showing with 5 additions and 6 deletions.
  1. +5 −6 postcode.php
View
11 postcode.php
@@ -85,8 +85,8 @@
$countytitle = $row['countyname'];
$countycode = $row['countysnac'];
-
- if (strlen($row['electoraldistrict']) == 0) {
+ //XXX HACK
+ if (strlen($row['electoraldistrict']) == 0 && false) {
$mapit = json_decode(file_get_contents("http://mapit.mysociety.org/postcode/". urlencode($updatepostcode) .".json"));
@@ -125,10 +125,9 @@
} else {
$constituencyuri = "http://data.ordnancesurvey.co.uk/doc/7". str_pad($constituencycode, 15, "0", STR_PAD_LEFT);
}
-
-if (strlen($row['parishgss'] == 0)) {
-
- if (!$mapit) {
+//XXX HACK
+if (strlen($row['parishgss'] == 0) && false) {
+ if (!$mapit && false) {
$mapit = json_decode(file_get_contents("http://mapit.mysociety.org/postcode/". urlencode($updatepostcode) .".json"));
}

0 comments on commit 50b2dba

Please sign in to comment.