Leaflet api 不工作给我错误请求失败状态:500

问题描述 投票:0回答:0

请求失败,状态:500.

API 网址:https://www.openstreetmap.org/search?format=json&polygon=1&addressdetails=1&query=cha

使用此 api 但突然停止工作并停止给我搜索位置列表。

任何人有任何想法

我也试过这个来限制请求


 for (int i = 0; i < 5; i++) {
      getSuggestion(destinationController.text);
      await Future.delayed(
          Duration(milliseconds: 400)); // Wait 4 milliseconds between each call
 }
flutter leaflet http-status-code-500 google-search-api
© www.soinside.com 2019 - 2024. All rights reserved.