Changeset 751 for trunk


Ignore:
Timestamp:
Jan 7, 2012, 6:40:12 PM (8 years ago)
Author:
Dominic Hargreaves
Message:

update call to geonames according to http://geonames.wordpress.com/2011/01/28/application-identification-for-free-geonames-web-services/

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/npemap.org.uk/static/find.js

    r749 r751  
    3333    }
    3434    else {
    35       request = 'http://ws2.geonames.org/searchJSON?name=' + encodeURIComponent(where) + '&callback=getLocation&country=GB&fclass=P&fclass=T&style=SHORT';
     35      request = 'http://api.geonames.org/searchJSON?username=npemap&name=' + encodeURIComponent(where) + '&callback=getLocation&country=GB&fclass=P&fclass=T&style=SHORT';
    3636      if(typeof urchinTracker == 'function') urchinTracker('/nameSearch');
    3737    }
Note: See TracChangeset for help on using the changeset viewer.