优化搜索

This commit is contained in:
Jian Shen
2022-05-25 17:49:59 +08:00
parent d57955ef1e
commit 3b5b567a3c
@@ -78,6 +78,9 @@ class SeaweedPoiDetail {
String keywords = stringJoiner.toString()
List pois = GaoDeUtils.searchPoi(city, keywords, region, typecodes)
if (CollectionUtils.isEmpty(pois)) {
pois = GaoDeUtils.searchPoi(city, name, region, typecodes)
}
List<AmapPoiDetail> detailList = new ArrayList<>()
for (AmapPoi amapPoi : pois) {