addressToPosition function

Future<LatLng> addressToPosition(
  1. String query
)

Implementation

Future<LatLng> addressToPosition(String query) async {
  final places = await searchPlaces(query);
  final firstPlace = places.first;
  return firstPlace.position;
}