From 1a51eccd16f83c785cf698489465d612badef58f Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Mon, 3 Oct 2016 14:42:07 -0600 Subject: [PATCH] Remap id 14 to 13 --- terrain.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/terrain.php b/terrain.php index 21e6770..f1fa1c6 100644 --- a/terrain.php +++ b/terrain.php @@ -54,13 +54,15 @@ $terrainstrings = [ 11 => "Cropland", 12 => "Bare Ground", 13 => "Urban and Built", - 14 => "Urban and Built" ]; if ($failtowater) { $terrainid = 0; } else { $terrainid = (int) $database->select('terrain', 'type', ["AND" => ["latitude" => $finallat, "longitude" => $finallong]])[0]; + if ($terrainid == 14) { + $terrainid = 13; + } } $out = ["status" => "OK", "type" => $terrainid, "latitude" => $finallat, "longitude" => $finallong, "name" => $terrainstrings[$terrainid]]; echo json_encode($out);