GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
free user not getting results all the time  XML
Forum Index -> General
Author Message
interference



Joined: 14/02/2012 02:31:23
Messages: 2
Offline

The simple code below produced results for me before. Now however it won't return anything. Does anyone know why? I have tried to specify my username and token/password when initiating the $geo variable, but it didn't work for me. Thank you!
Code:
 <?php
 require_once 'Services/GeoNames.php';
 
 $geo =  new Services_GeoNames();
 $ret = $geo->srtm3(array(
     'lat' => 42.52878,
     'lng' => -90.61625,
 ));
 echo $ret->srtm3;
 
 $geo1 = new Services_GeoNames();
 $ret1 =  $geo1->gtopo30(array(
     'lat' => 42.52878,
     'lng' => -90.61625,
 ));
 echo $ret1->gtopo30;
 ?> 
 
interference



Joined: 14/02/2012 02:31:23
Messages: 2
Offline

ok. the code didn't work yesterday, but now it works. hm...
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team