Permalink
Browse files

fix small bug in example code

  • Loading branch information...
1 parent 8898909 commit ed649d51bf9de267073ce9ed20e54dab99a4b2d6 Ken committed Jul 14, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 examples/example1_cahir.php
@@ -21,10 +21,10 @@
require_once 'Services/OpenStreetMap.php';
$osm = new Services_OpenStreetMap();
-$osm->setConfig(array('server' => 'http://api.openstreetmap.org/'));
+$osm->getConfig()->setServer('http://api.openstreetmap.org/');
try {
- $osm->get(-8.3564758, 52.821022799999994, -7.7330017, 53.0428644);
+ $osm->get(52.821022799999994,-8.3564758, 53.0428644, -7.7330017);
file_put_contents("homelands.osm", $osm->getXml());
} catch (Exception $e) {

0 comments on commit ed649d5

Please sign in to comment.