refreshPodDataOnly static method

Future<List<Place>> refreshPodDataOnly()

Implementation

static Future<List<Place>> refreshPodDataOnly() async {
  final cm = PlacesCacheManager();

  // Local places are synchronous (compiled into binary)
  final local = getLocalPlacesSync();
  await clearPodCacheOnly();
  final pod = await fetchPodPlaces(forceRefresh: true);
  final all = <Place>[...pod, ...local];
  cm.cacheAllPlaces(all);
  return all;
}