Browse Source

api fix 3

import/raw
memespring 17 years ago
parent
commit
40755fd10e
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      trunk/data/%%AD^AD7^AD71B708%%rss.tpl.php
  2. +1
    -1
      trunk/docs/api.php
  3. +1
    -1
      trunk/docs/include/application.php

+ 1
- 1
trunk/data/%%AD^AD7^AD71B708%%rss.tpl.php View File

@@ -1,4 +1,4 @@
<?php /* Smarty version 2.6.16, created on 2007-04-09 17:58:56
<?php /* Smarty version 2.6.16, created on 2007-04-09 18:29:17
compiled from rss.tpl */ ?> compiled from rss.tpl */ ?>
<?php echo '<?xml'; ?> <?php echo '<?xml'; ?>
version="1.0" encoding="UTF-8"<?php echo '?>'; ?> version="1.0" encoding="UTF-8"<?php echo '?>'; ?>


+ 1
- 1
trunk/docs/api.php View File

@@ -101,7 +101,7 @@ class api {
if(sizeof($this->warnings) == 0){ if(sizeof($this->warnings) == 0){
$bottom_left_latlng = new LatLng($_GET['bottom_left_lat'], $_GET['bottom_left_lng']); $bottom_left_latlng = new LatLng($_GET['bottom_left_lat'], $_GET['bottom_left_lng']);
$bottom_left_xy = $bottom_left_latlng->toOSRef(); $bottom_left_xy = $bottom_left_latlng->toOSRef();
$top_right_latlng = new LatLng($_GET['bottom_left_lat'], $_GET['bottom_left_lng']);
$top_right_latlng = new LatLng($_GET['top_right_lat'], $_GET['top_right_lng']);
$top_right_xy = $top_right_latlng->toOSRef(); $top_right_xy = $top_right_latlng->toOSRef();


$this->applications = Applications::query_area($bottom_left_xy->easting, $bottom_left_xy->northing, $top_right_xy->easting, $top_right_xy->northing); $this->applications = Applications::query_area($bottom_left_xy->easting, $bottom_left_xy->northing, $top_right_xy->easting, $top_right_xy->northing);


+ 1
- 1
trunk/docs/include/application.php View File

@@ -114,7 +114,6 @@ class Applications{
where application.x > " . $db->quote($x - $d) . " and application.x < " . $db->quote($x + $d) . where application.x > " . $db->quote($x - $d) . " and application.x < " . $db->quote($x + $d) .
" and application.y > " . $db->quote($y - $d) . " and application.y < " . $db->quote($y + $d) . " and application.y > " . $db->quote($y - $d) . " and application.y < " . $db->quote($y + $d) .
" order by date_scraped desc limit 100"; " order by date_scraped desc limit 100";
print $sql; exit;
$application_results = $db->getAll($sql); $application_results = $db->getAll($sql);
return applications::load_applications($application_results); return applications::load_applications($application_results);
} }
@@ -128,6 +127,7 @@ print $sql; exit;
where application.x > " . $db->quote($x1) . " and application.x < " . $db->quote($x2) . where application.x > " . $db->quote($x1) . " and application.x < " . $db->quote($x2) .
" and application.y > " . $db->quote($y1) . " and application.y < " . $db->quote($y2) . " and application.y > " . $db->quote($y1) . " and application.y < " . $db->quote($y2) .
" order by date_scraped desc limit 100"; " order by date_scraped desc limit 100";

$application_results = $db->getAll($sql); $application_results = $db->getAll($sql);
return applications::load_applications($application_results); return applications::load_applications($application_results);
} }


Loading…
Cancel
Save