gushoubang 9 months ago
parent
commit
1f8f755bad
2 changed files with 30 additions and 32 deletions
  1. 30 27
      app.py
  2. 0 5
      ceshi.py

+ 30 - 27
app.py

@@ -98,36 +98,39 @@ def inputMsg():
     其他公里、千米的单位转换为米
     输出的json格式数据如下:
     {{
-        "districtName": "抱坡区",
+        "districtName": "抱坡区",
         "landType": "耕地",
-        "area": {{
-            "min": 30,
-            "max": 50
-        }},
-        "factors": [
-            {{
-                "type": "水库",
-                "condition": "大于",
-                "value": "100"
-            }},
-            {{
-                "type": "永久基本农田",
-                "condition": "不相交"
-            }},
-            {{
-                "type": "城镇开发边界内",
-                "condition": "包含"
-            }},
+        "area": {{
+            "min": 30,
+            "max": 50
+        }},
+        "factors": [
             {{
-                "type": "高程",
-                "condition": "between",
-                "value": "0,100"
-            }}
-        ]
+                "type": "水库",
+                "condition": "大于",
+                "value": "100"
+            }},
+            {{
+                "type": "永久基本农田",
+                "condition": "不相交"
+            }},
+            {{
+                "type": "城镇开发边界内",
+                "condition": "包含"
+            }},
+            {{
+                "type": "小学服务半径",
+                "condition": "小于",
+                "value": "1000"
+            }},
+            {{
+                "type": "医疗卫生设施",
+                "condition": "小于",
+                "value": "500"
+            }},
+        ]
     }}
-    factors.type是因子名称,需与因子选择中的信息保持一致
-    json中"condition"的值为"gt"、"lt"、"get"、"let"、"between","not_intersect"、"intersect"、"not_contain"、"contain"、"between"
-    json中"type"的值如果为"医院"则需改为"医疗卫生设施"
+    把json中"condition"的值改为"gt"、"lt"、"get"、"let"、"between","not_intersect"、"intersect"、"not_contain"、"contain"、"between"
     """
 
     try:                                                                                                             

File diff suppressed because it is too large
+ 0 - 5
ceshi.py


Some files were not shown because too many files changed in this diff