getDetailsByReference method

  1. @Deprecated("Use [getDetailsByPlaceId] instead")
Future<PlacesDetailsResponse> getDetailsByReference(
  1. String reference, {
  2. String? sessionToken,
  3. List<String> fields = const [],
  4. String? language,
})

Implementation

@Deprecated("Use [getDetailsByPlaceId] instead")
Future<PlacesDetailsResponse> getDetailsByReference(
  String reference, {
  String? sessionToken,
  List<String> fields = const [],
  String? language,
}) async {
  final url = buildDetailsUrl(
    reference: reference,
    sessionToken: sessionToken,
    fields: fields,
    language: language,
  );
  return _decodeDetailsResponse(await doGet(url, headers: apiHeaders));
}