[NUUG fiksgatami] [patch] Add support for norwegian post codes in mapit
Petter Reinholdtsen
pere at hungry.com
Sun Mar 6 09:05:07 CET 2011
[Matthew Somerville]
> All commited (slightly tweaked and improved a few bits). I assume your
> partial postcode wasn't working because:
> + elif mysociety.config.get('COUNTRY') == 'NO':
> + return is_valid_partial_gb_postcode(pc)
>
> you were still calling the UK function :-)
Doh. Right. Good catch. Work great now. Pushed to both
mapit-dev.nuug.no and the production site mapit.nuug.no.
> I've also committed changes so that you're not outputting British Grid
> System results any more either.
Very good. I noticed I forgot to update the credit info on the front
page, so here is a patch for this. Dropped the N5000 stuff, as we
only use data from OpenStreetmap.org now.
Happy hacking,
--
Petter Reinholdtsen
-------------- next part --------------
diff --git a/pylib/mapit/templates/no/index.html b/pylib/mapit/templates/no/index.html
index 8a5cc8c..284c166 100644
--- a/pylib/mapit/templates/no/index.html
+++ b/pylib/mapit/templates/no/index.html
@@ -17,18 +17,18 @@ to keep NUUG going.
<a href="http://www.mysociety.org/donate/">donate</a> to help keep mySociety going and
to be able to continue to do things like this!</p>
-<p>This site is filled with only open data,
-so you can be secure that you can reuse the data from this
-site under the minimal terms of the licences given below. It is based on
-<a href="http://www.statkart.no/nor/Land/Kart_og_produkter/N5000_-_gratis_oversiktskart/">N5000</a>
-and/or <a href="http://www.openstreetmap.org/">OpenStreetMap</a>.
+<p>This site is filled with only open data, so you can be secure that
+you can reuse the data from this site under the minimal terms of the
+licences given below. It is based on Kommune and Fylkes area info from
+<a href="http://www.openstreetmap.org/">OpenStreetMap</a> and
+Norwegian post code coordinates from
+<a href="http://www.erikbolstad.no/geo/">Erik Bolstad</a>.
<p id="copyright">This database contains OpenStreetMap data ©
<a href="http://www.openstreetmap.org/">OpenStreetMap</a> and contributors,
<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA-2.0</a>.
-N5000 data is © Norwegian Mapping Authority (Statens kartverk)
-(<a href="http://creativecommons.org/licenses/by-sa/3.0/no/">CC-BY-SA-3.0</a>)
-</p>
+The post code coordinate data is © Erik Bolstad
+(<a href="http://creativecommons.org/licenses/by/3.0/">CC-BY-3.0</a>)</p>
<h2>API</h2>
More information about the fiksgatami
mailing list