searchPOIByCoordinate method

void searchPOIByCoordinate({
  1. required TIMCoordinate coordinate,
  2. required void onGetReverseGeoCodeSearchResult(
    1. TIMReverseGeoCodeSearchResult,
    2. bool
    ),
})

Searching the POI list according to the coordinate, and return a function with 'TIMReverseGeoCodeSearchResult' and boolean of isError. 根据地理坐标查询附近的POI,并返回包含TIMReverseGeoCodeSearchResult及是否报错参数的方法。

Implementation

void searchPOIByCoordinate(
    {required TIMCoordinate coordinate,
      required void Function(TIMReverseGeoCodeSearchResult, bool)
      onGetReverseGeoCodeSearchResult}) async {}