Changeset 370 for trunk/npemap.org.uk
- Timestamp:
- Nov 19, 2006, 11:09:35 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/npemap.org.uk/cgi/geocoder.fcgi
r366 r370 32 32 33 33 34 my @outputs = qw(text xml );34 my @outputs = qw(text xml js); 35 35 36 36 my $cgi; … … 116 116 print " <postcode>$pc</postcode>\n"; 117 117 print "</geocoder>\n"; 118 } else { 118 } elsif ($output eq "js") { 119 print header("text/javascript"); 120 my ($e, $n) = (int($easting), int($northing)); 121 if(defined $cgi->param("method")) { 122 print ($cgi->param("method") . "("); 123 } 124 print "{ pc: \"$pc\", e: $e, n: $n }"; 125 if(defined $cgi->param("method")) { 126 print ");"; 127 } 128 print "\n"; 129 130 } else { 119 131 print header("text/plain"); 120 132 print "# Easting,Northing,Matched Postcode\n";
Note: See TracChangeset
for help on using the changeset viewer.