Ignore:
Timestamp:
Dec 3, 2006, 5:47:37 PM (14 years ago)
Author:
Nick Burch
Message:

Update API docs, and an associated tweak to the geocoder

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/npemap.org.uk/cgi/geocoder.fcgi

    r403 r404  
    9393
    9494        # What postcode were they asking about?
    95         if(defined $cgi->param("postcode")) {
     95        if(defined $cgi->param("postcode") && $cgi->param("postcode")) {
    9696                $limit_results = 1;
    9797                $request{type} = "location";
     
    105105                        next REQUEST;
    106106                }
    107         } elsif(defined $cgi->param("easting") && defined $cgi->param("northing")) {
     107        } elsif(defined $cgi->param("easting") && $cgi->param("easting") &&
     108                defined $cgi->param("northing") && $cgi->param("northing")) {
    108109                $request{type} = "postcode";
    109110                $request{easting} = $cgi->param("easting");
Note: See TracChangeset for help on using the changeset viewer.