Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Geonames project has changed URL and requires username
Registered a username for Zoph and modified urls. The username ('zoph')
is hardcoded for now, maybe that will need to change in the future...

Closes #50
  • Loading branch information
jeroenrnl committed Jan 24, 2014
1 parent a87b407 commit 5d168e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion php/classes/TimeZone.inc.php
Expand Up @@ -139,7 +139,7 @@ public static function guess($lat, $lon) {
if(class_exists("XMLReader")) {
$failed=false;
$xml=new XMLReader();
@$xml->open("http://ws.geonames.org/timezone?lat=" .
@$xml->open("http://api.geonames.org/timezone?username=zoph&lat=" .
$lat . "&lng=" . $lon) or $failed=true;

if (!$failed) {
Expand Down
2 changes: 1 addition & 1 deletion php/js/geocode.js
Expand Up @@ -78,7 +78,7 @@ var zGeocode=function() {

divResult.innerHTML="searching for...<br>" + query;

var url="http://ws.geonames.org/search?q=" + encodeURI(query) + "&style=SHORT";
var url="http://api.geonames.org/search?username=zoph&q=" + encodeURI(query) + "&style=SHORT";
var http=new XMLHttpRequest();
http.open("GET", url, true);

Expand Down

0 comments on commit 5d168e6

Please sign in to comment.