diff --git a/getterrain.php b/getterrain.php index ddd8cef..794a699 100644 --- a/getterrain.php +++ b/getterrain.php @@ -4,17 +4,17 @@ require 'required.php'; require 'onlyloggedin.php'; require 'latlong_validate.php'; -$terrain = json_decode(file_get_contents("http://gis.terranquest.net/terrain.php?key=" . GIS_API_KEY . "&lat=" . $VARS['lat'] . "&long=" . $VARS['long'])); +$terrain = json_decode(file_get_contents("http://gis.terranquest.net/terrain.php?key=" . GIS_API_KEY . "&lat=" . $VARS['lat'] . "&long=" . $VARS['long']), TRUE); if (!is_empty($terrain['error'])) { sendError($terrain['error'], true); } else { $out = [ "status" => "OK", - "typeid" => $terrain['type'], + "type" => $terrain['type'], "latitude" => $terrain['latitude'], "longitude" => $terrain['longitude'], - "typename" => $terrain['name'] + "name" => $terrain['name'] ]; die(json_encode($out)); } \ No newline at end of file diff --git a/proximity.php b/nearby.php similarity index 100% rename from proximity.php rename to nearby.php